diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2022-10-08 16:28:27 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2022-10-08 16:28:27 +0200 |
commit | 5cd8449c399c939f0632a7346ec3f4e9cd3a4f08 (patch) | |
tree | e335d4343343f1242b35420333b1756ca034769a /xinit.sh | |
parent | f4b0a2b3ee0b82e6093335e37039f6d089492a8f (diff) | |
download | scripts-5cd8449c399c939f0632a7346ec3f4e9cd3a4f08.tar.gz scripts-5cd8449c399c939f0632a7346ec3f4e9cd3a4f08.zip |
Conditionally swap Escape and Caps.
Diffstat (limited to 'xinit.sh')
-rwxr-xr-x | xinit.sh | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -4,11 +4,16 @@ xrdb ~/.Xresources pgrep -x picom || picom -b pgrep -x dunst || dunst & -#setxkbmap -layout es -option caps:swapescape -setxkbmap -layout es xset -b pgrep -x unclutter || unclutter --idle 1 & #touchpad.sh initialLayout.sh setRandomWP.sh pgrep -x sxhkd || sxhkd >~/logs/sxhkd.log & + +# Swap Escape and Caps except Kyria keyboard is connected +if lsusb | grep -Fq 'Kyria'; then + setxkbmap -layout es +else + setxkbmap -layout es -option caps:swapescape +fi |