diff --git a/i3/background/428df5.jpg b/i3/background/428df5.jpg new file mode 100644 index 0000000..59fbbc2 Binary files /dev/null and b/i3/background/428df5.jpg differ diff --git a/i3/background/436394.jpg b/i3/background/436394.jpg new file mode 100644 index 0000000..ebc7ce4 Binary files /dev/null and b/i3/background/436394.jpg differ diff --git a/i3/background/82a86b.jpg b/i3/background/82a86b.jpg new file mode 100644 index 0000000..a55fe4c Binary files /dev/null and b/i3/background/82a86b.jpg differ diff --git a/i3/background/background.sh b/i3/background/background.sh new file mode 100755 index 0000000..e7889d2 --- /dev/null +++ b/i3/background/background.sh @@ -0,0 +1,8 @@ +export BG_PATH=~/background +:wa +cd $BG_PATH +FILENAME=$(basename $(ls *.jpg | sort -R | head -n 1) .jpg) +SUB="s/^primary = #[a-z0-9]*/primary = #${FILENAME}/" +echo $FILENAME > color +sed -i "$SUB" ~/.config/polybar/config +${0%/*}/refresh.sh diff --git a/i3/background/cf5fb4.jpg b/i3/background/cf5fb4.jpg new file mode 100644 index 0000000..91c4c3d Binary files /dev/null and b/i3/background/cf5fb4.jpg differ diff --git a/i3/background/refresh.sh b/i3/background/refresh.sh new file mode 100755 index 0000000..301c2be --- /dev/null +++ b/i3/background/refresh.sh @@ -0,0 +1,2 @@ +PT=${BG_PATH:-~/background} +cat $PT/color | xargs -I {} feh --bg-scale "$PT/{}.jpg"