aboutsummaryrefslogtreecommitdiff
path: root/i3/config
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-09-17 20:55:43 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-09-17 20:55:43 +0100
commite8659f62d684bd9da6a27c86b9d1ea62590a8e0d (patch)
tree8b4c1343a1cb755d0d7c835d84885d98c1a1dcf5 /i3/config
parentdfb97b551880aa78bf689ad0557f392c7ff765ef (diff)
downloaddotnvim-e8659f62d684bd9da6a27c86b9d1ea62590a8e0d.tar.gz
dotnvim-e8659f62d684bd9da6a27c86b9d1ea62590a8e0d.zip
Workaround to this weird keyboard layout
Diffstat (limited to 'i3/config')
-rw-r--r--i3/config6
1 files changed, 6 insertions, 0 deletions
diff --git a/i3/config b/i3/config
index 50c860b..2207db8 100644
--- a/i3/config
+++ b/i3/config
@@ -13,6 +13,12 @@ exec --no-startup-id /usr/bin/compton -b
# Keyboard layout.
exec_always --no-startup-id setxkbmap -model pc105 -layout gb -variant extd
+# To get home / end with caps lock and left / right
+exec_always --no-startup-id xmodmap -e 'keycode 66 = Mode_switch'
+exec_always --no-startup-id xmodmap -e 'clear lock'
+exec_always --no-startup-id xmodmap -e 'keycode 113 = Left NoSymbol Home'
+exec_always --no-startup-id xmodmap -e 'keycode 114 = Right NoSymbol End'
+
# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
# screen before suspend. Use loginctl lock-session to lock your screen.
exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork