boussole/.config/hypr/scripts/restore-waybar.sh
Guillem George 38a53acd48 first commit
2025-09-12 17:00:38 +02:00

11 lines
288 B
Bash
Executable file

#!/bin/sh
# Launch waybar depending on the last status
waybar_status=~/.config/hypr/status/waybar
if [ "$(cat $waybar_status)" == "on" ]; then
killall waybar
waybar &
elif [ "$(cat $waybar_status)" != "off" ]; then
hyprctl notify 0 3000 0 Failed to retrieve waybar status
fi