aboutsummaryrefslogtreecommitdiff
path: root/scripts/set_background
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xscripts/set_background14
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;