summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/random_background14
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/random_background b/scripts/random_background
new file mode 100755
index 0000000..9cf9e9f
--- /dev/null
+++ b/scripts/random_background
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+#Screen background feh
+shopt -s nullglob
+
+pics=(~/vimconfig/pictures/b_*)
+#echo $pics
+len=${#pics[*]}
+ran=$(($RANDOM % len))
+
+
+echo ${pics[$ran]}
+killall swaybg
+swaybg -i ${pics[$ran]} &