summaryrefslogtreecommitdiff
path: root/shell-scripts/set-bg
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-06-25 21:36:52 +0200
committerMike Vink <mike1994vink@gmail.com>2023-06-25 21:36:52 +0200
commitba31dd00cb93b861f4955c57a1be33a63c4efe95 (patch)
tree520d8717eac629ff3cf85472a72ae5cd26222dc5 /shell-scripts/set-bg
parent248af6f46a3fcfbdcfb313c54fb91eaa9f42cce1 (diff)
add some stuff
Diffstat (limited to 'shell-scripts/set-bg')
-rw-r--r--shell-scripts/set-bg16
1 files changed, 16 insertions, 0 deletions
diff --git a/shell-scripts/set-bg b/shell-scripts/set-bg
new file mode 100644
index 0000000..ad04730
--- /dev/null
+++ b/shell-scripts/set-bg
@@ -0,0 +1,16 @@
+#!@bash@/bin/bash
+reload=0
+while getopts "r" opt; do
+ case "$opt" in
+ h|\?) exit 0 ;;
+ r) reload=1 ;;
+ esac
+done
+if [ $reload -eq 1 ]; then
+ (cat ~/.cache/wal/sequences &)
+else
+ sxiv -tob ~/bg | parallel wal -i
+fi
+kak -l | parallel '<<< "colorscheme wal" kak -p {}'
+pgrep -x st | parallel kill
+st -e tmux attach