Update dotfiles (2026-05-08 15:35:43)

This commit is contained in:
2026-05-08 15:35:43 +02:00
parent 362e7e51a5
commit afd1b5bd53
77 changed files with 127 additions and 347 deletions
@@ -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