You are not logged in.
Pages: 1
How can we assign another shortcut for copying text to clipboard that is
alt+insert
key while the shortcut default remains as is,
so it becomes multi shortcut for one action, but if it can only be as single shortcut replacing the default it'd be fine too!
Last edited by almahdi (2021-02-20 23:00:32)
Offline
You can assign a new shortcut with xbindkeys and xvkbd.
Here's what I did:
1. Installed xbindkeys and xvkbd
2. Created a file
touch ~/.xbindkeysrc
3. Pasted the following
"xvkbd -no-jump-pointer -xsendevent -text '\Cc'"
Alt+Mod2 + Insert
4. Started xbindkeys
xbindkeys -f ~/.xbindkeysrc
5. Added the above command to autostart
Note: by default Xfce binds Alt+Insert with "Add workspace". You might want to disable it in order to prevent key combination conflicts. Just go to Settings Manager -> Window Manager -> Keyboard tab -> Click on "Add workspace" -> Click "Clear" button.
Note 2: If Alt+Insert is pressed quickly, the key combination is registered as separate key strokes and might not work:
$ xbindkeys --multikey
"(Scheme function)"
m:0x18 + c:64
Alt+Mod2 + Alt_L
"(Scheme function)"
m:0x10 + c:118
Mod2 + Insert
Sources used:
https://wiki.archlinux.org/index.php/Xbindkeys
http://xahlee.info/linux/linux_xbindkeys_tutorial.html
Last edited by PaperNick (2021-02-22 08:22:18)
Offline
Pages: 1
[ Generated in 0.008 seconds, 9 queries executed - Memory usage: 521.67 KiB (Peak: 522.52 KiB) ]