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