From 9b662e26095a237357f6294cf96d634bc99dcaa8 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Tue, 2 Nov 2021 22:01:31 -0700 Subject: Add systemd services for some background tasks Add a ‘wm.target’ file that services can hook into and that Herbstluftwm starts at the end of its startup script. This way different services can be sure that the window manager itself has started up, and can be dependent on one another. Hopefully this makes managing these background processes easier. --- herbstluftwm/.config/herbstluftwm/autostart | 2 ++ herbstluftwm/.config/systemd/user/wm.target | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 herbstluftwm/.config/systemd/user/wm.target (limited to 'herbstluftwm') diff --git a/herbstluftwm/.config/herbstluftwm/autostart b/herbstluftwm/.config/herbstluftwm/autostart index b1b00c3..bf011cd 100755 --- a/herbstluftwm/.config/herbstluftwm/autostart +++ b/herbstluftwm/.config/herbstluftwm/autostart @@ -253,3 +253,5 @@ if [ -d "${HOME}/.config/herbstluftwm/autostart.d" ]; then done unset f fi + +systemctl --user start wm.target diff --git a/herbstluftwm/.config/systemd/user/wm.target b/herbstluftwm/.config/systemd/user/wm.target new file mode 100644 index 0000000..5665e68 --- /dev/null +++ b/herbstluftwm/.config/systemd/user/wm.target @@ -0,0 +1,3 @@ +[Unit] +Description=Window Manager +Wants=dunst.service -- cgit v1.2.3-54-g00ecf