Update
This commit is contained in:
17
local/share/sway/scripts/waybar.sh
Executable file
17
local/share/sway/scripts/waybar.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
# 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
|
||||
|
||||
pkill -U $USER -x waybar
|
||||
|
||||
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}" -s "${USER_STYLE}" > $(mktemp -t XXXX.waybar.log)
|
||||
Reference in New Issue
Block a user