added new MODKEY-Control-{1...9} shortcuts to send a client into a specific page

This commit is contained in:
Anselm R. Garbe 2006-02-24 07:29:09 +01:00
parent b3e54e3ae0
commit 2c72f43861

View File

@ -74,7 +74,8 @@ for(i in \
$MODKEY-^(t d a n m Return) \ $MODKEY-^(t d a n m Return) \
$MODKEY-^(h l j k Tab ) \ $MODKEY-^(h l j k Tab ) \
$MODKEY-Shift-^(a h l p Return) \ $MODKEY-Shift-^(a h l p Return) \
$MODKEY-Shift-^`{seq 1 9}) $MODKEY-Shift-^`{seq 1 9} \
$MODKEY-Control-^`{seq 1 9})
echo -n | wmiir create /keys/$i echo -n | wmiir create /keys/$i
# EVENT LOOP # EVENT LOOP
@ -157,6 +158,8 @@ while(event=`{read}) {
xwrite /ctl pager xwrite /ctl pager
case $MODKEY-Shift-[1-9] case $MODKEY-Shift-[1-9]
xwrite /ctl 'select '^`{echo $event|awk -F- '{print $3}'} xwrite /ctl 'select '^`{echo $event|awk -F- '{print $3}'}
case $MODKEY-Control-[1-9]
xwrite /sel/sel/sel/ctl 'sendto '^`{echo $event|awk -F- '{print $3}'}
} }
} }
} }