aboutsummaryrefslogtreecommitdiffstats
path: root/polybar
diff options
context:
space:
mode:
Diffstat (limited to 'polybar')
-rwxr-xr-xpolybar/.config/herbstluftwm/autostart.d/polybar.sh2
-rw-r--r--polybar/.config/systemd/user/polybar.service8
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