waybar: move to systemd service, update clock

This commit is contained in:
Konstantin Koslowski 2024-01-22 07:51:29 +01:00
parent 650b741777
commit 2e9119018c
5 changed files with 44 additions and 24 deletions

View file

@ -1,16 +0,0 @@
#!/usr/bin/env sh
CONFIG_DIR=$HOME/.config/sway/waybar.d
CONFIG=$CONFIG_DIR/config
CONFIG_HOST=$CONFIG_DIR/config_$(hostname)
if [ -f $CONFIG_HOST ]; then
CONFIG=$CONFIG_HOST
fi
STYLE=$CONFIG_DIR/style.css
# Terminate already running bar instances
# pkill -SIGUSR2 -x waybar
pkill -x waybar
# execute new instance
waybar -c $CONFIG -s $STYLE