mirror of
https://github.com/0intro/wmii
synced 2024-11-29 17:13:11 +03:00
small change to wmiirc
This commit is contained in:
parent
541149a008
commit
c331ae7a51
@ -73,9 +73,10 @@ extern xterm -rv&
|
||||
status &
|
||||
|
||||
wmiir read /event | \
|
||||
while(key=`{read}) {
|
||||
xwrite /bar/2/data $key
|
||||
switch($key) {
|
||||
while(event=`{read}) {
|
||||
xwrite /bar/2/data $"event
|
||||
if(~ $event(1) K) { # key press
|
||||
switch($event(2)) {
|
||||
case $MODKEY-Control-c
|
||||
xwrite /sel/sel/sel/ctl kill
|
||||
case $MODKEY-Control-w,y
|
||||
@ -119,4 +120,5 @@ while(key=`{read}) {
|
||||
case $MODKEY-Shift-[1-9]
|
||||
xwrite /ctl 'select '^`{echo $k|sed 's/.*-//g'}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user