From 8f9c77878f8742a47d34a50748023d1b552cfbf1 Mon Sep 17 00:00:00 2001 From: mirenn Date: Mon, 21 Sep 2026 23:09:33 +0200 Subject: guix primer --- .../home/files/dotfiles/.config/scripts/set_background | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 mirenn/home/files/dotfiles/.config/scripts/set_background (limited to 'mirenn/home/files/dotfiles/.config/scripts/set_background') diff --git a/mirenn/home/files/dotfiles/.config/scripts/set_background b/mirenn/home/files/dotfiles/.config/scripts/set_background new file mode 100755 index 0000000..7fea3d9 --- /dev/null +++ b/mirenn/home/files/dotfiles/.config/scripts/set_background @@ -0,0 +1,18 @@ +#!/usr/bin/env fish + +if test (count $argv) -lt 1; or not test -f $argv[1] + echo "Usage: $(status filename) " + exit 1 +end + +wallust run $argv[1] -Ts; and begin + niri msg action do-screen-transition + set -U IMG $argv[1] & + wallust -q run $IMG & + killall swaybg ; swaybg -i $IMG -m fill & + 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" +end; + -- cgit v1.2.3