Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-08-30 02:25:56

2017561
Member
Registered: 2023-12-27
Posts: 6

bash command for switching to a specify workspace [w/o wmctrl]

What is a bash command for switching to a specify workspace.

I know `wmctrl` will do this, but without `wmctrl`, the `xfce4-keyboard-shortcuts.xml` stores the hotkey for XFCE4, I am not sure how they did this

╰$ grep -A 5 'right_workspace_key' ~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
      <property name="&lt;Primary&gt;Right" type="string" value="right_workspace_key"/>

Offline

#2 2024-08-30 10:39:48

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: bash command for switching to a specify workspace [w/o wmctrl]

Some window manager actions are available for keyboard shortcuts in Settings Manager > Window Manager > Keyboard, including workspace movement actions. This is where you would set those keyboard shortcuts or hotkeys.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2024-08-30 17:55:07

2017561
Member
Registered: 2023-12-27
Posts: 6

Re: bash command for switching to a specify workspace [w/o wmctrl]

I mean I want to know the directly the bash command behind the hotkey.

Because with wmctrl, XFCE4 is still able the swtich between workspaces.

Offline

#4 2024-08-30 23:30:29

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,482

Re: bash command for switching to a specify workspace [w/o wmctrl]

2017561 wrote:

I mean I want to know the directly the bash command behind the hotkey.

Because with wmctrl, XFCE4 is still able the swtich between workspaces.

xfwm4 handles this programmatically in the code - there is no bash command behind the scenes.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2024-09-10 00:20:13

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: bash command for switching to a specify workspace [w/o wmctrl]

when you say switch the workspace do you mean to change which workspace you are viewing or do you mean to switch which window the script that does this will output into or something else?

Last edited by Skaperen (2024-09-10 00:20:44)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 8 queries executed - Memory usage: 533.59 KiB (Peak: 534.43 KiB) ]