From 1ecd202a813248f2323293c0c116819643df5cff Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 4 Jan 2024 21:51:25 +0530 Subject: [PATCH] use same image for wallpaper and lockscreen --- home/wm/addon/swayidle.nix | 4 ++-- home/wm/hyprland/default.nix | 2 +- packages/scripts/chpaper.sh | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/home/wm/addon/swayidle.nix b/home/wm/addon/swayidle.nix index efdab1a..29840a9 100644 --- a/home/wm/addon/swayidle.nix +++ b/home/wm/addon/swayidle.nix @@ -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; diff --git a/home/wm/hyprland/default.nix b/home/wm/hyprland/default.nix index cd18ebe..f216a54 100644 --- a/home/wm/hyprland/default.nix +++ b/home/wm/hyprland/default.nix @@ -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}" diff --git a/packages/scripts/chpaper.sh b/packages/scripts/chpaper.sh index e15008e..dd73e74 100755 --- a/packages/scripts/chpaper.sh +++ b/packages/scripts/chpaper.sh @@ -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."