This commit is contained in:
Stephan Raabe 2024-03-14 17:18:48 +01:00
parent 3fcda93405
commit 93476ecd9d
5 changed files with 19 additions and 4 deletions

View File

@ -21,9 +21,12 @@ _showRestoreOptions() {
fi
if [[ $profile == *"Hyprland"* ]]; then
if [ -f ~/dotfiles/hypr/hypridle.conf ]; then
if grep -Fxq "# Version 2.8.3" ~/dotfiles/hypr/hypridle.conf
then
restorelist+="~/dotfiles/hypr/hypridle.conf "
selectedlist+="~/dotfiles/hypr/hypridle.conf,"
fi
fi
if [ -f ~/dotfiles/hypr/conf/custom.conf ]; then
restorelist+="~/dotfiles/hypr/conf/custom.conf "
selectedlist+="~/dotfiles/hypr/conf/custom.conf,"

1
.settings/blur.sh Normal file
View File

@ -0,0 +1 @@
50x30

View File

@ -5,6 +5,7 @@
# |_| |_|\__, | .__/|_| |_|\__,_|_|\___|
# |___/|_|
#
# Version 2.8.3
general {
ignore_dbus_inhibit = false
@ -12,20 +13,26 @@ general {
# Screenlock
listener {
# HYPRLOCK TIMEOUT
timeout = 600
# HYPRLOCK ONTIMEOUT
on-timeout = hyprlock
# on-resume = notify-send "Welcome back to your desktop!"
}
# dpms
listener {
# DPMS TIMEOUT
timeout = 660
# DPMS ONTIMEOUT
on-timeout = hyprctl dispatch dpms off
# DPMS ONRESUME
on-resume = hyprctl dispatch dpms on
}
# Suspend
listener {
# SUSPEND TIMEOUT
timeout = 1800
#SUSPEND ONTIMEOUT
on-timeout = systemctl suspend
}

View File

@ -13,6 +13,10 @@
cache_file="$HOME/.cache/current_wallpaper"
blurred="$HOME/.cache/blurred_wallpaper.png"
rasi_file="$HOME/.cache/current_wallpaper.rasi"
blur_file="$HOME/dotfiles/.settings/blur.sh"
blur="50x30"
blur=$(cat $blur_file)
# Create cache file if not exists
if [ ! -f $cache_file ] ;then
@ -95,7 +99,7 @@ swww img $wallpaper \
# -----------------------------------------------------
magick $wallpaper -resize 50% $blurred
echo ":: Resized to 50%"
magick $blurred -blur 50x30 $blurred
magick $blurred -blur $blur $blurred
echo ":: Blurred"
# -----------------------------------------------------