create wal script

This commit is contained in:
2025-10-05 13:35:47 +02:00
parent 28f93cb796
commit e2dad293c7
2 changed files with 21 additions and 1 deletions

20
config/niri/wal.sh Executable file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
if [[ $(pidof swaybg) ]]; then
pkill swaybg
fi
#wal -q -n --iterative -i ~/Pictures/niribg
wal -q -n -i /usr/share/endeavouros/backgrounds/ -i /usr/share/endeavouros/backgrounds/eos_wallpapers_classic/ -i /usr/share/endeavouros/backgrounds/eos_wallpapers_community/
notify-send -i "$(<"${HOME}/.cache/wal/wal")" "Theme Changed"
if [[ $(pidof waybar) ]]; then
killall -SIGUSR2 waybar
fi
swaybg -m fill -i "$(<"${HOME}/.cache/wal/wal")" &
#/home/void/.config/mako/update-theme.sh
niri msg action do-screen-transition --delay-ms 300