hyprmoonarch/usr/local/bin/hyprshade-waybar

20 lines
315 B
Bash
Executable File

#!/usr/bin/env bash
while :
do
tooltip=$(hyprshade current)
if [[ -z "$tooltip" ]]; then
tooltip="Off"
fi
text="󰈈"
if [[ -z "$tooltip" ]]; then
text="󰡮"
fi
echo '{"text": "'$text'", "tooltip": "Current shader: '$tooltip'", "class": "hyprshade", "alt": "'$tooltip'"}'
sleep 1
done