aboutsummaryrefslogtreecommitdiff
path: root/scripts/dot-local/bin/pywal
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dot-local/bin/pywal')
-rwxr-xr-xscripts/dot-local/bin/pywal17
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/dot-local/bin/pywal b/scripts/dot-local/bin/pywal
new file mode 100755
index 0000000..ef494a0
--- /dev/null
+++ b/scripts/dot-local/bin/pywal
@@ -0,0 +1,17 @@
+#!/bin/sh
+
+wal_args=
+if [ "$1" = -i ]; then
+ shift
+ wal_args="-i $@"
+elif [ "$1" = -l ]; then
+ shift
+ theme=$(ls /usr/lib/python3.14/site-packages/pywal/colorschemes/dark | sed 's/\.json$//' | fzf)
+ wal_args="--theme $theme $@"
+elif [ -z "$1" ]; then
+ wal_args="--theme random_dark"
+else
+ wal_args="--theme $@"
+fi
+
+wal $wal_args --cols16 -o ~/.config/wal/scripts/niri-colors.sh && touch -m ~/.config/ironbar/style.css