hyprconfig

This commit is contained in:
2026-01-19 19:14:04 +01:00
parent f43845bceb
commit bad27e9514
67 changed files with 2189 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/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
@@ -0,0 +1,14 @@
#!/bin/sh
START=20
END=11
CURRENT=$(date +%H)
HYPRPRO=$(pgrep -x hyprsunset)
if { [[ $CURRENT -lt $START ]] || [[ $CURRENT -ge $END ]] }; then
pkill hyprsunset
else
if { [[ $CURRENT -ge $START ]] || [[ $CURRENT -lt $END ]] }; then
systemctl --user start newhyprsunset.service
fi
fi
+17
View File
@@ -0,0 +1,17 @@
#!/bin/zsh
APP="hyprsunset"
START=14
END=09
CURRENT=$(date +%H)
if { [[ $CURRENT -lt $START ]] && [[ $CURRENT -ge $END ]] }; then
pkill -x "$APP"
exit 0
else
if { [[ $CURRENT -ge $START ]] || [[ $CURRENT -lt $END ]] }; then
XDG_RUNTIME_DIR="/run/user/1000" WAYLAND_DISPLAY="wayland-1" hyprsunset -t 2600 &
fi
fi