2016-04-28 15:30:04 +00:00
|
|
|
#!/bin/bash
|
2016-01-20 18:28:26 +00:00
|
|
|
|
|
|
|
userresources=$HOME/.Xresources
|
|
|
|
usermodmap=$HOME/.Xmodmap
|
|
|
|
sysresources=/etc/X11/xinit/.Xresources
|
|
|
|
sysmodmap=/etc/X11/xinit/.Xmodmap
|
|
|
|
|
|
|
|
# merge in defaults and keymaps
|
|
|
|
|
2016-04-11 17:25:45 +00:00
|
|
|
[ -f $sysresources ] && xrdb -merge $sysresources
|
|
|
|
[ -f $sysmodmap ] && xmodmap $sysmodmap
|
|
|
|
[ -f "$userresources" ] && xrdb -merge "$userresources"
|
|
|
|
[ -f "$usermodmap" ] && xmodmap "$usermodmap"
|
|
|
|
|
2016-01-20 18:28:26 +00:00
|
|
|
|
|
|
|
# start some nice programs
|
|
|
|
|
|
|
|
if [ -d /etc/X11/xinit/xinitrc.d ] ; then
|
|
|
|
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
|
|
|
|
[ -x "$f" ] && . "$f"
|
|
|
|
done
|
|
|
|
unset f
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2016-01-25 16:28:12 +00:00
|
|
|
#== Thurstylark additions below ==#
|
|
|
|
|
2016-01-20 18:28:26 +00:00
|
|
|
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
|
|
|
|
export SSH_AUTH_SOCK
|
|
|
|
|
|
|
|
# Automatically lock after 30 minutes using slock
|
2016-04-18 16:42:01 +00:00
|
|
|
xautolock -time 30 -locker 'i3lock -b -d -c 000000 -e -f' &
|
2016-01-20 18:28:26 +00:00
|
|
|
|
2016-03-23 23:24:32 +00:00
|
|
|
# Thurstybook-specific config:
|
2016-04-28 15:30:04 +00:00
|
|
|
[ "$(hostname)" == "thurstybook" ] && srandrd ~/.config/srandrd.conf
|
2016-03-23 23:24:32 +00:00
|
|
|
|
|
|
|
|
2016-05-10 19:18:13 +00:00
|
|
|
if [ "$(hostname)" == "dtarchaio" ]; then
|
|
|
|
# Set HDMI1 to be right of eDP1
|
|
|
|
xrandr --output eDP1 --primary --mode 1920x1080 --pos 0x0 --output HDMI1 --mode 1680x1050 --pos 1920x0
|
2016-01-20 18:28:26 +00:00
|
|
|
# Set the bell to be different from Matt's
|
|
|
|
xset b 75 750 50
|
2016-05-10 19:18:13 +00:00
|
|
|
# Set Touchscreen to only work on main display
|
2016-06-01 13:33:00 +00:00
|
|
|
xinput --map-to-output $(xinput list --id-only "Advanced Silicon S.A CoolTouch(TM) System") eDP1
|
2016-05-10 19:18:13 +00:00
|
|
|
fi
|
2016-01-25 16:28:12 +00:00
|
|
|
|
|
|
|
# If numlockx is installed, activate it
|
2016-04-28 15:30:04 +00:00
|
|
|
[ -s /usr/bin/numlockx ] && numlockx on
|
2016-04-11 17:25:45 +00:00
|
|
|
|
2016-01-25 16:28:12 +00:00
|
|
|
|
2016-01-20 18:28:26 +00:00
|
|
|
session=${1:-i3}
|
|
|
|
|
|
|
|
case $session in
|
|
|
|
awesome ) exec awesome;;
|
|
|
|
bspwm ) exec bspwm;;
|
|
|
|
catwm ) exec catwm;;
|
|
|
|
cinnamon ) exec cinnamon-session;;
|
|
|
|
dwm ) exec dwm;;
|
|
|
|
enlightenment ) exec enlightenment_start;;
|
|
|
|
ede ) exec startede;;
|
|
|
|
fluxbox ) exec startfluxbox;;
|
|
|
|
gnome ) exec gnome-session;;
|
|
|
|
gnome-classic ) exec gnome-session --session=gnome-classic;;
|
2016-04-28 15:30:04 +00:00
|
|
|
i3|i3wm ) exec i3 -c ~/.config/i3/$(hostname).config;;
|
2016-01-20 18:28:26 +00:00
|
|
|
icewm ) exec icewm-session;;
|
|
|
|
jwm ) exec jwm;;
|
|
|
|
kde ) exec startkde;;
|
|
|
|
mate ) exec mate-session;;
|
|
|
|
monster|monsterwm ) exec monsterwm;;
|
|
|
|
notion ) exec notion;;
|
|
|
|
openbox ) exec openbox-session;;
|
|
|
|
unity ) exec unity;;
|
|
|
|
xfce|xfce4 ) exec startxfce4;;
|
|
|
|
xmonad ) exec xmonad;;
|
|
|
|
# No known session, try to run it as command
|
|
|
|
*) exec $1;;
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
|
|
|