1
0
Dotfiles/.config/waybar/refresh.sh
2025-01-16 01:46:09 -05:00

14 lines
256 B
Bash
Executable File

#!/bin/bash
# Check if waybar is running
if pgrep -x "waybar" > /dev/null; then
# If running, kill the waybar process
pkill -x "waybar"
echo "Waybar stopped."
else
# If not running, start waybar
waybar &
echo "Waybar started."
fi