From: Maximilian Friedersdorff Date: Tue, 26 Jan 2021 09:31:51 +0000 (+0000) Subject: Use layout switching scripts X-Git-Url: https://git.friedersdorff.com/?a=commitdiff_plain;h=6ef4a05ef19db67f8058bb6ac240c56aa516a19d;p=max%2Fsaltfiles.git Use layout switching scripts --- diff --git a/states/i3/files/xprofile.jinja b/states/i3/files/xprofile.jinja index 11877f6..ad5fcbd 100755 --- a/states/i3/files/xprofile.jinja +++ b/states/i3/files/xprofile.jinja @@ -8,16 +8,10 @@ fi # Set keyboard layout case $HOSTNAME in barium) - setxkbmap -variant colemak us - xmodmap -e "keycode 66 = Control_L Control_L Control_L Control_L" - xmodmap -e "keycode 135 = Control_R Control_R Control_R Control_R" - xmodmap -e "add Control = Control_L Control_R" + layout-colemak_us ;; *) - setxkbmap -variant colemak gb - xmodmap -e "keycode 66 = Control_L Control_L Control_L Control_L" - xmodmap -e "keycode 135 = Control_R Control_R Control_R Control_R" - xmodmap -e "add Control = Control_L Control_R" + layout-colemak_gb ;; esac