dotfiles/xinitrc

41 lines
884 B
Bash
Executable file

#! /bin/bash
case "$HOSTNAME" in
cipbuero4)
# detects fau-machine and defines variable for Xresources
xrdb -load -DHOST_FAUCIP ~/.Xresources
xrandr --output DP-2 --scale 1.6x1.6
;;
fau*|cip*)
# detects fau-machine and defines variable for Xresources
xrdb -load -DHOST_FAUCIP ~/.Xresources
;;
*)
# other hosts cann use SRVR_host
xrdb -load ~/.Xresources
;;
esac
setxkbmap us -variant altgr-intl -option ctrl:nocaps -option compose:menu -option compose:ralt
if [ -d $HOME/.fonts ]; then
xset +fp $HOME/.fonts
xset fp rehash
fi
# start automount-daemon for udisks2 if available
if type "udiskie" >/dev/null 2>&1; then
udiskie &
fi
# autolock on suspend
xss-lock -- i3lock --nofork --show-failed-attempts &
# autolock after 5 minutes of inactivity
xset s 300
# set background
xsetroot -solid '#22AA22'
feh --randomize --bg-fill ~/misc/wallpapers
exec i3