mirror of
https://github.com/0intro/wmii
synced 2025-01-06 02:22:01 +03:00
68 lines
1.9 KiB
Bash
Executable File
68 lines
1.9 KiB
Bash
Executable File
#!9PREFIX/bin/rc -x
|
|
# configure wmii
|
|
|
|
CLIENT_BAR=0
|
|
CLIENT_BORDER=3
|
|
HANDLEINC=1
|
|
|
|
SEL_COLOR="#ffffff #444466 #666688"
|
|
NORM_COLOR="#dddddd #555555 #777777"
|
|
FONT="fixed"
|
|
|
|
fn xwrite { echo -n $2 | wmiir write $1 }
|
|
|
|
# WMIIWM CONFIGURATION
|
|
xwrite /wm/default/bar $CLIENT_BAR
|
|
xwrite /wm/default/border $CLIENT_BORDER
|
|
xwrite /wm/default/font $FONT
|
|
xwrite /wm/default/selcolor $SEL_COLOR
|
|
xwrite /wm/default/normcolor $NORM_COLOR
|
|
for(page in `{wmiir read /wm | grep '^d' | awk '{print $10}' | grep -v new}) {
|
|
for(area in `{wmiir read /wm/$page | grep '^d' | awk '{print $10}' | grep -v new}) {
|
|
for(client in `{wmiir read /wm/$page/$area | grep '^d' | awk '{print $10}'}) {
|
|
xwrite /wm/$page/$area/$client/bar $CLIENT_BAR
|
|
xwrite /wm/$page/$area/$client/border $CLIENT_BORDER
|
|
}
|
|
}
|
|
}
|
|
|
|
# WMIIKEYS CONFIGURATION
|
|
cat | wmiir write /keys/reset <<END
|
|
Control-Alt-c #write /wm/sel/sel/sel/ctl kill
|
|
Control-Alt-q,y quit
|
|
Control-Alt-w,y wmiirc
|
|
Alt-t extern xterm -rv
|
|
Alt-d #write /wm/sel/sel/sel/ctl detach
|
|
Alt-a #write /wm/ctl attach
|
|
Shift-Alt-a #write /wm/ctl detached
|
|
Alt-n wmiir read /wm/sel/new >/dev/null >[2=1]
|
|
Alt-m #write /wm/sel/sel/sel/ctl max
|
|
Alt-Return #write /wm/sel/sel/ctl swap east
|
|
Shift-Alt-Return #write /wm/sel/sel/ctl swap west
|
|
Control-Alt-y wmiir read /wm/new >/dev/null >[2=1]
|
|
Alt-h #write /wm/sel/ctl select next
|
|
Alt-l #write /wm/sel/ctl select prev
|
|
Alt-Tab #write /wm/sel/sel/ctl select next
|
|
Alt-j #write /wm/sel/sel/ctl select next
|
|
Alt-k #write /wm/sel/sel/ctl select prev
|
|
Shift-Alt-h #write /wm/ctl select prev
|
|
Shift-Alt-l #write /wm/ctl select next
|
|
Shift-Alt-p #write /wm/ctl pager
|
|
Shift-Alt-1 #write /wm/ctl select 1
|
|
Shift-Alt-2 #write /wm/ctl select 2
|
|
Shift-Alt-3 #write /wm/ctl select 3
|
|
Shift-Alt-4 #write /wm/ctl select 4
|
|
END
|
|
|
|
xwrite /keys/font $FONT
|
|
xwrite /keys/color $SEL_COLOR
|
|
|
|
# WMIIBAR CONFIGURATION
|
|
xwrite /bar/font $FONT
|
|
xwrite /bar/defcolor $SEL_COLOR
|
|
echo -n fnord | wmiir write /bar/new/data
|
|
|
|
# MISC
|
|
xsetroot -mod 2 2 -bg '#444466' -fg '#555555'
|
|
status&
|