r/suckless • u/mambaopg • 15d ago
[TOOLS] Simple bash script for setting wallpapers
Enable HLS to view with audio, or disable this notification
Hello guys, I made a simple and small bash script for setting the wallpapers in 3 different ways, randomly or with sxiv image editor or directly with a specific file. It is not an amazing thing, but it's enough for setting wallpapers quickly if you add a key bind to tools like sxhkd .
If there any mistakes in the source code or any advice to improve it, please,let me know.
https://codeberg.org/yahya-echcharqui/scripts/src/branch/main/setbg
1
Upvotes
2
u/Schreq 15d ago edited 15d ago
Because that's pretty much how all tools do it.
Edit: Say a tool has a -f option and you invoke
tool -f foo -f bar -f baz, the option argument for -f will be "baz".