dotfiles/xinitrc

31 lines
738 B
Bash

#!/bin/sh
[ -f ~/.Xresources ] && xrdb -merge .Xresources
xsetroot -cursor_name left_ptr
xset -b
HOSTNAME=$(hostname)
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
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