mirror of
https://github.com/0intro/wmii
synced 2024-11-25 23:30:24 +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
|
||||
@ -120,3 +121,4 @@ while(key=`{read}) {
|
||||
xwrite /ctl 'select '^`{echo $k|sed 's/.*-//g'}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user