i3, xinitrc: Move some programs to .xinitrc

This commit is contained in:
Salt 2019-07-01 02:00:47 -05:00
parent 067b33a780
commit 952ea6fb1d
2 changed files with 24 additions and 12 deletions

View File

@ -7,19 +7,9 @@
## Startup tasks
###################
# High-priority shit
exec --no-startup-id pulseaudio
exec --no-startup-id mate-settings-daemon
exec --no-startup-id compton
exec --no-startup-id nitrogen --restore
# These two tasks remain i3's responsibility as executing them here ensures
# that the WM is up and running before they start
exec --no-startup-id ~/.config/polybar/launch.sh
exec --no-startup-id redshift
# Start up whenever shit
exec --no-startup-id dunst
exec --no-startup-id /usr/lib/x86_64-linux-gnu/polkit-mate/polkit-mate-authentication-agent-1
exec --no-startup-id /usr/lib/polkit-mate/polkit-mate-authentication-agent-1
exec --no-startup-id mate-power-manager
# XDG
exec --no-startup-id "dex -a"
###################

View File

@ -1,7 +1,29 @@
#!/bin/sh
# Source in xsessionrc
if [ -z "$XSESSION_HAS_SOURCED" ]; then
source ~/.xsessionrc
fi
unset XDG_CURRENT_DESKTOP
unset XSESSION_HAS_SOURCED
# Basic setup
xset -b -dpms
# High-priority shit
pulseaudio &
mate-settings-daemon &
compton &
nitrogen --restore &
~/.config/polybar/launch.sh &
redshift &
# Start up whenever shit
dunst &
/usr/lib/x86_64-linux-gnu/polkit-mate/polkit-mate-authentication-agent-1 &
/usr/lib/polkit-mate/polkit-mate-authentication-agent-1 &
mate-power-manager &
# Off to the races
exec i3