Lots of changes in curacao
This commit is contained in:
parent
4bf544c9be
commit
3d24d97d51
16 changed files with 46 additions and 21 deletions
3
config/autorandr/bg
Normal file
3
config/autorandr/bg
Normal file
|
@ -0,0 +1,3 @@
|
|||
# Derivate of these ones https://wallpapers.wallhaven.cc/wallpapers/full/wallhaven-230622.png
|
||||
https://geoffrey.frogeye.fr/files/backgrounds/VertBleu.png
|
||||
# https://geoffrey.frogeye.fr/files/backgrounds/BleuVert.png
|
|
@ -1,10 +1,26 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"
|
||||
# From https://stackoverflow.com/a/246128
|
||||
|
||||
# Relaunch the bars
|
||||
# i3-msg exec ~/.config/polybar/launch.sh
|
||||
# TODO Make something better with that
|
||||
i3-msg exec ~/.config/lemonbar/launch.sh
|
||||
|
||||
# Resize background
|
||||
feh --bg-fill ~/.config/i3/bg.jpg
|
||||
BGDIR="$HOME/.cache/background"
|
||||
mkdir -p "$BGDIR"
|
||||
|
||||
list="$DIR/bg"
|
||||
url="$(cat "$list" | sed -e 's/#.*$//' -e 's/ \+$//' -e '/^$/d' | sort -R | head -1)"
|
||||
|
||||
hash="$(printf "$url" | md5sum | cut -f1 -d' ')"
|
||||
filepath="$BGDIR/$hash"
|
||||
|
||||
if [ ! -e "$filepath" ]; then
|
||||
wget -c "$url" -O "$filepath"
|
||||
fi
|
||||
|
||||
feh --bg-fill "$filepath"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue