From e958146735f214509d3996a21a1adfb950e415b8 Mon Sep 17 00:00:00 2001 From: "eric.marin" Date: Sun, 8 Jun 2025 15:35:14 +0200 Subject: swaylock and swayidle --- scripts/set_background | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'scripts/set_background') diff --git a/scripts/set_background b/scripts/set_background index f9465ce..161a272 100755 --- a/scripts/set_background +++ b/scripts/set_background @@ -7,13 +7,15 @@ end set -x SWWW_TRANSITION "any" set -x SWWW_TRANSITION_FPS 60 -set -x SWWW_TRANSITION_DURATION 2 -set -U img $argv[1] +set -x SWWW_TRANSITION_DURATION 1.5 -wallust run $img; and begin - niri msg action do-screen-transition - swww img $img +niri msg action do-screen-transition +wallust run $argv[1]; and begin + set -U img $argv[1] + swww img $argv[1] makoctl reload - notify-send -i $img "Wallust" "Changed wallpaper and palette." + notify-send -i $argv[1] "Wallust" "Changed wallpaper and palette." +end; or begin + notify-send -u critical "Wallust" "Failed to change palette" end; -- cgit v1.2.3