aboutsummaryrefslogtreecommitdiff
path: root/scripts/dot-local/bin/pywal
blob: ef494a0bf5517bb960d8927244f4d6e98f37f085 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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