aboutsummaryrefslogtreecommitdiff
path: root/scripts/set_background
diff options
context:
space:
mode:
authormirenn <me@mirenn.dev>2024-12-26 14:33:06 +0100
committermirenn <me@mirenn.dev>2024-12-30 21:07:42 +0100
commit1875562dce9510a5df3ca26b64851c17c5f8d2ec (patch)
tree0460bc0600492324f111524dfdff1ef85c9fbf8e /scripts/set_background
parent4128e6db5c3d16e399e1bee5185231ac463032bc (diff)
downloaddotfiles-1875562dce9510a5df3ca26b64851c17c5f8d2ec.tar.gz
dotfiles-1875562dce9510a5df3ca26b64851c17c5f8d2ec.zip
wallust
Diffstat (limited to 'scripts/set_background')
-rwxr-xr-xscripts/set_background16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/set_background b/scripts/set_background
new file mode 100755
index 0000000..41522a0
--- /dev/null
+++ b/scripts/set_background
@@ -0,0 +1,16 @@
+#!/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 "wipe"
+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
+