Set background image

This commit is contained in:
exu 2023-11-18 16:54:20 +01:00
parent b5b03e6567
commit a5672ce0a8
3 changed files with 10 additions and 5 deletions

View File

@ -75,9 +75,9 @@ output "Acer Technologies XV272U V R307036FE4208" adaptive_sync on
# -c 000000 sets the color in RGB # -c 000000 sets the color in RGB
# use -i to set an image # use -i to set an image
exec swayidle -w \ exec swayidle -w \
timeout 300 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen.png"' \ timeout 300 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"' \
timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \ timeout 600 'swaymsg "output * power off"' resume 'swaymsg "output * power on"' \
before-sleep 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen.png"' before-sleep 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"'
### Input configuration ### Input configuration
# #

View File

@ -1,2 +1,2 @@
#output * bg $HOME/.cache/backgrounds/desktop.png fill output * background "$HOME/.cache/backgrounds/desktop" fill
output * background '#31022d' solid_color #output * background '#31022d' solid_color

View File

@ -330,7 +330,12 @@ fi
# make fehbg executable # make fehbg executable
#if [[ -f "$HOME/.fehbg" ]]; then #if [[ -f "$HOME/.fehbg" ]]; then
# chmod +x ~/.fehbg # chmod +x ~/.fehbg
#fi
# copy chosen image for lockscreen and desktop
backgroundimage="/home/exu/Bilder/Backgrounds/artstation/dk-lan/artstation_14224733_55806391_月半与鬼哭.jpg"
cp "$backgroundimage" "$HOME/.cache/backgrounds/desktop"
cp "$backgroundimage" "$HOME/.cache/backgrounds/lockscreen"
chmod +x "$scriptpath/gsettings.sh" chmod +x "$scriptpath/gsettings.sh"
bash "$scriptpath/gsettings.sh" bash "$scriptpath/gsettings.sh"