2017-05-15 20:47:47 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
[ -f ~/.Xresources ] && xrdb -merge .Xresources
|
|
|
|
xsetroot -cursor_name left_ptr
|
2021-07-21 14:00:12 -04:00
|
|
|
xset -b
|
2017-05-15 20:47:47 -04:00
|
|
|
|
2019-08-25 18:17:16 -04:00
|
|
|
HOSTNAME=$(hostname)
|
|
|
|
|
2021-07-21 14:00:12 -04:00
|
|
|
compton --config $HOME/.config/i3/compton.conf &
|
2019-08-25 18:17:16 -04:00
|
|
|
#com.discordapp.Discord &
|
|
|
|
#com.slack.Slack &
|
|
|
|
if [ "$HOSTNAME" = cabinet ]; then
|
|
|
|
if [ -d /etc/X11/xinit/xinitrc.d ]; then
|
|
|
|
for f in /etc/X11/xinit/xinitrc.d/*; do
|
|
|
|
[ -x "$f" ] && . "$f"
|
|
|
|
done
|
|
|
|
unset f
|
|
|
|
exec $STARTUP i3
|
|
|
|
fi
|
|
|
|
else
|
2021-07-21 14:00:12 -04:00
|
|
|
xbindkeys
|
|
|
|
# hybrid graphics stuff
|
|
|
|
xrandr --setprovideroutputsource modesetting NVIDIA-0
|
|
|
|
xrandr --auto
|
|
|
|
## dunst, for X notifications, notably used by Network Manager
|
|
|
|
systemctl --user import-environment DISPLAY
|
|
|
|
systemctl --user restart dunst
|
2019-08-25 18:17:16 -04:00
|
|
|
nm-applet &
|
|
|
|
exec i3
|
|
|
|
fi
|