aboutsummaryrefslogtreecommitdiff
path: root/scripts/set_background
diff options
context:
space:
mode:
authoreric.marin <maarin.eric@gmail.com>2025-06-08 15:35:14 +0200
committereric.marin <maarin.eric@gmail.com>2025-09-07 21:27:34 +0200
commite958146735f214509d3996a21a1adfb950e415b8 (patch)
tree75b6317af09b8563ddde3d9b4c6af304622a6a48 /scripts/set_background
parent8f8d9c06935758e218bbc88faaef6d2d2bd60df1 (diff)
downloaddotfiles-e958146735f214509d3996a21a1adfb950e415b8.tar.gz
dotfiles-e958146735f214509d3996a21a1adfb950e415b8.zip
swaylock and swayidle
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;