i3 start fix

This commit is contained in:
Luke Smith 2020-05-13 07:50:08 -04:00
parent 4fb2fe9e30
commit fd9c97310a
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -239,7 +239,7 @@ dbus-uuidgen > /var/lib/dbus/machine-id
grep -q "laptop-updates.brave.com" /etc/hosts || echo "0.0.0.0 laptop-updates.brave.com" >> /etc/hosts grep -q "laptop-updates.brave.com" /etc/hosts || echo "0.0.0.0 laptop-updates.brave.com" >> /etc/hosts
# If user chose i3, start i3 on startx by default. # If user chose i3, start i3 on startx by default.
[ "$edition" = "i3" ] && sed -i "s/^exec dwm/# exec dwm/;s/^#\s*exec i3/exec i3/;s/#\s*export STATUSBAR=\"\?i3blocks\"\?/export STATUSBAR=\"i3blocks\"/" "/home/$name/.xinitrc" [ "$edition" = "i3" ] && sed -i "s/^ssh-agent dwm/# ssh-agent dwm/;s/^#\s*ssh-agent i3/ssh-agent i3/;s/#\s*export STATUSBAR=\"\?i3blocks\"\?/export STATUSBAR=\"i3blocks\"/" "/home/$name/.xinitrc"
# Start/restart PulseAudio. # Start/restart PulseAudio.
killall pulseaudio; sudo -u "$name" pulseaudio --start killall pulseaudio; sudo -u "$name" pulseaudio --start