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