Files
Z-Dot/.config/hypr/scripts/old/hyprsunset/hyprsunset-v2.sh
T
2026-01-19 19:14:04 +01:00

14 lines
306 B
Bash
Executable File

#!/bin/sh
START=21
END=10
CURRENT=$(date +%H)
if { [[ $CURRENT -lt $START ]] && [[ $CURRENT -ge $END ]] }; then
systemctl --user start stophyprsunset.service
else
if { [[ $CURRENT -ge $START ]] || [[ $CURRENT -lt $END ]] }; then
systemctl --user start starthyprsunset.service
fi
fi