aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2023-09-19 20:41:11 +0100
committerJuan J. Martinez <jjm@usebox.net>2023-09-19 20:41:11 +0100
commit1a288a4b0904cd72553a260e5caa2f695fff95f8 (patch)
tree9188c645260125c34003ee31b025b571337cb6d2
parente8659f62d684bd9da6a27c86b9d1ea62590a8e0d (diff)
downloaddotnvim-1a288a4b0904cd72553a260e5caa2f695fff95f8.tar.gz
dotnvim-1a288a4b0904cd72553a260e5caa2f695fff95f8.zip
Tidier
-rw-r--r--i3/config10
-rwxr-xr-xi3/set-keyboard9
2 files changed, 11 insertions, 8 deletions
diff --git a/i3/config b/i3/config
index 2207db8..7886a17 100644
--- a/i3/config
+++ b/i3/config
@@ -10,14 +10,8 @@ font pango:JetBrains Mono Medium 8
# Composite manager.
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'
+# Keyboard layout and config
+exec_always --no-startup-id ~/.config/i3/set-keyboard
# 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.
diff --git a/i3/set-keyboard b/i3/set-keyboard
new file mode 100755
index 0000000..e905abb
--- /dev/null
+++ b/i3/set-keyboard
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+
+setxkbmap -model pc105 -layout gb -variant extd
+xmodmap -e 'keycode 66 = Mode_switch'
+xmodmap -e 'clear lock'
+xmodmap -e 'keycode 113 = Left NoSymbol Home'
+xmodmap -e 'keycode 114 = Right NoSymbol End'