nixos/frame12/dotfiles/waybar/scripts/wlsunset-status.sh

8 lines
242 B
Bash
Executable File

#!/usr/bin/env bash
# Check if wlsunset service is active and return appropriate icon
if systemctl --user is-active --quiet wlsunset; then
echo "󰖜" # Moon/sunset icon (night mode active)
else
echo "󰖚" # Sun icon (day mode)
fi