Skip to content
arnault edited this page Mar 13, 2012 · 23 revisions

Tips

here are some examples for your wmfs configuration. you can find other configs and artwork by visiting the wmfs-customizers group on devart.

display images in the tagbar

tag statusline
the code to put in your [tags] section:

[tag] screen = 0 name = "    " statusline = "^i[7;-1;15;15;/home/xorg62/Pictures/smiley.gif]" [/tag]

display popup menu from statusbar with dzen2

wmfs2 dzen2
see it in actionconfig & scripts

display buttons in the titlebar

titlebar buttons
the icons
the code to put in your [theme] section:

client_sel_statusline = "^i[1;1;0;0;/home/arp/.config/wmfs/icons/client_close.png](1;client_close) ^i[12;1;0;0;/home/arp/.config/wmfs/icons/client_prev.png](1;tag_move_client_prev) ^i[24;1;0;0;/home/arp/.config/wmfs/icons/client_next.png](1;tag_move_client_next) ^i[36;1;0;0;/home/arp/.config/wmfs/icons/client_free.png](1;client_toggle_free)"

text buttons complete statusline

you can use uicb_functions to control clients as above. but you can add others actions:
with this code: B1 on “x” close the client, B1 on “~” toogle free the client, B1 on “</>” set the client to previous/next tag, B2 on “</>” set the client to previous/next tag and follow the client.
the code:

client_sel_statusline = "\s[left;#FF4500; X](1;client_close) \s[left;#FF4500; ~](1;client_toggle_free) \s[left;#FF4500; <](1;tag_move_client_prev)(2;tag_move_client_prev)(2;tag_prev) \s[left;#FF4500; >](1;tag_move_client_next)(2;tag_move_client_next)(2;tag_next)"

create a custom launcher

wmfs² integrate a native prompt available with the [Super]+[p] keybind. but you can create as many launchers as you want:

  • ssh launcher: an SSH launcher enables you to start an SSH session in a new terminal window.
    To create an SSH launcher, add the following to the [launcher] section of your wmfsrc:
# ssh launcher
[launcher]
       name    = "launcher_ssh" 
       prompt  = "SSH to: " 
       command = "spawn urxvtc -e ssh"
       width   = 150
[/launcher]

to execute the launcher_ssh command, add the following to the [keys] section of your wmfsrc:

[key] mod = {"Alt", "Shift"} key = "p" func = "launcher" cmd = "launcher_ssh" [/key]

Now simply press Alt+Shift+P and enter ‘user@host’ at the prompt to launch an SSH session in a new terminal window.

  • man page launcher: a man page launcher enables you to quickly launch man pages in a temporary terminal which closes when you exit the man page.
    Add the following to the [launchers] section of your wmfsrc:
# man page launcher
[launcher]
    name = "launcher_man" 
    prompt = "Man: " 
    command = "spawn xterm -e man"
    width = 150
[/launcher]

bind a hotkey to the man page launcher by adding the following to the [keys] section:

[key] mod = {"Alt"} key = "m" func = "launcher" cmd = "launcher_man" [/key]

control mocp from the statusbar

a script is used to control mocp and conky display information about the current track.
screenshot:
status mocp
the code
the conkyrc launched by the script.

transform the statusbar in a dock

the clickable statusbar feature let you integrate a dock in the wmfs² statusbar. here is an example of a "text-dock’ but you can easily disply icons with the code ^i[<position>;<dimensions>;<imagepath>].
screenshot:
status dock
the code