Sway Wallpaper doesnt change

Servus,

I have a problem, again… I’ve decided to change the background, and not only that, but to make it alternate. I first tried this script:

#!/bin/sh

# In den Ordner wechseln, in dem sich die Bilder befinden
cd /home/fanria/Bilder/Wallpapers || exit 1

# Hintergrundbild zufällig aus dem aktuellen Ordner auswählen und setzen
swaybg -i $(find . -type f | shuf -n1) -m fill &
OLD_PID=$!

# Hintergrundbild timer
while true; do
    sleep 600  # 10 Minuten warten
    swaybg -i $(find . -type f | shuf -n1) -m fill &
    NEXT_PID=$!
    sleep 5  # Zeit geben, damit das neue Bild gesetzt wird
    kill $OLD_PID  # Den alten Hintergrundprozess beenden
    OLD_PID=$NEXT_PID  # Den neuen Prozess als alten setzen
done

I think it worked, at least according to the output:

2024-09-10 18:23:46 - [swaybg-1.2.1/main.c:282] Found config * for output eDP-1 (LG Display 0x05FA)
2024-09-10 18:23:46 - [swaybg-1.2.1/main.c:282] Found config * for output DP-3 (BNQ BenQ RL2755 L5G09003SL0)

but nothing has changed.

I have also tried feh and swww. Unfortunately all without success.

System:
  Kernel: 6.10.9-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc avail: hpet,acpi_pm
    parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
    root=UUID=4b1797ec-dffc-4ccc-894e-8da976f739c3 rw rootflags=subvol=@
    quiet resume=UUID=ecf746e7-7ab4-4992-9c2a-bc8bb8900f74 loglevel=3 ibt=off
  Desktop: Sway v: 0.4 with: waybar tools: swayidle avail: swaylock vt: 1
    lm: greetd Distro: Garuda base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20UES1K600 v: ThinkPad T14 Gen 1
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20UES1K600 v: SDK0J40697 WIN
    serial: <superuser required> part-nu: LENOVO_MT_20UE_BU_Think_FM_ThinkPad
    T14 Gen 1 uuid: <superuser required> UEFI: LENOVO v: R1BET78W(1.47 )
    date: 03/26/2024
Battery:
  ID-1: BAT0 charge: 35.5 Wh (79.6%) condition: 44.6/50.5 Wh (88.3%)
    volts: 12.1 min: 11.6 model: LGC 5B10W139 type: Li-poly serial: <filter>
    status: not charging cycles: 164
CPU:
  Info: model: AMD Ryzen 5 PRO 4650U with Radeon Graphics bits: 64
    type: MT MCP arch: Zen 2 gen: 3 level: v3 note: check built: 2020-22
    process: TSMC n7 (7nm) family: 0x17 (23) model-id: 0x60 (96) stepping: 1
    microcode: 0x8600109
  Topology: cpus: 1x cores: 6 tpc: 2 threads: 12 smt: enabled cache:
    L1: 384 KiB desc: d-6x32 KiB; i-6x32 KiB L2: 3 MiB desc: 6x512 KiB L3: 8 MiB
    desc: 2x4 MiB
  Speed (MHz): avg: 1399 high: 1400 min/max: 1400/2100 boost: disabled
    scaling: driver: acpi-cpufreq governor: powersave cores: 1: 1400 2: 1400
    3: 1400 4: 1397 5: 1400 6: 1400 7: 1400 8: 1400 9: 1400 10: 1400 11: 1397
    12: 1400 bogomips: 50304
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  Vulnerabilities: <filter>
Graphics:
  Device-1: AMD Renoir [Radeon Vega Series / Radeon Mobile Series]
    vendor: Lenovo driver: amdgpu v: kernel arch: GCN-5 code: Vega
    process: GF 14nm built: 2017-20 pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s ports: active: DP-3,eDP-1 empty: DP-1,
    DP-2, DP-4, DP-5, HDMI-A-1 bus-ID: 08:00.0 chip-ID: 1002:1636
    class-ID: 0300 temp: 45.0 C
  Device-2: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 2-2:2 chip-ID: 04f2:b6d0
    class-ID: fe01 serial: <filter>
  Display: wayland server: Xwayland v: 24.1.2 compositor: Sway v: 0.4
    driver: gpu: amdgpu d-rect: 3840x1080 display-ID: 1
  Monitor-1: DP-3 pos: right model: BenQ RL2755 serial: <filter> built: 2016
    res: 1920x1080 hz: 60 dpi: 82 gamma: 1.2 scale: 1
    size: 598x336mm (23.54x13.23") diag: 686mm (27") ratio: 16:9 modes:
    max: 1920x1080 min: 720x400
  Monitor-2: eDP-1 pos: primary,left model: LG Display 0x05fa built: 2018
    res: 1920x1080 hz: 60 dpi: 158 gamma: 1.2 scale: 1
    size: 309x174mm (12.17x6.85") diag: 355mm (14") ratio: 16:9 modes:
    max: 1920x1080 min: 640x480
  API: Vulkan v: 1.3.295 layers: 3 device: 0 type: integrated-gpu name: AMD
    Radeon Graphics (RADV RENOIR) driver: mesa radv v: 24.2.2-arch1.1
    device-ID: 1002:1636 surfaces: xcb,xlib,wayland device: 1 type: cpu
    name: llvmpipe (LLVM 18.1.8 256 bits) driver: mesa llvmpipe
    v: 24.2.2-arch1.1 (LLVM 18.1.8) device-ID: 10005:0000
    surfaces: xcb,xlib,wayland
  API: EGL Message: EGL data requires eglinfo. Check --recommends.
Audio:
  Device-1: AMD Renoir Radeon High Definition Audio vendor: Lenovo
    driver: snd_hda_intel v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16
    link-max: gen: 4 speed: 16 GT/s bus-ID: 08:00.1 chip-ID: 1002:1637
    class-ID: 0403
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Lenovo
    driver: snd_rn_pci_acp3x v: kernel alternate: snd_pci_acp3x, snd_pci_acp5x,
    snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps,
    snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh,
    snd_sof_amd_acp63 pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 08:00.5 chip-ID: 1022:15e2 class-ID: 0480
  Device-3: AMD Family 17h/19h HD Audio vendor: Lenovo driver: snd_hda_intel
    v: kernel pcie: gen: 3 speed: 8 GT/s lanes: 16 link-max: gen: 4
    speed: 16 GT/s bus-ID: 08:00.6 chip-ID: 1022:15e3 class-ID: 0403
  Device-4: Lenovo ThinkPad Dock USB Audio
    driver: hid-generic,snd-usb-audio,usbhid type: USB rev: 2.0 speed: 480 Mb/s
    lanes: 1 mode: 2.0 bus-ID: 6-1.2.4:8 chip-ID: 17ef:306f class-ID: 0300
  API: ALSA v: k6.10.9-zen1-1-zen status: kernel-api
    tools: alsactl,alsamixer,amixer
  Server-1: sndiod v: N/A status: off tools: aucat,midicat,sndioctl
  Server-2: PipeWire v: 1.2.3 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 3400 bus-ID: 02:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp2s0f0 state: down mac: <filter>
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel pcie: gen: 2
    speed: 5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 8086:2723 class-ID: 0280
  IF: wlp3s0 state: up mac: <filter>
  Device-3: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet
    vendor: Lenovo driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1
    port: 2000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp6s0 state: down mac: <filter>
  Info: services: NetworkManager, systemd-timesyncd, wpa_supplicant
Bluetooth:
  Device-1: Intel AX200 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 mode: 1.1 bus-ID: 6-4:3 chip-ID: 8087:0029
    class-ID: e001
  Report: btmgmt ID: hci0 rfk-id: 3 state: up address: <filter> bt-v: 5.2
    lmp-v: 11 status: discoverable: no pairing: no class-ID: 6c010c
Drives:
  Local Storage: total: 596.18 GiB used: 89.92 GiB (15.1%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix
    model: HFM128GDHTNG-8310A size: 119.24 GiB block-size: physical: 512 B
    logical: 512 B speed: 15.8 Gb/s lanes: 2 tech: SSD serial: <filter>
    fw-rev: 80070C00 temp: 47.9 C scheme: GPT
  ID-2: /dev/nvme1n1 maj-min: 259:4 vendor: SK Hynix
    model: HFS512GD9TNI-L2B0B size: 476.94 GiB block-size: physical: 512 B
    logical: 512 B speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter>
    fw-rev: 11720C10 temp: 46.9 C scheme: GPT
Partition:
  ID-1: / raw-size: 101.94 GiB size: 101.94 GiB (100.00%)
    used: 89.92 GiB (88.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-2: /boot/efi raw-size: 300 MiB size: 299.4 MiB (99.80%)
    used: 588 KiB (0.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1
  ID-3: /home raw-size: 101.94 GiB size: 101.94 GiB (100.00%)
    used: 89.92 GiB (88.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-4: /var/log raw-size: 101.94 GiB size: 101.94 GiB (100.00%)
    used: 89.92 GiB (88.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
  ID-5: /var/tmp raw-size: 101.94 GiB size: 101.94 GiB (100.00%)
    used: 89.92 GiB (88.2%) fs: btrfs dev: /dev/nvme0n1p2 maj-min: 259:2
Swap:
  Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default) zswap: no
  ID-1: swap-1 type: zram size: 22.7 GiB used: 0 KiB (0.0%) priority: 100
    comp: zstd avail: lzo,lzo-rle,lz4,lz4hc,842 max-streams: 12 dev: /dev/zram0
  ID-2: swap-2 type: partition size: 17 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p3 maj-min: 259:3
Sensors:
  System Temperatures: cpu: 45.0 C mobo: N/A gpu: amdgpu temp: 45.0 C
  Fan Speeds (rpm): fan-1: 0 fan-2: 0
Info:
  Memory: total: 24 GiB note: est. available: 22.7 GiB used: 3.94 GiB (17.4%)
  Processes: 342 Power: uptime: 24m states: freeze,mem,disk suspend: deep
    avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot,
    suspend, test_resume image: 9.07 GiB services: upowerd Init: systemd
    v: 256 default: graphical tool: systemctl
  Packages: 1571 pm: pacman pkgs: 1557 libs: 422 tools: pacseek,paru,yay
    pm: snap pkgs: 14 Compilers: clang: 18.1.8 gcc: 14.2.1 Shell: garuda-inxi
    default: fish v: 3.7.1 running-in: foot inxi: 3.3.35
Garuda (2.6.26-1):
  System install date:     2024-05-06
  Last full system update: 2024-09-10 ↻
  Is partially upgraded:   No
  Relevant software:       snapper tlp NetworkManager dracut
  Windows dual boot:       Probably (Run as root to verify)
  Failed units:    

LG
Angelo

I guess basically you want a slideshow of background ??
I would recommend this thing :

sudo pacman -S wpaperd
1 Like

Ideally, I would like to have it. But I can’t even change the background just like that. Unfortunately, Wparderd can’t do it either. I really don’t know how I can at least change the image.

Strange enough :eyes:

Did you properly configured wpaperd ??
And made it to run on log in ??

Yes, i did. It is also strange that no other programme is able to change the background just like that. In other words, without any slideshow.

I have done the following steps:

sudo pacman -S wpaperd
nano ~/.config/wpaperd/config.toml

The config did not exist, so I created one.

mkdir -p ~/.config/wpaperd
nano ~/.config/wpaperd/config.toml

i put in in the config:

[default]
path = "/home/fanria/Bilder/Wallpapers/"  
duration = "600"  

then,

nano ~/.config/sway/config

i put in:

exec wpaperd

and finally

swaymsg reload

nothing has changed…

Run wpaperd in terminal

And show the output

And please edit same post until someone replies to your last post

1 Like

You will have to comment out or remove the call to the Azote script in the Sway config before trying to implement another wallpaper solution so it doesn’t overwrite whatever you are trying to do.

3 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.