wmii/rc/kmode

12 lines
321 B
Bash

#!9PREFIX/bin/rc
# activate shortcuts of the given mode
wmir write /keys/grabkeyb 0
wmir write /keys/lookup /mode/$1
plab_cmd=`{wmir read /wm/event/pageupdate | sed -e 's/\\//'}
if (! ~ $#plab_cmd 0) eval $"plab_cmd
#wmir write /bar/$plab/data \
#`{wmir read /bar/$plab/data | sed -e 's/.$/'^`{echo $2 | cut -b1}^'/'}