View previous topic :: View next topic |
Author |
Message |
fvant Guru
Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Thu Aug 28, 2003 12:13 pm Post subject: How to script workspace switching ? |
|
|
I have setup 4 workspaces and would like switch between them every 4 seconds via a script..but how do i send keystrokes to the windowmanager (say Windowmaker) ? |
|
Back to top |
|
|
furanku l33t
Joined: 08 May 2003 Posts: 905 Location: Hamburg, Germany
|
Posted: Thu Aug 28, 2003 2:44 pm Post subject: |
|
|
I know that's not a general answer to your question, but under KDE it's easily done using the Desktop Communication Protocoll (DCOP). Simply type in a shell
Code: |
while [[ true ]]; do dcop kwin KWinInterface nextDesktop ; sleep 4; done
|
Taken from KDE.NEWS.
for other (non DCOP aware WM) I don't know.
Frank |
|
Back to top |
|
|
fvant Guru
Joined: 08 Jun 2003 Posts: 328 Location: Leiden, The Netherlands
|
Posted: Mon Sep 01, 2003 3:34 pm Post subject: |
|
|
Solved it by using xvkbd and a loop sending keys to move to a numbered workspace directly. Not as elegant but wmaker didn't know how to cycle properly anyway |
|
Back to top |
|
|
|