sway: replace swaybar/i3status-rs with waybar
This commit is contained in:
parent
839093a3de
commit
674825df0f
15 changed files with 783 additions and 345 deletions
13
bin/waybar
Executable file
13
bin/waybar
Executable file
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
CONFIG_DIR=$HOME/.config/sway/waybar.d
|
||||
CONFIG=$CONFIG_DIR/$(hostname).conf
|
||||
STYLE=$CONFIG_DIR/style.css
|
||||
|
||||
# Terminate already running bar instances
|
||||
pkill -SIGUSR2 -x waybar
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
waybar -c $CONFIG -s $STYLE
|
||||
fi
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue