diff options
Diffstat (limited to 'scripts/random_background_sway')
-rwxr-xr-x | scripts/random_background_sway | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/random_background_sway b/scripts/random_background_sway new file mode 100755 index 0000000..9cf9e9f --- /dev/null +++ b/scripts/random_background_sway @@ -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]} & |