From 1a288a4b0904cd72553a260e5caa2f695fff95f8 Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 19 Sep 2023 20:41:11 +0100 Subject: Tidier --- i3/config | 10 ++-------- i3/set-keyboard | 9 +++++++++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100755 i3/set-keyboard 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' -- cgit v1.2.3