# Set keyboard layout
case $HOSTNAME in
- palladium|platinum|iridium)
+ platinum)
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"
;;
- beryllium|magnesium)
+ magnesium)
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"
# Set screen layout
case $HOSTNAME in
- beryllium)
- xrandr --output HDMI-1 --left-of DVI-I-1
- ;;
magnesium)
xrandr --output VGA1 --right-of HDMI2
;;
# Battery monitoring
case $HOSTNAME in
- palladium)
- xbattmon&
- ;;
- iridium|platinum)
+ platinum)
~/.local/bin/bat_mgt.sh&
;;
*)
cat ~/.ratpoisonrc.base ~/.ratpoisonrc.$HOSTNAME > ~/.ratpoisonrc
-exec /usr/bin/ratpoison
+# run xcreensaver
+if [ -x $(which xscreensaver) ]; then
+ xscreensaver&
+fi
+
+# configure i3
+
+if [ -f ~/.config/i3/config.base ]; then
+ cat ~/.config/i3/config.base ~/.config/i3/config.${HOSTNAME} > ~/.config/i3/config
+fi
+
+case $HOSTNAME in
+ magnesium|platinum|plutonium)
+ exec i3
+ ;;
+ *)
+ exec ratpoison
+ ;;
+esac