summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)"
+