31 lines
595 B
Bash
Executable file
31 lines
595 B
Bash
Executable file
#! /bin/bash
|
|
|
|
case "$HOSTNAME" in
|
|
fau*)
|
|
# 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
|
|
|
|
# autolock on suspend
|
|
xss-lock -- i3lock --nofork &
|
|
|
|
# autolock after 5 minutes of inactivity
|
|
xset s 300
|
|
|
|
# set background
|
|
xsetroot -solid '#22AA22'
|
|
feh --randomize --bg-fill ~/misc/wallpapers
|
|
|
|
exec i3
|