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
+4 -3
View File
@@ -6,9 +6,9 @@
# Wiki: https://wiki.hyprland.org/Configuring/Keywords/#executing
# Services/Daemons
# exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = systemctl enable --user --now hyprpolkitagent
# Daemons
# exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 # GNOME PolKit
exec-once = systemctl enable --user --now hyprpolkitagent # Hyprland's PolKit
exec-once = systemctl enable --user --now hypridle
exec-once = systemctl enable --user --now gnome-keyring-daemon
exec-once = wl-paste --type text --watch cliphist store
@@ -16,6 +16,7 @@ exec-once = wl-paste --type image --watch cliphist store
# Tools
exec-once = systemctl enable --user --now hyprpaper
exec-once = systemctl enable --user --now hyprsunset
# Scripts
exec-once = sh $HOME/.config/hypr/scripts/gen-pywal.sh
+7 -7
View File
@@ -25,16 +25,16 @@ general {
layout = dwindle
}
#render {
# ctm_animation = 1
#}
render {
ctm_animation = 1
}
misc {
animate_manual_resizes = true
}
decoration {
rounding = 14
rounding = 16
# Active Window Opacity
active_opacity = 1.0
@@ -43,8 +43,8 @@ decoration {
shadow {
enabled = true
range = 1
render_power = 2
range = 4
render_power = 4
color = $background
}
@@ -56,7 +56,7 @@ decoration {
passes = 5
vibrancy = 0.9
popups = true
popups_ignorealpha = 0.5
popups_ignorealpha = 0.6
}
}
-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