Xfce Forum

Sub domains
 

You are not logged in.

#1 2016-08-15 23:56:09

discodave
Member
Registered: 2015-06-04
Posts: 5

More than one shortcut per Window Manager action?

Hello there,
    I've been playing around with the keyboard shortcuts that under Window Manager of the xfce4-settings-manager. I was wondering if it was possible to have more than one keyboard shortcut per action?

Thanks in advanced!
     Disco

Offline

#2 2016-09-10 00:45:28

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: More than one shortcut per Window Manager action?

Thanks for your question, I just tried and it is possible, you have to use xfce4-settings-editor.

Look for the value you want to clone: In your case it's under xfce4-keyboard-shortcuts > xfwm4 > custom (or default).

In my test I used the default property "/xfwm4/default/<Alt>space", which has the value "popup_menu_key" (which is a string); then created a new property "<Super>m" (actually "/xfwm4/custom/<Super>m") with that same value ("popup_menu_key"). Now both shortcuts work!

Your newly created property will be in xfce4-keyboard-shortcuts > xfwm4 > custom.

I know that you can do this using the command line and xfconf-query, and maybe there's a better way, but I hope this helps...

Offline

#3 2020-01-07 16:12:09

poleguy
Member
Registered: 2018-11-14
Posts: 4

Re: More than one shortcut per Window Manager action?

I just tried this with tile_left_key and I can't  get it to accept two keys. I'm using xfce 4.12. Does this trick not work any more?

Offline

#4 2022-10-12 18:47:02

poleguy
Member
Registered: 2018-11-14
Posts: 4

Re: More than one shortcut per Window Manager action?

I just tried again on xfce 4.16 and the solution by alcornoqui seemed to work fine, but then I realized that although the key was created, only one of the two hot-keys actually did anything. Does anyone have a work around?

My question on stack exchange links here too:
https://unix.stackexchange.com/question … 839#560839

Last edited by poleguy (2022-10-12 18:52:51)

Offline

#5 2022-10-13 02:20:31

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

Re: More than one shortcut per Window Manager action?

You can use xdotool for the second shortcut to emit the first shortcut combination. For example:

  1. set ctrl+alt+right to the swtich to right workspace

  2. In Settings Manager > Keyboard > Application Shortcuts, create a new shortcut to the command;

    xdotool key Ctrl+Alt+Right

    ...and assign it the Ctrl+Alt+Page_Up shortcut.


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

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

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 534.05 KiB (Peak: 534.89 KiB) ]