diff options
author | Jonas Gunz <himself@jonasgunz.de> | 2020-03-01 12:42:21 +0100 |
---|---|---|
committer | Jonas Gunz <himself@jonasgunz.de> | 2020-03-01 12:42:21 +0100 |
commit | d1a3b117e8857ecd0426e1cf0b88ffb968004d8b (patch) | |
tree | 795b83288d617744d6a9ecdd4300b3543e7fe409 /scripts | |
parent | 8ba25dce2a6aa5af1b2b9328cd3c0fdbdf8e7dae (diff) | |
download | dotfiles-d1a3b117e8857ecd0426e1cf0b88ffb968004d8b.tar.gz |
scripts
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/random_background | 14 |
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]} & |