Ruben Gonzalez Arnau wrote:
> # dwm zoom/cycle emulation
> fn dwmzoom {
> curclinum=`{getclinum}
> wmiir xwrite /tag/sel/ctl select down
> nextclinum=`{getclinum}
I suggest reading & parsing the index file (/tag/sel/index) and
addressing clients by their unique ID in the "send" commands below.
That way, your code will work even if {new clients appear / old
clients disappear / clients move around} in the middle of execution.
> wmiir xwrite /tag/sel/ctl send sel up
wmiir xwrite /tag/sel/ctl send YOUR_CLIENT_ID_NUMBER up
Received on Wed Mar 12 2008 - 07:21:15 UTC
This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 16:38:00 UTC