aboutsummaryrefslogtreecommitdiff
path: root/scripts/set_background
diff options
context:
space:
mode:
authorericmarin <maarin.eric@gmail.com>2026-03-30 17:32:31 +0200
committerericmarin <maarin.eric@gmail.com>2026-03-31 11:24:04 +0200
commita15c537f608db166f734d3a7e8d3c68bf17f55d7 (patch)
tree2626f5550035e44d79646da6be8f6810050463c7 /scripts/set_background
parent2781082f1085757a0cfb929ba37de968726ec751 (diff)
downloaddotfiles-a15c537f608db166f734d3a7e8d3c68bf17f55d7.tar.gz
dotfiles-a15c537f608db166f734d3a7e8d3c68bf17f55d7.zip
changes
Diffstat (limited to '')
-rwxr-xr-xscripts/set_background11
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/set_background b/scripts/set_background
index be75486..b9c8b80 100755
--- a/scripts/set_background
+++ b/scripts/set_background
@@ -5,12 +5,11 @@ if test (count $argv) -lt 1; or not test -f $argv[1]
end
wallust run $argv[1] -Ts; and begin
- set -U IMG $argv[1]
- echo "IMG=$IMG" > ~/.config/scripts/IMG.env
- niri msg action do-screen-transition
- wallust -q run $IMG
- systemctl --user restart swaybg.service
- makoctl reload
+ niri msg action do-screen-transition
+ set -U IMG $argv[1] &
+ wallust -q run $IMG &
+ killall swaybg ; swaybg -i $IMG &
+ makoctl reload &
notify-send -i $IMG "Wallust" "Changed wallpaper and palette."
end; or begin
notify-send -i $argv[1] -u critical "Wallust" "Failed to change palette"