aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-03-01 12:42:21 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-03-01 12:42:21 +0100
commitd1a3b117e8857ecd0426e1cf0b88ffb968004d8b (patch)
tree795b83288d617744d6a9ecdd4300b3543e7fe409
parent8ba25dce2a6aa5af1b2b9328cd3c0fdbdf8e7dae (diff)
downloaddotfiles-d1a3b117e8857ecd0426e1cf0b88ffb968004d8b.tar.gz
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]} &