Add background images and scripts.

This commit is contained in:
Danila Fedorin 2021-04-06 23:09:06 -07:00
parent 8a628c0aeb
commit ec1fc6e932
6 changed files with 10 additions and 0 deletions

BIN
i3/background/428df5.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 652 KiB

BIN
i3/background/436394.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 851 KiB

BIN
i3/background/82a86b.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 KiB

8
i3/background/background.sh Executable file
View File

@ -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

BIN
i3/background/cf5fb4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

2
i3/background/refresh.sh Executable file
View File

@ -0,0 +1,2 @@
PT=${BG_PATH:-~/background}
cat $PT/color | xargs -I {} feh --bg-scale "$PT/{}.jpg"