tileos-settings-sway/usr/share/sway/scripts/waybar.sh
Sunderland93 6b0a66e6be Swtich back from running apps with systemd
systemd integration for Sway is cool, but introduces a lot of
unexpected problems, such as race conditions. So switch back to classic
config-based systemd for autostarting services until all major problems
with systemd integration (sway-systemd) will resolved
2023-06-09 18:02:22 +04:00

15 lines
468 B
Bash
Executable file

#!/bin/sh
# wrapper script for waybar with args, see https://github.com/swaywm/sway/issues/5724
USER_CONFIG_PATH=$HOME/.config/waybar/config.jsonc
USER_STYLE_PATH=$HOME/.config/waybar/style.css
if [ -f "$USER_CONFIG_PATH" ]; then
USER_CONFIG=$USER_CONFIG_PATH
fi
if [ -f "$USER_STYLE_PATH" ]; then
USER_STYLE=$USER_STYLE_PATH
fi
waybar -c "${USER_CONFIG:-"/etc/xdg/xdg-tileos/waybar/config.jsonc"}" -s "${USER_STYLE:-"/etc/xdg/xdg-tileos/waybar/style.css"}" &