summaryrefslogtreecommitdiff
path: root/shell-scripts/set-bg
diff options
context:
space:
mode:
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