use same image for wallpaper and lockscreen

This commit is contained in:
Adithya 2024-01-04 21:51:25 +05:30
parent d12997d2b6
commit 1ecd202a81
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
3 changed files with 3 additions and 4 deletions

View file

@ -10,13 +10,13 @@ in
events = [
{
event = "before-sleep";
command = "${swaylock} -f -i /tmp/lockpaper.jpg";
command = "${swaylock} -f -i /tmp/wallpaper.jpg";
}
];
timeouts = [
{
timeout = 600;
command = "${swaylock} -f -i /tmp/lockpaper.jpg";
command = "${swaylock} -f -i /tmp/wallpaper.jpg";
}
{
timeout = 900;

View file

@ -182,7 +182,7 @@ in
"SUPER_SHIFT,b, exec, ${pkgs.rofi-bluetooth}/bin/rofi-bluetooth"
"SUPER_SHIFT,s, exec, ${kitty} ${spotify-player}"
"SUPER,escape, exec, ${swaylock} -f -i /tmp/lockpaper.jpg"
"SUPER,escape, exec, ${swaylock} -f -i /tmp/wallpaper.jpg"
"SUPER_SHIFT,W, exec, ${change-wallpaper}"
"SUPER_ALT,W, exec, ${wallhaven-wallpaper}"

View file

@ -18,6 +18,5 @@ random_paper() {
swww query || swww init
convert "$(random_paper)" /tmp/wallpaper.jpg && swww img --transition-step 2 --transition-type random --transition-duration 1 "/tmp/wallpaper.jpg"
convert "$(random_paper)" /tmp/lockpaper.jpg
notify-send -r 1234 -i information -t 5000 "Wallpaper" "Wallpaper changed."