hypr: made hyprlock use current background instead of screenshot
This commit is contained in:
parent
d2ca6c3334
commit
c26f0c1b91
3 changed files with 11 additions and 2 deletions
|
|
@ -165,7 +165,7 @@ bind = $mainMod, D, exec, walker
|
||||||
bind = $mainMod, S, exec, hyprshot -z --clipboard-only -m region
|
bind = $mainMod, S, exec, hyprshot -z --clipboard-only -m region
|
||||||
bind = $mainMod shift, S, exec, hyprshot -z --clipboard-only -m window
|
bind = $mainMod shift, S, exec, hyprshot -z --clipboard-only -m window
|
||||||
bind = $mainMod control, S, exec, hyprshot -z --clipboard-only -m active
|
bind = $mainMod control, S, exec, hyprshot -z --clipboard-only -m active
|
||||||
bind = $mainMod, V, exec, hyprlock
|
bind = $mainMod, V, exec, sh ~/.config/hypr/hyprlock.sh
|
||||||
|
|
||||||
bind = $mainMod, SPACE, togglefloating,
|
bind = $mainMod, SPACE, togglefloating,
|
||||||
bind = $mainMod, W, killactive,
|
bind = $mainMod, W, killactive,
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ general {
|
||||||
}
|
}
|
||||||
|
|
||||||
background {
|
background {
|
||||||
path = screenshot
|
path = /tmp/hyprlock-background
|
||||||
blur_passes = 3
|
blur_passes = 3
|
||||||
blur_size 15
|
blur_size 15
|
||||||
noise = 0.01
|
noise = 0.01
|
||||||
|
|
|
||||||
9
stow/.config/hypr/hyprlock.sh
Executable file
9
stow/.config/hypr/hyprlock.sh
Executable file
|
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# gets the last part of the 'swww query' command
|
||||||
|
# should work as long as image path does not have spaces
|
||||||
|
IMAGE="$(swww query | rev | cut -f1 -d' ' | rev)"
|
||||||
|
|
||||||
|
cp "$IMAGE" /tmp/hyprlock-background
|
||||||
|
|
||||||
|
hyprlock
|
||||||
Loading…
Add table
Add a link
Reference in a new issue