config_sway/bin/start_waybar.sh
Konstantin Koslowski 711c9a31f9 waybar: update configs
- waybar: rename to start_waybar.sh
- waybar_card: minor formatting in tooltip
- waybar_mediaplayer: add icons to tooltip
2021-05-14 12:05:29 +02:00

16 lines
345 B
Bash
Executable file

#!/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