Commit 364e8800 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Remove all GUI service launching to ~/.xsessionrc

All graphical services (ie. Guake, Nitrogen, Light-Locker) are launched
from ~/.xsessionrc instead of with systemd services or from the WM
directly.

Systemd user service sessions are singular for each user but a user can
start multiple (graphical) login sessions so strictly graphical
services (ones which have a visible effect on the display) need to be
launched multiply, once for each graphical session.

~/.xsessionrc is a better, generic way of launching display services on
startup.
parent eb2bc035
Loading
Loading
Loading
Loading
+0 −10
Original line number Diff line number Diff line
@@ -133,23 +133,13 @@ awful.spawn.with_line_callback({
	}, {
		exit = function (reason, code)
			if reason == 'exit' and code == 0 then
				awful.spawn{'systemctl', '--user', 'start', 'window-manager.target'}
				return
			end
			if util.path.has_executable('light-locker') then
				awful.spawn{'light-locker'}
			end
			if util.path.has_executable('nitrogen') then
				awful.spawn{'nitrogen', '--restore'}
			end
			if util.path.has_executable('start-pulseaudio-x11') then
				awful.spawn{'start-pulseaudio-x11'}
			elseif util.path.has_executable('pulseaudio') then
				awful.spawn{'pulseaudio'}
			end
			if util.path.has_executable('guake') then
				awful.spawn{'guake'}
			end
		end
	})

+0 −12
Original line number Diff line number Diff line
[Unit]
Description=dropdown terminal
Documentation=man:guake(1)

[Service]
#Environment=DISPLAY
#Environment=XAUTHORITY
#Environment=DBUS_SESSION_BUS_ADDRESS
ExecStart=/usr/bin/guake

[Install]
WantedBy=window-manager.target
+0 −9
Original line number Diff line number Diff line
[Unit]
Description=light locker server
Documentation=man:light-locker(1)

[Service]
ExecStart=/usr/bin/light-locker

[Install]
WantedBy=default.target
+0 −10
Original line number Diff line number Diff line
[Unit]
Description=background image setter
Documentation=man:nitrogen(1)

[Service]
Type=oneshot
ExecStart=/usr/bin/nitrogen --set-zoom-fill --random

[Install]
WantedBy=window-manager.target
+0 −9
Original line number Diff line number Diff line
[Unit]
Description=periodically changing wallpapers

[Timer]
OnUnitActiveSec=600
RandomizedDelaySec=600

[Install]
WantedBy=window-manager.target
Loading