summaryrefslogtreecommitdiff
path: root/init.d/waybar
diff options
context:
space:
mode:
authorBlake Romero <blake@developercraft.com>2025-10-26 21:23:30 +0000
committerBlake Romero <blake@developercraft.com>2025-10-26 21:23:30 +0000
commit8ffad252bd303e3ba8b6baa986da1829ce62b6d5 (patch)
treee4e118e2429da487b4eb774054aa8c1e19004918 /init.d/waybar
parenta17ddc0696c0cc5118cd245e89792905d9d493d3 (diff)
Add waybar user service
Diffstat (limited to 'init.d/waybar')
-rwxr-xr-xinit.d/waybar12
1 files changed, 12 insertions, 0 deletions
diff --git a/init.d/waybar b/init.d/waybar
new file mode 100755
index 0000000..cf3c192
--- /dev/null
+++ b/init.d/waybar
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+
+description="Highly customizable Waybar bar for Sway and Wlroots base compositors"
+command="waybar"
+command_args=""
+
+supervisor=supervise-daemon
+error_logger="logger -t '${RC_SVCNAME}' -p daemon.error"
+
+#export SWAYSOCK="$(sway --get-socketpath)"
+export SWAYSOCK="$(ls $XDG_RUNTIME_DIR/sway-ipc.* | head -n 1)"
+