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,8 +21,11 @@ _showRestoreOptions() {
fi fi
if [[ $profile == *"Hyprland"* ]]; then if [[ $profile == *"Hyprland"* ]]; then
if [ -f ~/dotfiles/hypr/hypridle.conf ]; then if [ -f ~/dotfiles/hypr/hypridle.conf ]; then
restorelist+="~/dotfiles/hypr/hypridle.conf " if grep -Fxq "# Version 2.8.3" ~/dotfiles/hypr/hypridle.conf
selectedlist+="~/dotfiles/hypr/hypridle.conf," then
restorelist+="~/dotfiles/hypr/hypridle.conf "
selectedlist+="~/dotfiles/hypr/hypridle.conf,"
fi
fi fi
if [ -f ~/dotfiles/hypr/conf/custom.conf ]; then if [ -f ~/dotfiles/hypr/conf/custom.conf ]; then
restorelist+="~/dotfiles/hypr/conf/custom.conf " restorelist+="~/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 { general {
ignore_dbus_inhibit = false ignore_dbus_inhibit = false
@ -12,20 +13,26 @@ general {
# Screenlock # Screenlock
listener { listener {
# HYPRLOCK TIMEOUT
timeout = 600 timeout = 600
# HYPRLOCK ONTIMEOUT
on-timeout = hyprlock on-timeout = hyprlock
# on-resume = notify-send "Welcome back to your desktop!"
} }
# dpms # dpms
listener { listener {
# DPMS TIMEOUT
timeout = 660 timeout = 660
# DPMS ONTIMEOUT
on-timeout = hyprctl dispatch dpms off on-timeout = hyprctl dispatch dpms off
# DPMS ONRESUME
on-resume = hyprctl dispatch dpms on on-resume = hyprctl dispatch dpms on
} }
# Suspend # Suspend
listener { listener {
# SUSPEND TIMEOUT
timeout = 1800 timeout = 1800
#SUSPEND ONTIMEOUT
on-timeout = systemctl suspend on-timeout = systemctl suspend
} }

View File

@ -13,6 +13,10 @@
cache_file="$HOME/.cache/current_wallpaper" cache_file="$HOME/.cache/current_wallpaper"
blurred="$HOME/.cache/blurred_wallpaper.png" blurred="$HOME/.cache/blurred_wallpaper.png"
rasi_file="$HOME/.cache/current_wallpaper.rasi" 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 # Create cache file if not exists
if [ ! -f $cache_file ] ;then if [ ! -f $cache_file ] ;then
@ -95,7 +99,7 @@ swww img $wallpaper \
# ----------------------------------------------------- # -----------------------------------------------------
magick $wallpaper -resize 50% $blurred magick $wallpaper -resize 50% $blurred
echo ":: Resized to 50%" echo ":: Resized to 50%"
magick $blurred -blur 50x30 $blurred magick $blurred -blur $blur $blurred
echo ":: Blurred" echo ":: Blurred"
# ----------------------------------------------------- # -----------------------------------------------------