From a5672ce0a8740d628708a4869876f1300f239a79 Mon Sep 17 00:00:00 2001 From: exu Date: Sat, 18 Nov 2023 16:54:20 +0100 Subject: [PATCH] Set background image --- arch-config/.config/sway/config | 4 ++-- arch-config/.config/sway/config.d/background | 4 ++-- arch-config/scripts/arch-config.sh | 7 ++++++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/arch-config/.config/sway/config b/arch-config/.config/sway/config index 2a1c8b0f..ea0f093a 100644 --- a/arch-config/.config/sway/config +++ b/arch-config/.config/sway/config @@ -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 # diff --git a/arch-config/.config/sway/config.d/background b/arch-config/.config/sway/config.d/background index 1b0f473f..071b17bd 100644 --- a/arch-config/.config/sway/config.d/background +++ b/arch-config/.config/sway/config.d/background @@ -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 diff --git a/arch-config/scripts/arch-config.sh b/arch-config/scripts/arch-config.sh index d7cce5b7..98b33b8e 100755 --- a/arch-config/scripts/arch-config.sh +++ b/arch-config/scripts/arch-config.sh @@ -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"