From cb80d84e7eae37992816ea22ffa83c8964cf9b81 Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Mon, 18 Nov 2024 13:21:42 +0700 Subject: [PATCH] hyprlock background change added and blur added --- hypr/bin/hyprlock-background.sh | 5 +++-- hypr/decoration.conf | 2 +- hypr/hyprlock.conf | 2 +- hypr/programs.conf | 2 +- 4 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hypr/bin/hyprlock-background.sh b/hypr/bin/hyprlock-background.sh index c5c0edb..770c151 100755 --- a/hypr/bin/hyprlock-background.sh +++ b/hypr/bin/hyprlock-background.sh @@ -1,4 +1,5 @@ #!/bin/sh -ls ~/Pictures/wallpaper/*.png | shuf -n 1 - +background=$(ls ~/Pictures/wallpaper/*.png | shuf -n 1) +sed -i "s|.*Pictures.*|\tpath = $background|" ../hyprlock.conf +hyprlock diff --git a/hypr/decoration.conf b/hypr/decoration.conf index f88825d..07f45f6 100644 --- a/hypr/decoration.conf +++ b/hypr/decoration.conf @@ -4,7 +4,7 @@ decoration { rounding = 10 dim_inactive = true blur { - enabled = false + enabled = true size = 10 passes = 1 diff --git a/hypr/hyprlock.conf b/hypr/hyprlock.conf index 92dacae..7b7b81a 100644 --- a/hypr/hyprlock.conf +++ b/hypr/hyprlock.conf @@ -5,7 +5,7 @@ background { monitor = - path = /home/tola/Pictures/wallpaper/dunes-sun.png # only *.png supported for now + path = /home/tola/Pictures/wallpaper/3d-tech.png color = rgba(25, 20, 20, 1.0) blur_passes = 4 # 0 disables blurring blur_size = 2 diff --git a/hypr/programs.conf b/hypr/programs.conf index 0f81585..d84cff1 100644 --- a/hypr/programs.conf +++ b/hypr/programs.conf @@ -3,7 +3,7 @@ $powermenu = ~/dotfiles/rofi/powermenu/powermenu.sh $terminal = kitty $fileManager = thunar $menu = ~/dotfiles/rofi/launcher/launcher.sh -$locker = hyprlock +$locker = ~/dotfiles/hypr/bin/hyprlock-background.sh $browser = google-chrome-stable $clipboard = ~/dotfiles/rofi/clipboard/clipboard.sh $emojipicker = ~/dotfiles/rofi/emoji/rofimoji.sh