Hyprland-dotfiles/hypr/scripts/hyprshade.sh
Stephan Raabe 27646d04c5 Updates
2024-05-15 17:42:32 +02:00

22 lines
624 B
Bash
Executable File

#!/bin/bash
hyprshade_filter="blue-light-filter"
if [ -f ~/dotfiles/.settings/hyprshade.sh ] ;then
source ~/dotfiles/.settings/hyprshade.sh
fi
if [ "$hyprshade_filter" != "off" ] ;then
if [ -z $(hyprshade current) ] ;then
echo ":: hyprshade is not running"
hyprshade on $hyprshade_filter
echo ":: hyprshade started with $(hyprshade current)"
else
echo ":: Current hyprshade $(hyprshade current)"
echo ":: Switching hyprshade off"
hyprshade off
fi
else
if [ -z $(hyprshade current) ] ;then
hyprshade off
fi
echo ":: hyprshade turned off"
fi