Add background images and scripts.
This commit is contained in:
parent
8a628c0aeb
commit
ec1fc6e932
BIN
i3/background/428df5.jpg
Normal file
BIN
i3/background/428df5.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 652 KiB |
BIN
i3/background/436394.jpg
Normal file
BIN
i3/background/436394.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 851 KiB |
BIN
i3/background/82a86b.jpg
Normal file
BIN
i3/background/82a86b.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 944 KiB |
8
i3/background/background.sh
Executable file
8
i3/background/background.sh
Executable 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
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
2
i3/background/refresh.sh
Executable file
|
@ -0,0 +1,2 @@
|
|||
PT=${BG_PATH:-~/background}
|
||||
cat $PT/color | xargs -I {} feh --bg-scale "$PT/{}.jpg"
|
Loading…
Reference in New Issue
Block a user