aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2022-12-01 13:52:03 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2022-12-01 13:52:03 +0100
commit8f9a65c0c21affaedbca23d5bb5b55cf0a4b9265 (patch)
treed359b142d006bae351ea1a8cc653ce9bc6c38584 /scripts
parent379ef6f0b1e41f53820f07041bc615c0a1ca0352 (diff)
downloaddotfiles-8f9a65c0c21affaedbca23d5bb5b55cf0a4b9265.tar.gz
fix random background
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/random_background_sway4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/random_background_sway b/scripts/random_background_sway
index 9cf9e9f..c67d95a 100755
--- a/scripts/random_background_sway
+++ b/scripts/random_background_sway
@@ -1,9 +1,11 @@
#!/bin/bash
+. $HOME/.files
+
#Screen background feh
shopt -s nullglob
-pics=(~/vimconfig/pictures/b_*)
+pics=($DOTFILEBASE/pictures/b_*)
#echo $pics
len=${#pics[*]}
ran=$(($RANDOM % len))