aboutsummaryrefslogtreecommitdiff
path: root/scripts/set_background
blob: 3045637220c13db083095a5f11cb7b9fbb442374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/fish

if test (count $argv) -lt 1; or not test -f $argv[1]
  echo "Usage: $(status filename) <img>"
  exit 1
end

set -x SWWW_TRANSITION "simple"
set -x SWWW_TRANSITION_FPS 60
set -U img $argv[1]

niri msg action do-screen-transition
swww img $img
wallust run $img
makoctl reload
systemctl --user reload waybar.service
notify-send -i $img "Wallust" "Changed wallpaper and palette."