diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-15 14:26:15 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-12-15 14:28:19 +1300 |
commit | 0bff2338642b1dab20c9a720e632691a46153a6a (patch) | |
tree | eaa7efffe6c46d548c28bc1a833a7cf41979e16c /X/xinitrc.d/xkb.sh | |
parent | Use .d directory for .xinitrc subscripts (diff) | |
download | dotfiles-0bff2338642b1dab20c9a720e632691a46153a6a.tar.gz dotfiles-0bff2338642b1dab20c9a720e632691a46153a6a.zip |
Add command guards around .xinitrc.d subscripts
Diffstat (limited to 'X/xinitrc.d/xkb.sh')
-rw-r--r-- | X/xinitrc.d/xkb.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/X/xinitrc.d/xkb.sh b/X/xinitrc.d/xkb.sh index 32b7cf9a..a5142398 100644 --- a/X/xinitrc.d/xkb.sh +++ b/X/xinitrc.d/xkb.sh @@ -1,4 +1,5 @@ # Map Caps Lock as a Ctrl key, use right alt as Compose, kill X server with # Ctrl+Alt+Backspace # <https://en.wikipedia.org/wiki/Compose_key#Common_compose_combinations> +command -v setxkbmap >/dev/null 2>&1 || return setxkbmap -option compose:ralt,ctrl:nocaps,terminate:ctrl_alt_bksp |