Advertisement
lswest

wmfs

Jun 26th, 2011
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.67 KB | None | 0 0
  1. #
  2. # This is the default wmfs config file, copy it to
  3. # ~/.config/wmfs/wmfsrc and edit it.
  4. #
  5.  
  6. # Include file to split configuration
  7. # @include "~/.config/wmfs/menu-wmfsrc"
  8.  
  9. [misc]
  10. font = "Togoshi Gothic-8"
  11. raisefocus = false
  12. focus_follow_mouse = true
  13. # focus_pointer_click: click on unfocused client area:
  14. # true -- default, set focus
  15. # false -- click go to client; including dockapps
  16. focus_pointer_click = true
  17. status_timing = 1 #seconds
  18. [/misc]
  19.  
  20. [bar]
  21. bg = "#0C0C0C"
  22. fg = "#ffffff"
  23. border = false
  24. height = 19
  25. # selbar = false #not worked now, see section [selbar]
  26.  
  27. [systray]
  28. # Enable/disable systray
  29. active = true
  30.  
  31. # Screen of systray
  32. screen = 0
  33.  
  34. # Spacing between tray icons
  35. spacing = 2
  36. [/systray]
  37.  
  38. # Remove this section to disable the selbar.
  39. [selbar]
  40. bg = "#0c0c0c"
  41. fg = "#ffffff"
  42.  
  43. # Cut title length
  44. max_length = 90
  45.  
  46. [mouse] button = "3" func = "clientlist" [/mouse]
  47. [mouse] button = "4" func = "client_next" [/mouse]
  48. [mouse] button = "5" func = "client_prev" [/mouse]
  49. [/selbar]
  50.  
  51. [/bar]
  52.  
  53. [layouts]
  54. bg = "#0c0c0c"
  55. fg = "#ffffff"
  56.  
  57. # Border around the layout button.
  58. border = false
  59.  
  60. # Value menu or switch.
  61. system = "menu"
  62.  
  63. # Value left or right.
  64. placement = "right"
  65.  
  66. # Keep layout geo for free layout
  67. keep_layout_geo = false
  68.  
  69. # Symbol displayed for the selected layout in the list
  70. selected_layout_symbol = "*"
  71.  
  72. # Width of layout button
  73. # layout_button_width = 12
  74.  
  75. # Tiling layouts.
  76. [layout] type = "tile_right" symbol = " \i[0;2;14;14;/home/lswest/.config/wmfs/icons/tile.png]\ " [/layout]
  77. [layout] type = "tile_left" symbol = " \i[0;2;14;14;/home/lswest/.config/wmfs/icons/tileleft.png]\ " [/layout]
  78. [layout] type = "tile_top" symbol = " \i[0;2;14;14;/home/lswest/.config/wmfs/icons/tiletop.png]\ " [/layout]
  79. [layout] type = "tile_bottom" symbol = " \i[0;2;14;14;/home/lswest/.config/wmfs/icons/tilebottom.png]\ " [/layout]
  80. # [layout] type = "tile_grid" symbol = "GRID_H" [/layout]
  81. # [layout] type = "tile_grid_vertical" symbol = "GRID_V" [/layout]
  82. # [layout] type = "mirror_vertical" symbol = "MIRROR_V" [/layout]
  83. # [layout] type = "mirror_horizontal" symbol = "MIRROR_H" [/layout]
  84.  
  85. # Other layouts.
  86. [layout] type = "max" symbol = " \i[0;2;14;14;/home/lswest/.config/wmfs/icons/max.png]\ " [/layout]
  87. [layout] type = "free" symbol = " \i[0;2;14;14;/home/lswest/.config/wmfs/icons/floating.png]\ " [/layout]
  88.  
  89. [/layouts]
  90.  
  91. [tags]
  92. [default_tag]
  93. name = "new tag"
  94. mwfact = 0.5
  95. nmaster = 1
  96. layout = "tile_right"
  97. resizehint = false
  98. infobar_position = "top"
  99. [/default_tag]
  100.  
  101. tag_round = true
  102.  
  103. occupied_bg = "#0c0c0c"
  104. occupied_fg = "#9C9C9C"
  105. sel_fg = "#9F6B00"
  106. sel_bg = "#0c0c0c"
  107. urgent_bg = "#ffffff"
  108. urgent_fg = "#9c9c9c"
  109. # If true, number of the tag will be used for name
  110. name_count = false
  111. #default_name = "new tag" # deprecated, use [default_tag] instead
  112. #default_layout = "tile_right" # deprecated, use [default_tag] instead
  113.  
  114. # Border around the tag buttons.
  115. border = false
  116.  
  117. # Hide empty tags in tag list
  118. autohide = false
  119.  
  120. # Mouse buttons action on tag.
  121. mouse_button_tag_sel = "1"
  122. mouse_button_tag_transfert = "2"
  123. mouse_button_tag_add = "3"
  124. mouse_button_tag_next = "4"
  125. mouse_button_tag_prev = "5"
  126.  
  127. [tag]
  128. name = "命令"
  129. #[mouse] [/mouse] Possible multi mouse section
  130. [/tag]
  131.  
  132. # clients option is *DEPRECATED* but works, see [rules] section
  133. [tag] name = "文書"[/tag]
  134. [tag] name = "話" layout = "free" [/tag]
  135. [tag] name = "ウェブ" [/tag]
  136. [tag] name = "日本語" [/tag]
  137. [tag] name = "六" [/tag]
  138. [tag] name = "七" [/tag]
  139. [tag] name = "八" [/tag]
  140. [tag] name = "音楽" [/tag]
  141. [/tags]
  142.  
  143. [root]
  144. # Command you can execute to set the background.
  145. # background_command = ""
  146.  
  147. [mouse] button = "4" func = "tag_next" [/mouse]
  148. [mouse] button = "5" func = "tag_prev" [/mouse]
  149. [mouse] button = "3" func = "menu" cmd = "rootmenu" [/mouse]
  150. [/root]
  151.  
  152. [client]
  153. client_round = false
  154. border_height = 0
  155. border_shadow = false
  156. border_normal = "#0c0c0c"
  157. border_focus = "#0c0c0c"
  158. resize_corner_normal = "#0c0c0c"
  159. resize_corner_focus = "#0c0c0c"
  160.  
  161. # Space between tiled clients
  162. padding = 0
  163.  
  164. # Modifier for mouse use
  165. modifier = "Mod4"
  166.  
  167. # *DEPRECATED* but works, see [rules] section
  168. # Set automatic free or max client
  169. # autofree = "xterm|MPlayer"
  170. # automax = "Navigator"
  171.  
  172. [mouse] button = "1" func = "client_raise" [/mouse]
  173. [mouse] button = "1" func = "mouse_move" [/mouse]
  174. [mouse] button = "3" func = "client_raise" [/mouse]
  175. [mouse] button = "3" func = "mouse_resize" [/mouse]
  176.  
  177. # Remove this section to delete the titlebar.
  178. #[titlebar]
  179. # stipple = false
  180. # height = 12
  181. # fg_normal = "#7E89A2"
  182. # fg_focus = "#9F9AB3"
  183.  
  184. # [mouse] button = "1" func = "client_raise" [/mouse]
  185. # [mouse] button = "1" func = "mouse_move" [/mouse]
  186. # [mouse] button = "3" func = "client_raise" [/mouse]
  187. # [mouse] button = "3" func = "mouse_resize" [/mouse]
  188.  
  189. # [button]
  190. # # Available "free", "max", "tile" flags of button.
  191. # flags = "free,max,tile"
  192. # [mouse] button = "1" func = "client_kill" [/mouse]
  193. # [mouse] button = "3" func = "menu" cmd = "clientmenu" [/mouse]
  194.  
  195. # [line] coord = {1, 1, 4, 1} [/line]
  196. # [line] coord = {1, 1, 1, 4} [/line]
  197. # [line] coord = {1, 4, 4, 4} [/line]
  198. # [/button]
  199. #[/titlebar]
  200. [/client]
  201.  
  202. [rules]
  203. # Example of rule for Mplayer
  204. [rule]
  205. instance = "xv" # First part of WM_CLASS
  206. class = "MPlayer" # Seconf part of WM_CLASS, not needed if first part is correct
  207. # role = "" # WM_WINDOW_ROLE
  208. screen = 0 # Screen to use
  209. tag = 2 # Tag number of apps
  210. free = true # Set automatic free client
  211. max = false # Set automatic maximized client
  212. [/rule]
  213. [rule] instance = "Download" screen = 0 tag = "4" max = "false" free = "true" [/rule]
  214. [rule] instance = "Browser" screen = 0 tag = "4" max = "false" free = "true" [/rule]
  215. [rule] instance = "google-chrome" screen = 0 tag = "4" max = "false" free = "false" [/rule]
  216. [rule] instance = "Navigator" screen = 0 tag = "4" max = "false" [/rule]
  217. [rule] instance = "uzbl-core" screen = 0 tag = "4" max = "false" [/rule]
  218. [rule] instance = "skype" screen = 0 tag = "3" max = "false" free = "true" [/rule]
  219. [rule] instance = "Pidgin" screen = 0 tag = "3" max = "false" free = "true" [/rule]
  220. [rule] instance = "vlc" screen = 0 tag = "6" max = "false" [/rule]
  221. [rule] instance = "sakura" screen = 0 tag = "9" max = "false" [/rule]
  222. [rule] instance = "transmission-gtk" screen = 0 tag = "7" max = "false" [/rule]
  223. [rule] instance = "nautilus" screen = 0 tag = "2" max = "false" [/rule]
  224. [rule] instance = "thunar" screen = 0 tag = "2" max = "false" [/rule]
  225. [rule] instance = "Thunar" screen = 0 tag = "2" max = "false" [/rule]
  226. [rule] instance = "Pcmanfm" screen = 0 tag = "2" max = "false" [/rule]
  227. [rule] instance = "pcmanfm" screen = 0 tag = "2" max = "false" [/rule]
  228. [rule] instance = "ncmpcpp" screen = 0 tag = "9" max = "false" [/rule]
  229. [rule] instance = "mutt" screen = 0 tag = "8" max = "false" [/rule]
  230. [rule] instance = "irssi" screen = 0 tag = "8" max = "false" [/rule]
  231. [rule] class = "VirtualBox" screen = 0 max = "false" free = "true" [/rule]
  232. [rule] class = "Gimp" screen = 0 max = "false" free = "true" [/rule]
  233. [rule] instance = "Mail" screen = 0 tag = "8" max = "false" [/rule]
  234. [rule] class = "XCalc" screen = 0 free = "true" [/rule]
  235. [/rules]
  236.  
  237. [menu]
  238. # Default menu, binded on the root window, button 3.
  239. [set_menu]
  240. name = "rootmenu"
  241.  
  242. # place_at_mouse = false
  243. # x = 40 y = 50
  244.  
  245. # Available "center", "left", "right" menu align. Default: "center".
  246. align = "left"
  247.  
  248. fg_focus = "#191919" bg_focus = "#7E89A2"
  249. fg_normal = "#9F9AB3" bg_normal = "#191919"
  250.  
  251. [item] name = "Terminal" func = "spawn" cmd = "urxvt || xterm || gnome-terminal" [/item]
  252. [item] name = "Applications" submenu = "appmenu" [/item]
  253. [item] name = "Next tag" func = "tag_next" [/item]
  254. [item] name = "Previous tag" func = "tag_prev" [/item]
  255. [item] name = "Next layout" func = "layout_next" [/item]
  256. [item] name = "Previous layout" func = "layout_prev" [/item]
  257. [item] name = "Toggle infobar" func = "toggle_infobar_position" [/item]
  258. [item] name = "Quit WMFS" func = "quit" [/item]
  259. [/set_menu]
  260.  
  261. [set_menu]
  262. name = "appmenu"
  263. align = "left"
  264.  
  265. fg_focus = "#191919" bg_focus = "#7E89A2"
  266. fg_normal = "#9F9AB3" bg_normal = "#191919"
  267.  
  268. [item] name = "Browser" func = "spawn" cmd = "google-chrome" [/item]
  269. [item] name = "Calculator" func = "spawn" cmd = "xcalc" [/item]
  270. [/set_menu]
  271.  
  272. [set_menu]
  273. name = "clientmenu"
  274.  
  275. fg_focus = "#D4D4D4" bg_focus = "#003366"
  276. fg_normal = "#D4D4D4" bg_normal = "#191919"
  277.  
  278. # Check items: possible 'check_max' or 'check_free'.
  279. [item] name = "Close" func = "client_kill" [/item]
  280. [item] name = "Maximize" func = "toggle_max" check = "check_max" [/item]
  281. [item] name = "Free" func = "toggle_free" check = "check_free" [/item]
  282. [/set_menu]
  283. [/menu]
  284.  
  285. [launcher]
  286. [set_launcher]
  287. # Limit size of the launcher window (px)
  288. width_limit = 300
  289.  
  290. name = "launcher_exec"
  291. prompt = "Exec: "
  292. command = "exec"
  293. [/set_launcher]
  294.  
  295. #ViWMFS : manage wmfs with vi-based command.
  296. [set_launcher]
  297. name = "viwmfs"
  298. prompt = "> "
  299. command = "wmfs -V"
  300. [/set_launcher]
  301. [/launcher]
  302.  
  303. [keys]
  304. # Reload the configuration of wmfs.
  305. [key] mod = {"Mod4", "Control"} key = "r" func = "reload" [/key]
  306.  
  307. # Open a terminal.
  308. [key] mod = {"Mod4"} key = "Return" func = "spawn" cmd = "urxvt -e uim-fep" [/key]
  309.  
  310. # Add current song to file
  311. [key] mod = {"Mod4"} key = "g" func = "spawn" cmd = "guitar" [/key]
  312.  
  313. # Open firefox.
  314. [key] mod = {"Mod4"} key = "w" func = "spawn" cmd = "google-chrome" [/key]
  315.  
  316. # Open Thunar.
  317. [key] mod = {"Mod4"} key = "d" func = "spawn" cmd = "thunar" [/key]
  318.  
  319. # Open Skype.
  320. [key] mod = {"Mod4"} key = "s" func = "spawn" cmd = "skype" [/key]
  321.  
  322. # Open ncmpcpp.
  323. [key] mod = {"Mod4"} key = "q" func = "spawn" cmd = "urxvt -name ncmpcpp -e ncmpcpp" [/key]
  324.  
  325. # Open Irssi
  326. [key] mod = {"Mod4"} key = "e" func = "spawn" cmd = "urxvt -name irssi -e irssi" [/key]
  327.  
  328. # Open mutt
  329. [key] mod = {"Mod4", "Shift"} key = "q" func="spawn" cmd = "urxvt -name mutt -e mutt" [/key]
  330.  
  331. # Lock screen.
  332. [key] mod = {"Mod4"} key = "F12" func = "spawn" cmd = "xscreensaver-command -lock" [/key]
  333.  
  334. # Kill the selected client.
  335. [key] mod = {"Mod4", "Shift"} key = "c" func = "client_kill" [/key]
  336.  
  337. # Quit wmfs.
  338. [key] mod = {"Control", "Mod4", "Shift"} key = "q" func = "quit" [/key]
  339.  
  340. # Swap current client with the next.
  341. [key] mod = {"Mod4"} key = "Tab" func = "client_swap_next" [/key]
  342.  
  343. # Swap current client with the previous.
  344. [key] mod = {"Mod4", "Shift"} key = "Tab" func = "client_swap_prev" [/key]
  345.  
  346. # Toggle maximum the selected client
  347. [key] mod = {"Mod4"} key = "m" func = "toggle_max" [/key]
  348.  
  349. # Toggle free the selected client.
  350. [key] mod = {"Mod4"} key = "f" func = "toggle_free" [/key]
  351.  
  352. # Toggle the position of the infobar.
  353. [key] mod = {"Mod4"} key = "b" func = "toggle_infobar_position" [/key]
  354.  
  355. # Toggle the resizehint of the current tag/screen
  356. [key] mod = {"Shift", "Control"} key = "r" func = "toggle_resizehint" [/key]
  357.  
  358. # Toggle the tag_autohide mode
  359. [key] mod = {"Mod4", "Control"} key = "t" func = "toggle_tagautohide" [/key]
  360.  
  361. # Select the next client.
  362. [key] mod = {"Mod4"} key = "Tab" func = "client_next" [/key]
  363.  
  364. # Select the previous client.
  365. [key] mod = {"Mod4","Shift"} key = "Tab" func = "client_prev" [/key]
  366.  
  367. # Select the next tag.
  368. [key] mod = {"Mod4"} key = "Right" func = "tag_next" [/key]
  369.  
  370. # Select the previous tag.
  371. [key] mod = {"Mod4"} key = "Left" func = "tag_prev" [/key]
  372.  
  373. # Select the next visible tag.
  374. [key] mod = {"Control","Mod4"} key = "Right" func = "tag_next_visible" [/key]
  375.  
  376. # Select the previous visible tag.
  377. [key] mod = {"Control","Mod4"} key = "Left" func = "tag_prev_visible" [/key]
  378.  
  379. # Set the next layout.
  380. [key] mod = {"Mod4"} key = "space" func = "layout_next" [/key]
  381.  
  382. # Set the previous layout.
  383. [key] mod = {"Mod4", "Shift"} key = "space" func = "layout_prev" [/key]
  384.  
  385. # Increase mwfact.
  386. [key] mod = {"Mod4"} key = "l" func = "set_mwfact" cmd = "+0.025" [/key]
  387.  
  388. # Decrease mwfact.
  389. [key] mod = {"Mod4"} key = "h" func = "set_mwfact" cmd = "-0.025" [/key]
  390.  
  391. # Increase nmaster.
  392. [key] mod = {"Control", "Mod4"} key = "d" func = "set_nmaster" cmd = "+1" [/key]
  393.  
  394. # Decease nmaster.
  395. [key] mod = {"Mod4", "Shift"} key = "d" func = "set_nmaster" cmd = "-1" [/key]
  396.  
  397. #Launcher.
  398. [key] mod = {"Mod4"} key = "p" func = "launcher" cmd = "launcher_exec" [/key]
  399.  
  400. #ViWMFS
  401. [key] mod = {"Mod4"} key = "Escape" func = "launcher" cmd = "viwmfs" [/key]
  402.  
  403. # Set the tag x.
  404. [key] mod = {"Mod4"} key = "1" func = "tag" cmd = "1" [/key]
  405. [key] mod = {"Mod4"} key = "2" func = "tag" cmd = "2" [/key]
  406. [key] mod = {"Mod4"} key = "3" func = "tag" cmd = "3" [/key]
  407. [key] mod = {"Mod4"} key = "4" func = "tag" cmd = "4" [/key]
  408. [key] mod = {"Mod4"} key = "5" func = "tag" cmd = "5" [/key]
  409. [key] mod = {"Mod4"} key = "6" func = "tag" cmd = "6" [/key]
  410. [key] mod = {"Mod4"} key = "7" func = "tag" cmd = "7" [/key]
  411. [key] mod = {"Mod4"} key = "8" func = "tag" cmd = "8" [/key]
  412. [key] mod = {"Mod4"} key = "9" func = "tag" cmd = "9" [/key]
  413.  
  414. # Transfert selected client to x.
  415. [key] mod = {"Mod4", "Shift"} key = "1" func = "tag_transfert" cmd ="1" [/key]
  416. [key] mod = {"Mod4", "Shift"} key = "2" func = "tag_transfert" cmd ="2" [/key]
  417. [key] mod = {"Mod4", "Shift"} key = "3" func = "tag_transfert" cmd ="3" [/key]
  418. [key] mod = {"Mod4", "Shift"} key = "4" func = "tag_transfert" cmd ="4" [/key]
  419. [key] mod = {"Mod4", "Shift"} key = "5" func = "tag_transfert" cmd ="5" [/key]
  420. [key] mod = {"Mod4", "Shift"} key = "6" func = "tag_transfert" cmd ="6" [/key]
  421. [key] mod = {"Mod4", "Shift"} key = "7" func = "tag_transfert" cmd ="7" [/key]
  422. [key] mod = {"Mod4", "Shift"} key = "8" func = "tag_transfert" cmd ="8" [/key]
  423. [key] mod = {"Mod4", "Shift"} key = "9" func = "tag_transfert" cmd ="9" [/key]
  424.  
  425. # Toggle additional tags (x) on the current tag
  426. [key] mod = {"Mod4", "Control"} key = "1" func = "tag_toggle_additional" cmd ="1" [/key]
  427. [key] mod = {"Mod4", "Control"} key = "2" func = "tag_toggle_additional" cmd ="2" [/key]
  428. [key] mod = {"Mod4", "Control"} key = "3" func = "tag_toggle_additional" cmd ="3" [/key]
  429. [key] mod = {"Mod4", "Control"} key = "4" func = "tag_toggle_additional" cmd ="4" [/key]
  430. [key] mod = {"Mod4", "Control"} key = "5" func = "tag_toggle_additional" cmd ="5" [/key]
  431. [key] mod = {"Mod4", "Control"} key = "6" func = "tag_toggle_additional" cmd ="6" [/key]
  432. [key] mod = {"Mod4", "Control"} key = "7" func = "tag_toggle_additional" cmd ="7" [/key]
  433. [key] mod = {"Mod4", "Control"} key = "8" func = "tag_toggle_additional" cmd ="8" [/key]
  434. [key] mod = {"Mod4", "Control"} key = "9" func = "tag_toggle_additional" cmd ="9" [/key]
  435.  
  436. # Media keys
  437. [key] mod = {} key = "XF86AudioPlay" func = "spawn" cmd = "ncmpcpp toggle" [/key]
  438. [key] mod = {} key = "XF86AudioMute" func = "spawn" cmd = "dvol -t" [/key]
  439. [key] mod = {} key = "XF86AudioRaiseVolume" func = "spawn" cmd = "dvol -i 5" [/key]
  440. [key] mod = {} key = "XF86AudioLowerVolume" func = "spawn" cmd = "dvol -d 5" [/key]
  441. [key] mod = {} key = "XF86AudioNext" func = "spawn" cmd = "ncmpcpp next" [/key]
  442. [key] mod = {} key = "XF86AudioPrev" func = "spawn" cmd = "ncmpcpp prev" [/key]
  443. [key] mod = {} key = "XF86AudioStop" func = "spawn" cmd = "ncmpcpp stop" [/key]
  444. # Take a screenshot.
  445. [key] mod = {} key = "Print" func = "spawn" cmd = "screenshot" [/key]
  446.  
  447. [/keys]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement