Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to script workspace switching ?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Thu Aug 28, 2003 12:13 pm    Post subject: How to script workspace switching ? Reply with quote

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
View user's profile Send private message
furanku
l33t
l33t


Joined: 08 May 2003
Posts: 905
Location: Hamburg, Germany

PostPosted: Thu Aug 28, 2003 2:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
fvant
Guru
Guru


Joined: 08 Jun 2003
Posts: 328
Location: Leiden, The Netherlands

PostPosted: Mon Sep 01, 2003 3:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum