X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=X%2F.xinitrc;h=def251d4265ad66b3fcfcebe39c9791724739efa;hb=46657a2bac3b51f7dbb1e78982347cf258b36b83;hp=a0cce71ef23a37d84ed69493e5fd7b3cff7f540d;hpb=51dee527665595592f8c1e18a1a5a2561865d823;p=max%2Fdotfiles.git diff --git a/X/.xinitrc b/X/.xinitrc index a0cce71..def251d 100644 --- a/X/.xinitrc +++ b/X/.xinitrc @@ -16,33 +16,34 @@ fi # Load .Xresources xrdb -merge ~/.Xresources &> /dev/null if [ -f ~/.Xresources.$HOSTNAME ]; then - xrdb -merge ~/.Xresources.$HOSTNAME &> /dev/null + xrdb -merge ~/.Xresources.$HOSTNAME &> /dev/null fi # Set keyboard layout case $HOSTNAME in - palladium) + 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) 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" ;; *) + ;; esac # Set screen layout case $HOSTNAME in - beryllium) - xrandr --output VGA1 --right-of HDMI1 - ;; - *) - ;; + magnesium) + xrandr --output VGA1 --right-of HDMI2 + ;; + *) + ;; esac # Set java font option @@ -54,12 +55,41 @@ feh --bg-scale ~/Pictures/background.jpg& xset -b -if ! pgrep -x -u "${USER}" gpg-agent>/dev/null 2>&1; then - eval $(gpg-agent --daemon \ - --use-standard-socket \ - --write-env-file "${HOME}/.gpg-agent-info") +#if ! pgrep -x -u "${USER}" gpg-agent>/dev/null 2>&1; then +# eval $(gpg-agent --daemon \ + # --use-standard-socket \ + # --write-env-file "${HOME}/.gpg-agent-info") +#fi +# +#gpg-connect-agent updatestartuptty /bye >/dev/null + +# Battery monitoring +case $HOSTNAME in + platinum) + ~/.local/bin/bat_mgt.sh& + ;; + *) + ;; +esac + +cat ~/.ratpoisonrc.base ~/.ratpoisonrc.$HOSTNAME > ~/.ratpoisonrc + +# run xcreensaver +if [ -x $(which xscreensaver) ]; then + xscreensaver& fi -gpg-connect-agent udatestartuptty /bye >/dev/null +# configure i3 + +if [ -f ~/.config/i3/config.base ]; then + cat ~/.config/i3/config.base ~/.config/i3/config.${HOSTNAME} > ~/.config/i3/config +fi -exec /usr/bin/ratpoison +case $HOSTNAME in + magnesium|platinum|plutonium) + exec i3 + ;; + *) + exec ratpoison + ;; +esac