hypr(autostart, decorations): use hyprsunset service, better blur

This commit is contained in:
retrozinndev
2025-04-13 00:15:56 -03:00
parent 7be8ac7ab4
commit 6aab9b0dde
4 changed files with 11 additions and 41 deletions
-14
View File
@@ -1,14 +0,0 @@
#!/usr/bin/env bash
# This script checks if night light was enabled last
# boot, and runs hyprsunset if that's the case.
# ---------
# Licensed under the MIT License
# Made by retrozinndev (João Dias)
# From https://github.com/retrozinndev/Hyprland-Dots
if [[ -f "$XDG_CACHE_HOME/night-light.pid" ]]; then
rm "$XDG_CACHE_HOME/night-light.pid"
sh $XDG_CONFIG_HOME/hypr/scripts/night-light.sh
fi
-17
View File
@@ -1,17 +0,0 @@
#!/usr/bin/env bash
set -e
pidfile="$HOME/.cache/night-light.pid"
temperature=4500 # in K
# run only if pid file does not exist
if ! [[ -f $pidfile ]]; then
touch $pidfile
hyprsunset -t $temperature &
_pid=$!
echo -e $_pid > $pidfile
wait $_pid && rm -f $pidfile
else
echo "There's already an instance running! Mistake? Delete \"~/.cache/night-light.pid\"."
exit 1
fi