Last active
August 15, 2023 01:05
-
-
Save henri/883f4ef16bf81effd992a8ce91d619eb to your computer and use it in GitHub Desktop.
LINUX sxhkd + xdotool (control arrorw key press modifications)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requires 'sxhkd' and 'xdotool' to both be installed. | |
# Start 'sxhkd' for this to actually become active | |
# Config should be installed into this file : | |
# ./config/sxhkd/sxhkdrc | |
# | |
# Released under the GNU/GPL v3 or later : | |
# https://en.wikipedia.org/wiki/GNU_General_Public_License | |
# | |
# Unintended operation and unexpected issues are not my responsobility | |
# use this script and settings and these tools at your own risk | |
# | |
# control + arrorw key(s) to emulate : home / end / page up / page down | |
# --------------------------------------------------------------------- | |
ctrl + Up | |
xdotool keyup Up key --clearmodifiers Prior | |
ctrl + Down | |
xdotool keyup Down key --clearmodifiers Next | |
ctrl + Left | |
xdotool keyup Left key --clearmodifiers Home | |
ctrl + Right | |
xdotool keyup Right key --clearmodifiers End | |
# control + shift + arrow key(s) to emulate : shfit + home / end / page up / page down | |
# ------------------------------------------------------------------------------------ | |
ctrl + shift + Up | |
xdotool keyup Up Ctrl key Prior | |
ctrl + shift + Down | |
xdotool keyup Down Ctrl key Next | |
ctrl + shift + Left | |
xdotool keyup Left Ctrl key Home | |
ctrl + shift + Right | |
xdotool keyup Right Ctrl key End | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Requires 'sxhkd' and 'xdotool' to both be installed. | |
# Start 'sxhkd' for this to actually become active | |
# Config should be installed into this file : | |
# ./config/sxhkd/sxhkdrc | |
# | |
# Released under the GNU/GPL v3 or later : | |
# https://en.wikipedia.org/wiki/GNU_General_Public_License | |
# | |
# Unintended operation and unexpected issues are not my responsobility | |
# use this script and settings and these tools at your own risk | |
# | |
# alt + arrorw key(s) to emulate : home / end / page up / page down | |
# --------------------------------------------------------------------- | |
alt + Up | |
xdotool keyup Up key --clearmodifiers Prior | |
alt + Down | |
xdotool keyup Down key --clearmodifiers Next | |
alt + Left | |
xdotool keyup Left key --clearmodifiers Home | |
alt + Right | |
xdotool keyup Right key --clearmodifiers End | |
# control + shift + arrow key(s) to emulate : shfit + home / end / page up / page down | |
# ------------------------------------------------------------------------------------ | |
alt + shift + Up | |
xdotool keyup Up Alt key Prior | |
alt + shift + Down | |
xdotool keyup Down Alt key Next | |
alt + shift + Left | |
xdotool keyup Left Alt key Home | |
alt + shift + Right | |
xdotool keyup Right Alt key End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment