[ltp] tpb: switching between gnome workspaces

Roland Knöpfli linux-thinkpad@linux-thinkpad.org
Tue, 30 Aug 2005 07:21:11 +0200


thank you, that's exactly what i was looking for!

Noah Dain wrote:
> On 8/29/05, Roland Knöpfli <roland.knoepfli@gmx.ch> wrote:
> 
>>hi,
>>
>>i played around with tpb on my a31p. in the config file at /etc/tpbrc i
>>can set an action for every special-key like the home button. for
>>example: if i press the home button /usr/bin/firefox will start.
>>
>>as my a31p has special forward and backward keys near the common arrow
>>keys, i wanted to give them a function too. my idea is this:
>>
>>if i press "ctrl-alt-arrowleft/right" (i'm using gnome 2.10) i can
>>switch between the four virtual workspaces. it would be nice to
>>configure the forward/backward button to do this instead of using a
>>combination of three buttons.
>>
>>my question: is there a command i can execute to do the workspace
>>switching? if not, is there a possibility to simulate the
>>"ctrl-alt-arrowleft"-keystroke by executing a command?
>>
>>sorry for my bad english, but i hope you understand what i want.
>>
>>thanks,
>>roland
> 
> 
> you need wmctrl
> 
> http://sweb.cz/tripie/utils/wmctrl/
>