aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2024-04-21 20:54:07 +0200
committerKarel Kočí <cynerd@email.cz>2024-04-21 20:54:07 +0200
commit832a5732513a69501ab6067a8aca642b939748b3 (patch)
tree29c920468980f9db2be23f6469965535c028bf88
parenta8bf6cf85bb4f1a7d6ff2ed92cfb69c44ee489b3 (diff)
downloadmyconfigs-832a5732513a69501ab6067a8aca642b939748b3.tar.gz
myconfigs-832a5732513a69501ab6067a8aca642b939748b3.tar.bz2
myconfigs-832a5732513a69501ab6067a8aca642b939748b3.zip
Add systemd service for waybar
-rw-r--r--config/systemd/user/waybar.service8
-rwxr-xr-xinstall1
2 files changed, 9 insertions, 0 deletions
diff --git a/config/systemd/user/waybar.service b/config/systemd/user/waybar.service
new file mode 100644
index 0000000..110ab83
--- /dev/null
+++ b/config/systemd/user/waybar.service
@@ -0,0 +1,8 @@
+[Unit]
+Description=Waybar
+
+[Service]
+ExecStart="/run/current-system/sw/bin/waybar"
+
+[Install]
+WantedBy="graphical-session.target"
diff --git a/install b/install
index c454b0b..209081c 100755
--- a/install
+++ b/install
@@ -122,6 +122,7 @@ if ask "desktop" "Install desktop"; then
inst config/swaylock/ ~/.config/swaylock
inst config/swayidle/ ~/.config/swayidle
inst config/wofi/ ~/.config/wofi
+ inst config/systemd/user/waybar.service ~/.config/systemd/user/waybar.service
[ -f "private/kanshi/$(hostname)" ] &&
inst "private/kanshi/$(hostname)" ~/.config/kanshi/config
inst config/xdg-desktop-portal-wlr/ ~/.config/xdg-desktop-portal-wlr