diff options
| author | mirenn <me@mirenn.dev> | 2025-06-08 15:35:14 +0200 |
|---|---|---|
| committer | mirenn <me@mirenn.dev> | 2025-09-07 21:27:34 +0200 |
| commit | 7ce58acf7a9fb19567333366a27009ff35e6d2a8 (patch) | |
| tree | 75b6317af09b8563ddde3d9b4c6af304622a6a48 /scripts/set_background | |
| parent | d7d17802f793b57a290285ca67892f9ba929825b (diff) | |
| download | dotfiles-7ce58acf7a9fb19567333366a27009ff35e6d2a8.tar.gz dotfiles-7ce58acf7a9fb19567333366a27009ff35e6d2a8.zip | |
swaylock and swayidle
Diffstat (limited to 'scripts/set_background')
| -rwxr-xr-x | scripts/set_background | 14 |
1 files changed, 8 insertions, 6 deletions
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; |
