dotfiles/xinitrc

31 lines
738 B
Plaintext
Raw Permalink Normal View History

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
HOSTNAME=$(hostname)
2021-07-21 14:00:12 -04:00
compton --config $HOME/.config/i3/compton.conf &
#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
nm-applet &
exec i3
fi