aboutsummaryrefslogtreecommitdiff
path: root/xinitrc.d/10-background.sh
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-28 19:00:04 +0200
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2020-06-28 19:00:04 +0200
commit33ede38c48082c6b3b32947311fa70da0d78499c (patch)
treefb07c0570fe9ef8533968d909946a508b98e8e39 /xinitrc.d/10-background.sh
parentb0f6e0b064264b5b27d1eb7a71c43c6640e16632 (diff)
downloaddotfiles-33ede38c48082c6b3b32947311fa70da0d78499c.tar.gz
xinitrc.d added
Diffstat (limited to 'xinitrc.d/10-background.sh')
-rwxr-xr-xxinitrc.d/10-background.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/xinitrc.d/10-background.sh b/xinitrc.d/10-background.sh
new file mode 100755
index 0000000..359e65e
--- /dev/null
+++ b/xinitrc.d/10-background.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+#Screen background feh
+shopt -s nullglob
+
+pics=(~/vimconfig/pictures/b_*)
+len=${#pics[*]}
+ran=$(($RANDOM % len))
+
+feh --bg-fill ${pics[$ran]}
+
+unset pics len ran