Skip to content

Instantly share code, notes, and snippets.

@cwarden
Created November 8, 2011 23:00
Show Gist options
  • Select an option

  • Save cwarden/1349583 to your computer and use it in GitHub Desktop.

Select an option

Save cwarden/1349583 to your computer and use it in GitHub Desktop.
--title wmii: window manager improved 2
--date December 12, 2007
--author Christian G. Warden <cwarden@xerus.org>
--newpage Features
--heading Features
* Managed and Floating modes
---
- Max
- Stack
- Tiled (Default)
---
- Columns
---
* Tagging
---
* Scriptable
9P filesystem interface
--newpage rc.wmii
--heading rc script
Configures keys and events
--ulon
Included
--uloff
* rc.wmii - Plan9's rc shell
--beginoutput
fn Key-$MODKEY-d { wmiir xwrite /tag/sel/ctl colmode sel default }
fn Key-$MODKEY-s { wmiir xwrite /tag/sel/ctl colmode sel stack }
--endoutput
* wmiirc - Bourne shell
--beginoutput
Key $MODKEY-d
wmiir xwrite /tag/sel/ctl colmode sel default
Key $MODKEY-s
wmiir xwrite /tag/sel/ctl colmode sel stack
--endoutput
--newpage wmiirc alternatives
--heading rc script (more)
--ulon
Alternatives
--uloff
* wmiirc-lua
- novel suspend mode sends STOP and CONT signals
* ruby-wmii
--newpage wmiir
--heading wmiir(1)
--center Command-line interface to 9p filesystem
---
--beginshelloutput
$ wmiir ls /
client/
colrules
ctl
event
keys
lbar/
rbar/
tag/
tagrules
--endshelloutput
--newpage wmiir
--heading wmiir(1)
--center wmiir examples
--beginshelloutput
$ echo "$WMII_NORMCOLORS" presentation | wmiir create \ /lbar/presentation
--exec sh -c 'echo "#222222 #5FBF77 #2A7F3F" presentation | wmiir create /lbar/presentation'
$ echo -n 1+presentation | wmiir write /client/`wmiir read \ /client/sel/ctl`/tags
--exec sh -c 'echo -n 1+presentation | wmiir write /client/`wmiir read /client/sel/ctl`/tags'
$ echo -n view presentation | wmiir write /ctl
--exec sh -c 'echo -n view presentation | wmiir write /ctl'
--endshelloutput
--newpage dmenu
--heading dmenu(1)
* Displays at top or bottom of screen
* Reads list of options from stdin
* Matches on substring
* Writes selected option to stdout
---
Example:
Do you like wmii?
--beginshelloutput
$ echo -e "Yes\nNo" | dmenu | xargs xmessage
--endshelloutput
--exec sh -c 'echo -e "Yes\nNo" | dmenu | xargs xmessage'
---
* Mod-p to spawn programs
--newpage end
--heading The End
---
--beginshelloutput
$ wmiir xwrite /client/sel/ctl kill
--endshelloutput
--sleep 4
--## --exec sh -c 'wmiir xwrite /client/sel/ctl kill'
--exec sh -c 'wmiir xwrite /client/sel/ctl kill'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment