8

I tried to add it in the default shortcuts application but it just won't accept super on it's own. It will accept Super + X But I just want to override the super key.

I'm using Mate so no Unity conflict.

I tried searching and did found a few very specific work around but none with the super key and a custom command/script.

Example what I want is:

Press Super
Do bash ~/rearange_windows.sh --all

Pablo Bianchi
  • 17,371
janw
  • 556

2 Answers2

2

You can use xbindkeys

Put your command with a "release" event into ~/xbindkeysrc.

For more info, see man xbindkeys.

Pablo Bianchi
  • 17,371
0

As mentioned by @ijustlovemath, yes, you can use xbindkeys, but I suggest a different format for your command.

Add this to ~/xbindkeysrc:

"xte 'keydown Super_L' 'key e' 'keyup Super_L'"
   bash ~/rearange_windows.sh --all