adi1090x / dynamic-wallpaper

A simple bash script to set wallpapers according to current time, using cron job scheduler.
GNU General Public License v3.0
1.91k stars 116 forks source link

wallpaper not changing with cron - workaround possible #64

Open tomturbu opened 3 years ago

tomturbu commented 3 years ago

Hi, first of all - i love this project, good work, thanks a lot!

Issue: a single cron job only changes the terminal color based on the desired background-wallpaper, a second cron is required to change the background-wallpaper

So in other words - if i only have one single cronjob with -p and -s, only the background-color of my terminal gets changed. Therefore i changed the first job and removed -p switch, and added a second job with both -p and -s

cron:

# m h  dom mon dow   command
0 * * * * env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin DISPLAY=:1 DESKTOP_SESSION=pop DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s mountains
0 * * * * env PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin DISPLAY=:1 DESKTOP_SESSION=pop DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -p -s mountains

neofetch:

thomas@xyz:~$ neofetch
             /////////////                thomas@xyz
         /////////////////////            --------------------
      ///////*767////////////////         OS: Pop!_OS 20.04 LTS x86_64
    //////7676767676*//////////////       Host: 20QGS00Q00 ThinkPad X1 Yoga 4th
   /////76767//7676767//////////////      Kernel: 5.8.0-7630-generic
  /////767676///*76767///////////////     Uptime: 6 days, 23 hours, 29 mins
 ///////767676///76767.///7676*///////    Packages: 1887 (dpkg), 19 (flatpak), 5 (snap)
/////////767676//76767///767676////////   Shell: bash 5.0.17
//////////76767676767////76767/////////   Resolution: 1920x1080, 1440x2560, 2560x1440
///////////76767676//////7676//////////   DE: GNOME
////////////,7676,///////767///////////   WM: Mutter
/////////////*7676///////76////////////   WM Theme: Pop
///////////////7676////////////////////   Theme: Pop-dark [GTK2/3]
 ///////////////7676///767////////////    Icons: Pop [GTK2/3]
  //////////////////////'////////////     Terminal: alacritty
   //////.7676767676767676767,//////      CPU: Intel i5-8265U (8) @ 3.900GHz
    /////767676767676767676767/////       GPU: Intel UHD Graphics 620
      ///////////////////////////         Memory: 12050MiB / 15782MiB
         /////////////////////
             /////////////
ghost commented 3 years ago

Hi @tomturbu, it appears that @adi1090x has abandoned this project (the last commit was in January), but I have continued development in my fork Dynamic Wallpaper Improved. Feel free to open your issue there so I can take a look at it!