Set background image
This commit is contained in:
parent
b5b03e6567
commit
a5672ce0a8
@ -75,9 +75,9 @@ output "Acer Technologies XV272U V R307036FE4208" adaptive_sync on
|
||||
# -c 000000 sets the color in RGB
|
||||
# use -i to set an image
|
||||
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"' \
|
||||
before-sleep 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen.png"'
|
||||
before-sleep 'swaylock -f -e -i "$HOME/.cache/backgrounds/lockscreen"'
|
||||
|
||||
### Input configuration
|
||||
#
|
||||
|
@ -1,2 +1,2 @@
|
||||
#output * bg $HOME/.cache/backgrounds/desktop.png fill
|
||||
output * background '#31022d' solid_color
|
||||
output * background "$HOME/.cache/backgrounds/desktop" fill
|
||||
#output * background '#31022d' solid_color
|
||||
|
@ -330,7 +330,12 @@ fi
|
||||
# make fehbg executable
|
||||
#if [[ -f "$HOME/.fehbg" ]]; then
|
||||
# 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"
|
||||
bash "$scriptpath/gsettings.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user