]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Choose keyboard/screen layout based on hostname
authorMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 31 Oct 2016 09:26:01 +0000 (09:26 +0000)
committerMaximilian Friedersdorff <max@friedersdorff.com>
Mon, 31 Oct 2016 09:26:01 +0000 (09:26 +0000)
X/.xinitrc

index 78979895a75411806caf8260f8b8eabb4d595390..0c2dc6b055e36771ac75c6c0bc2497e07fefdc35 100644 (file)
@@ -16,13 +16,25 @@ fi
 # Load .Xresources
 xrdb -merge ~/.Xresources &> /dev/null
 
-setxkbmap -variant colemak gb
-xmodmap -e "keycode 66 = Control_L Control_L Control_L Control_L"
-xmodmap -e "add Control = Control_L Control_R"
+# Set keyboard layout
+case $HOSTNAME in
+    palladium|beryllium)
+       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"
+       ;;
+    *)
+esac
 
 # Set screen layout
-xrandr --output VGA1 --right-of HDMI1
-
+case $HOSTNAME in
+    beryllium)
+       xrandr --output VGA1 --right-of HDMI1
+       ;;
+    *)
+       ;;
+esac
 
 # Set java font option
 export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=on"