diff options
author | 2021-11-02 22:01:31 -0700 | |
---|---|---|
committer | 2021-11-02 22:06:32 -0700 | |
commit | 9b662e26095a237357f6294cf96d634bc99dcaa8 (patch) | |
tree | 291073bf905d2e0f66f7fac6ee391180743425e7 /polybar | |
parent | 72d40a093640b4ef0122c331989258e13fb94c7e (diff) | |
download | new-dotfiles-9b662e26095a237357f6294cf96d634bc99dcaa8.tar.gz new-dotfiles-9b662e26095a237357f6294cf96d634bc99dcaa8.zip |
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.
Diffstat (limited to 'polybar')
-rwxr-xr-x | polybar/.config/herbstluftwm/autostart.d/polybar.sh | 2 | ||||
-rw-r--r-- | polybar/.config/systemd/user/polybar.service | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/polybar/.config/herbstluftwm/autostart.d/polybar.sh b/polybar/.config/herbstluftwm/autostart.d/polybar.sh deleted file mode 100755 index 3dd29ab..0000000 --- a/polybar/.config/herbstluftwm/autostart.d/polybar.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env bash -pgrep polybar || { autohide-polybar.sh && polybar "$(hostname)" 2> /dev/null & } diff --git a/polybar/.config/systemd/user/polybar.service b/polybar/.config/systemd/user/polybar.service new file mode 100644 index 0000000..3e29f3f --- /dev/null +++ b/polybar/.config/systemd/user/polybar.service @@ -0,0 +1,8 @@ +[Unit] +Description=Polybar + +[Service] +ExecStart=polybar %H + +[Install] +WantedBy=wm.target |