Git Product home page Git Product logo

adi1090x / dynamic-wallpaper Goto Github PK

View Code? Open in Web Editor NEW
1.8K 26.0 112.0 140.35 MB

A simple bash script to set wallpapers according to current time, using cron job scheduler.

License: GNU General Public License v3.0

Shell 100.00%
wallpaper wallpapers dynamic-wallpaper linux ubuntu bash adi1090x unixporn live-wallpapers timed-wallpaper wallpaper-set wallpaperengine wallpaper-manager bash-scripts cron crontab cronjob pywal arch-linux archcraft

dynamic-wallpaper's Introduction

A simple bash script to set wallpapers according to current time, using cron job scheduler.

gif

Overview

  • 25+(more) different types of wallpaper set (HD/UHD/4K/5K).
  • Added pywal support.
  • Users can add their own wallpapers.
  • With Cron, Wallpaper changes according to time, throughout the day.
  • Tested on :
    • Window Managers : Works on all window managers (tested on all WMs Archcraft have)
    • Wayland Compositors : sway, wayfire, river, newm, hyprland
    • Desktop Environments : KDE, Pantheon, Gnome, Deepin, Cinnamon, XFCE, LXDE, MATE, Zorin, Budgie

Dependencies

Install Following programs on your system before using dwall -

  • feh : To set wallpapers on WMs
  • cron : To set a job for dwall
  • xrandr : Only if you're using XFCE desktop
  • pywal : for pywal support (optional)

Install feh, cron and xrandr -

# On Archlinux
$ sudo pacman -Sy xorg-xrandr feh cronie

# On Ubuntu or Debian
$ sudo apt-get install x11-xserver-utils feh cron

For swaywm support users must install oguri. The oguri daemon must be started for the script to work. Oguri can be installed on Arch linux via AUR.

Installation

Follow the step below to install dwall on your system -

You can run test.sh to test it before installing it on your system.

  • Clone this repository -
$ git clone https://github.com/adi1090x/dynamic-wallpaper.git
  • Change to cloned directory and run install.sh -
$ cd dynamic-wallpaper
$ chmod +x install.sh
$ ./install.sh

Run the program

  • Open the terminal and execute dwall -
$ dwall

╺┳┓╻ ╻┏┓╻┏━┓┏┳┓╻┏━╸   ╻ ╻┏━┓╻  ╻  ┏━┓┏━┓┏━┓┏━╸┏━┓
 ┃┃┗┳┛┃┗┫┣━┫┃┃┃┃┃     ┃╻┃┣━┫┃  ┃  ┣━┛┣━┫┣━┛┣╸ ┣┳┛
╺┻┛ ╹ ╹ ╹╹ ╹╹ ╹╹┗━╸   ┗┻┛╹ ╹┗━╸┗━╸╹  ╹ ╹╹  ┗━╸╹┗╸

Dwall V3.0   : Set wallpapers according to current time.
Developed By : Aditya Shakya (@adi1090x)

Usage : test.sh [-h] [-p] [-s style]

Options:
   -h	  Show this help message
   -p	  Use pywal to set wallpaper
   -s	  Name of the style to apply
   
Available styles:  aurora  beach  bitday  chihuahuan  cliffs  colony  desert  earth  exodus
factory  firewatch  forest  gradient  home  island  lake  lakeside  market  mojave  moon
mountains  room  sahara  street  tokyo  

Examples: 
test.sh -s beach       Set wallpaper from 'beach' style
test.sh -p -s sahara   Set wallpaper from 'sahara' style using pywal
  • Select the style you like and run -
$ dwall -s firewatch
[*] Using style : firewatch

Setup cron job

This program is specifically created to use with a time-based job scheduler such as cron or systemd/Timers. So, After installing this program you need to set up a cron job using crontab on your system. Follow the step below to set a job for this program -

I'm using cronie on Arch Linux here.

  • After installing cron, enable and start the cron service -
# On Arch Linux
$ sudo systemctl enable cronie.service --now
  • Make sure the service is enabled and running -
$ systemctl status cronie.service
● cronie.service - Periodic Command Scheduler
     Loaded: loaded (/usr/lib/systemd/system/cronie.service; enabled; vendor preset: disabled)
     Active: active (running) since Sat 2020-12-26 14:39:31 IST; 5h 22min ago
   Main PID: 779 (crond)
  • Cron does not run under the Xorg server therefore it cannot know the environmental variable necessary to be able to start an Xorg server application so they will have to be defined. Find out the values of following environment variables - SHELL, PATH, DISPLAY, DESKTOP_SESSION, DBUS_SESSION_BUS_ADDRESS, XDG_RUNTIME_DIR
$ echo "$SHELL | $PATH | $DISPLAY | $DESKTOP_SESSION | $DBUS_SESSION_BUS_ADDRESS | $XDG_RUNTIME_DIR"

/usr/bin/zsh | /usr/local/bin:/usr/bin | :0 | Openbox | unix:path=/run/user/1000/bus | /run/user/1000
  • Now, Create an hourly cron job for dwall using crontab -
# export editor for crontab
$ export EDITOR=vim

# Edit your crontab and add a job
$ crontab -e

# Add this line replacing the values of env variable and style with yours
0 * * * * env PATH=/usr/local/bin:/usr/bin DISPLAY=:0 DESKTOP_SESSION=Openbox DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s firewatch

# check if job is created on your crontab
$ crontab -l
0 * * * * env PATH=/usr/local/bin:/usr/bin DISPLAY=:0 DESKTOP_SESSION=Openbox DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s firewatch
  • That's it, dwall added to your crontab and will change the wallpaper every hour. If you want to change the wallpaper style, just remove previous job and add new with another style.
# delete previous job
$ crontab -r

# Add new job with different style
$ crontab -e
0 * * * * env PATH=/usr/local/bin:/usr/bin DISPLAY=:0 DESKTOP_SESSION=Openbox DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s bitday

How to add own wallpapers

  • Download a wallpaper set you like.
  • Rename the wallpapers (must be jpg/png) to 0-23. If you don't have enough images, symlink them.
  • Make a directory in /usr/share/dynamic-wallpaper/images and copy your wallpapers in that.
  • Run the program, select the style and apply it.

Tips

  • You can use dwall to change between your favorite wallpapers every hour.
  • You can use dwall as picture slide, which can set your favorite photos as wallpaper every hour or every 15 minutes. Just create an appropriate cron job.

Use HEIC Images

You may also want to use wallpapers from Dynamic Wallpaper Club. To do so, you need to convert .heic image file to either png or jpg format. Download a .heic wallpaper file you like and follow the steps below to convert images.

  • First install heif-convert on your system -
# On Archlinux
$ sudo pacman -Sy libheif

# On Ubuntu or Debian
$ sudo apt-get install libheif-examples
  • Move your .heic file in a directory and run following command to convert images -
# change to directory
$ cd Downloads/heic_images

# convert to jpg images
$ for file in *.heic; do heif-convert $file ${file/%.heic/.jpg}; done
  • Now, you have the images, just follow the above steps to use these wallpapers with dwall.

More Wallpapers : I've also created a few more wallpaper sets, which are not added to this repository because of their big size. You can download these wallpapers set from here -

undefined

Available Sets : Catalina, London, Maldives, Mojave HD, Mount Fuji, Seoul, and more...

Previews

Aurora Beach Bitday Chihuahuan
gif gif gif gif
Cliffs Colony Desert Earth
gif gif gif gif
Exodus Factory Forest Gradient
gif gif gif gif
Home Island Lake Lakeside
gif gif gif gif
Market Mojave Moon Mountains
gif gif gif gif
Room Sahara Street Tokyo
gif gif gif gif

Common Issues

1. Wallpaper not changing : If your wallpaper is not changing, then open an issue and show me the output of echo $DESKTOP_SESSION.

2. Not working on XFCE : If this script is not working on xfce, then open the terminal and run xfconf-query -c xfce4-desktop -m and change the wallpaper (any) via xfce4-settings-manager.
In the terminal, xfconf-query will print lines starting with set:, which show which properties have been changed, check screen & monitor values and modify the script accordingly.

109   ## For XFCE
110   if [[ "$OSTYPE" == "linux"* ]]; then
111      SCREEN="0"
112      MONITOR="1"
113   fi
  1. Autostart : If you want to autostart the script with desktop, you can add it to your WM autostart file & if it doesn't work for you, you can create a desktop file in $HOME/.config/autostart dir.
$ cd $HOME/.config/autostart && touch dwall.desktop

# Add this to dwall.desktop file

[Desktop Entry]
Name=Dynamic Wallpaper
Comment=Set desktop background according to current time.
Exec=/usr/bin/dwall -s firewatch &
Type=Application
Icon=wallpaper
Categories=Accessories;

Alternatively, you can also put the /usr/bin/dwall -s firewatch & command in your ~/.bashrc file.

Quick FYI

  • In KDE, dwall changes the wallpaper in all the Activities.
  • While using with pywal, the color of other applications (Terminal, polybar, rofi, etc) will change the way you configured these application. It's on you.
  • You can add dwall -s style & to your WM's autostart file to set/restore wallpaper after login/reboot.
  • You can also create a @reboot crontab to set appropriate wallpaper on boot.

dynamic-wallpaper's People

Contributors

aarivvk avatar adi1090x avatar matheusfillipe avatar sagyam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynamic-wallpaper's Issues

Cron Job Instructions for Debian

First of all, I would like to say that I loved this project. Thanks a lot for developing it. However, I have one question for the developers, would you guys bother to add installation instructions about the cron job for the Debian based distros (such as Ubuntu) in the README.

Using the 'memory' GSettings backend.

Try: dwall -s forest or dwall -o forest
And have message: Using the 'memory' GSettings backend. Your settings will not be saved or shared with other applications.

Resulf of 'echo $DESKTOP_SESSION' : 'ubuntu'.

App was install using guide from main page. (xserver, then repository)
Thanks for something helping.

Dwall trying to use pywal without option in command

Hello everyone,

When executing dwall -s forest the script returns [!] pywal is not installed on your system, exiting... despite the command not using the -p option.

╺┳┓╻ ╻┏┓╻┏━┓┏┳┓╻┏━╸   ╻ ╻┏━┓╻  ╻  ┏━┓┏━┓┏━┓┏━╸┏━┓
 ┃┃┗┳┛┃┗┫┣━┫┃┃┃┃┃     ┃╻┃┣━┫┃  ┃  ┣━┛┣━┫┣━┛┣╸ ┣┳┛
╺┻┛ ╹ ╹ ╹╹ ╹╹ ╹╹┗━╸   ┗┻┛╹ ╹┗━╸┗━╸╹  ╹ ╹╹  ┗━╸╹┗╸

Dwall V2.0   : Set wallpapers according to current time.
Developed By : Aditya Shakya (@adi1090x)

Usage : dwall [-h] [-p] [-s style]

Options:
   -h	Show this help message
   -p	Use pywal to set wallpaper
   -s	Name of the style to apply
   
Available styles:  aurora  [...]

Examples: 
dwall -s beach        Set wallpaper from 'beach' style
dwall -p -s sahara    Set wallpaper from 'sahara' style using pywal

sascha@thinkpad:~/git/dynamic-wallpaper$ dwall -s forest
[*] Using style : forest
[!] pywal is not installed on your system, exiting...
sascha@thinkpad:~/git/dynamic-wallpaper$ 

Did anyone run into this issue before?

Cheers

Info

OS: Ubuntu 20.04
SHELL: bash
DE: Gnome

permission denied on jpgs

I get this issue every style tested. Here are a few
/usr/bin/dwall: line 171: /usr/share/dynamic-wallpaper/images/forest/21.jpg: Permission denied
/usr/bin/dwall: line 171: /usr/share/dynamic-wallpaper/images/moon/22.jpg: Permission denied
/usr/bin/dwall: line 171: /usr/share/dynamic-wallpaper/images/market/22.jpg: Permission denied

Script fails in zsh

I assume this is because of the $SETTER not being expanded which could be fixed by adding the line set -o shwordsplit 2>/dev/null to the top of the script(s)

As seen in Pull #8

Wallpaper not changing using cron

Output of echo $DESKTOP_SESSION is
ubuntu

Cron file -
'0 * * * * env SHELL="/usr/bin/zsh" DISPLAY=:1 DESKTOP_SESSION="ubuntu" DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" XDG_RUNTIME_DIR="/run/user/1000" /usr/bin/dwall -s lakeside
@reboot /usr/bin/dwall -s lakeside '

Extra Info

OS: Ubuntu 20.04 LTS
WM: Mutter
DE: Gnome

Problem

The wallpaper is set correctly using the command dwall -s lakeside according to time of the day but, doesn't change using cron.
I have to run the command manually everytime so that wallpaper changes. Could you please guide me?

KDE support

Hello! I love the concept. What is preventing it from working with KDE? As KDE user, is there something I can consider contributing?

Thanks.

Scripts do not reset colour and bolding at end of output

In both dwall.sh and test.sh, colour codes are set (e.g. for different lines of usage) with most of them being bold, but the bold attribute is not later reset at the end of the script. This means that prompts without colour codes will be left incorrectly bolded after running the script:

incorrect bolding

or prompts that set colour without setting / unsetting the bold attribute will be incorrectly bolded:

incorrect bolding 2

Usually other programs will reset attributes / colour such that such behaviour does not happen, for example ls:

correct reset by ls

We can see that despite changing colour and attributes multiple times ls eventually resets the colour and bold attribute for the following output to be formatted.

Aspect ratio handling

When used on monitors with strange aspect ratios (eg ultrawide or portrait) the background gets stretched and looks quite odd. Is there a way to configure behaviour when the aspect ratio of the image does not match the aspect ratio of the display?

dwall says pywal isn't installed even if it is

~$dwall -s lakeside &
[1] 42971
~$ [*] Using style : lakeside [!] pywal is not installed on your system, exiting..
~$ echo $DESKTOP_SESSION
xubuntu

~$ pip3 install pywal
Requirement already satisfied: pywal in ./.local/lib/python3.8/site-packages (3.3.0)

@adi1090x

Code repetition

Near line 59, there is a case statement that checks if the OSTYPE is 'linux', but in the end, that statement is useless since you're using the same code for every other OS type.

Suggested change: the case statement is removed and replaced with lines 61-75

XFCE4 - start on boot

Tried all sorts of nonsense re WM autostart (.xinitrc, crontab - yes saw the other suggestion re the env variables).

This is what worked for me:

> pwd ; more dwall.desktop
/usr/home/tblakel/.config/autostart
[Desktop Entry]
Hidden=false
Exec=/usr/bin/dwall -s forest &
Name=DWall Autostart
Comment=https://github.com/adi1090x/dynamic-wallpaper

I know this works in Arch, and FreeBSD, might be helpful for others to see.

Crontab Suggestion

Hello, a cronjob newbie here

I couldn't use the script directly at cronjob. The problem was the limited environment that crontab runs on. It took me some time to figure out which environment variables are needed to be defined in crontab, so I thought writing it here might be helpful for others. Here are the variables that I had to define in the crontab for the cronjob to work:

  • SHELL
  • DESKTOP_SESSION
  • XDG_RUNTIME_DIR
  • XDG_DATA_DIRS
  • DBUS_SESSION_BUS_ADDRESS

You can find what values your environment has by typing env in your terminal or check each variable via $VARIABLE_NAME one by one. Maybe writing a small section in the readme about this might be nice as well. Hope this helps someone!

wallpaper not changing with pop!_os on system76 laptop

Wallpaper doesn't change, with cron or with the command dwall -s <style> for all styles on a system76 laptop running pop!_os with the cinnamon desktop environment.

Output of echo $DESKTOP_SESSION is cinnamon

Weirdly, on pop!_os installed on an old hp laptop it works fine.
Thanks

gnome-xorg session not supported

Hi,

In Fedora 31 with Gnome on Xorg, it doesn't work. It is needed to add gnome-xorg to the list of gnome variants then it works.

Thanks.

Nothing happens on Gnome

I have gnome DE running on Arch Linux over wayland. When I run dwall -s firewatch, nothing happens (there is no output on the terminal).
Screenshot from 2020-05-08 17-20-26

dwall change lockscreen wallpaper[kde neon]

(base) shade@shade-HP-ProBook-450-G1:~$ echo "$SHELL | $DISPLAY | $DESKTOP_SESSION | $DBUS_SESSION_BUS_ADDRESS | $XDG_RUNTIME_DIR"
/bin/bash | :0 | /usr/share/xsessions/plasma | unix:path=/run/user/1000/bus | /run/user/1000

(base) shade@shade-HP-ProBook-450-G1:~$ crontab -l
0 * * * * env DISPLAY=:0 DESKTOP_SESSION=/usr/share/xsessions/plasma DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s room

I have tested cronjob and it works.
running dwall directly works but from cronjob doesn't. Why?

Wallpaper "refreshes" every minute or two, sometimes changes to different style

I have my style set to 'street' in the dwall.desktop autostart script. For some strange reason, it flashes black and then loads back up (very quickly) every minute or two. On every third reload, it just switches to 'firewatch' style for no reason. After another minute or two, it will switch back to 'street' on its own.

I'm using Manjaro KDE.

echo $DESKTOP_SESSION yields: /usr/share/xsessions/plasma

Please let me know if any other information is needed. :)

Wallpaper not changing

Output of echo $DESKTOP_SESSION
/usr/share/xsessions/plasma

Extra Info

OS: Debian GNU/Linux 10 (buster) x86_64
Kernel: 4.19.0-13-amd64
Shell: zsh 5.7.1
DE: KDE
WM: KWin

Problem

Wallpaper changes when done manually but returns pywal not installed exiting when done by cron job.

Editing the Time of wallpaper change

Hello,I'm using the style firewatch3(or firewatch alt),which only has 2 wallpapers. I would like the night wallpaper to turn on at 7:30 P.M. Is there any way to edit the time?

AUR

Would be really nice if this package was available in the AUR

Wallpaper doesn't change on startup

Hi,

I find that the program works fine when changing the wallpaper every hour, but whenever I turn the computer on the wallpaper remains the same as it was when it turned off. This can be fixed manually by running "dwall -s " but I can't seem to do it automatically.

Here is system information.

System:    Kernel: 5.12.9-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0 
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=dcdd569c-4c0c-43bb-8e1a-97cd54de1faf 
rw rootflags=subvol=@ quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0 
systemd.unified_cgroup_hierarchy=1 loglevel=3 
Desktop: KDE Plasma 5.21.5 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 vt: 1 dm: SDDM 
Distro: Garuda Linux base: Arch Linux 
Machine:   Type: Laptop System: HP product: HP Pavilion Notebook v: Type1ProductConfigId serial: <filter> 
Chassis: type: 10 serial: <filter> 
Mobo: HP model: 8093 v: 89.32 serial: <filter> UEFI: Insyde v: F.74 date: 11/18/2015 
Battery:   ID-1: BAT0 charge: 4.3 Wh (16.2%) condition: 26.5/26.5 Wh (100.0%) volts: 14.1 min: 14.8 
model: Hewlett-Packard Primary type: Li-ion serial: N/A status: Discharging 
CPU:       Info: Dual Core model: Intel Core i3-5157U bits: 64 type: MT MCP arch: Broadwell family: 6 
model-id: 3D (61) stepping: 4 microcode: 2F cache: L2: 3 MiB 
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 bogomips: 19952 
Speed: 2396 MHz min/max: 500/2400 MHz Core speeds (MHz): 1: 2396 2: 2394 3: 2395 4: 2394 
Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported 
Type: l1tf mitigation: PTE Inversion 
Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
Type: meltdown mitigation: PTI 
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl and seccomp 
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
Type: spectre_v2 
mitigation: Full generic retpoline, IBPB: conditional, IBRS_FW, STIBP: conditional, RSB filling 
Type: srbds mitigation: Microcode 
Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel Iris Graphics 6100 vendor: Hewlett-Packard driver: i915 v: kernel 
bus-ID: 00:02.0 chip-ID: 8086:162b class-ID: 0300 
Device-2: Chicony HP Truevision HD type: USB driver: uvcvideo bus-ID: 1-3:2 chip-ID: 04f2:b50d 
class-ID: 0e02 serial: <filter> 
Display: x11 server: X.Org 1.20.11 compositor: kwin_x11 driver: loaded: intel 
unloaded: modesetting alternate: fbdev,vesa display-ID: :0 screens: 1 
Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") s-diag: 414mm (16.3") 
Monitor-1: eDP1 res: 1366x768 hz: 60 dpi: 102 size: 340x190mm (13.4x7.5") diag: 389mm (15.3") 
OpenGL: renderer: Mesa Intel Iris Graphics 6100 (BDW GT3) v: 4.6 Mesa 21.1.2 direct render: Yes 
Audio:     Device-1: Intel Broadwell-U Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
bus-ID: 00:03.0 chip-ID: 8086:160c class-ID: 0403 
Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Hewlett-Packard 
driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:9ca0 class-ID: 0403 
Sound Server-1: ALSA v: k5.12.9-zen1-1-zen running: yes 
Sound Server-2: JACK v: 0.125.0 running: no 
Sound Server-3: PulseAudio v: 14.2 running: yes 
Sound Server-4: PipeWire v: 0.3.29 running: no 
Network:   Device-1: Intel Wireless 3165 driver: iwlwifi v: kernel port: 5040 bus-ID: 08:00.0 
chip-ID: 8086:3165 class-ID: 0280 
IF: wlo1 state: up mac: <filter> 
Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Hewlett-Packard driver: r8169 
v: kernel port: 3000 bus-ID: 09:00.0 chip-ID: 10ec:8136 class-ID: 0200 
IF: eno1 state: down mac: <filter> 
Bluetooth: Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 bus-ID: 1-7:3 
chip-ID: 8087:0a2a class-ID: e001 
Report: bt-adapter ID: hci0 rfk-id: 0 state: up address: <filter> 
Drives:    Local Storage: total: 111.79 GiB used: 19.39 GiB (17.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Kingston model: SUV400S37120G size: 111.79 GiB block-size:
physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: SSD serial: <filter> rev: 96R9
scheme: GPT
Partition: ID-1: / raw-size: 111.54 GiB size: 111.54 GiB (100.00%) used: 19.39 GiB (17.4%) fs: btrfs
dev: /dev/sda2 maj-min: 8:2
ID-2: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 546 KiB (0.2%) fs: vfat
dev: /dev/sda1 maj-min: 8:1
ID-3: /home raw-size: 111.54 GiB size: 111.54 GiB (100.00%) used: 19.39 GiB (17.4%) fs: btrfs
dev: /dev/sda2 maj-min: 8:2
ID-4: /var/log raw-size: 111.54 GiB size: 111.54 GiB (100.00%) used: 19.39 GiB (17.4%)
fs: btrfs dev: /dev/sda2 maj-min: 8:2
ID-5: /var/tmp raw-size: 111.54 GiB size: 111.54 GiB (100.00%) used: 19.39 GiB (17.4%)
fs: btrfs dev: /dev/sda2 maj-min: 8:2
Swap:      Kernel: swappiness: 10 (default 60) cache-pressure: 75 (default 100)
ID-1: swap-1 type: zram size: 1.92 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram0
ID-2: swap-2 type: zram size: 1.92 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram1
ID-3: swap-3 type: zram size: 1.92 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram2
ID-4: swap-4 type: zram size: 1.92 GiB used: 0 KiB (0.0%) priority: 32767 dev: /dev/zram3
Sensors:   System Temperatures: cpu: 48.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:      Processes: 233 Uptime: 7m wakeups: 1 Memory: 7.69 GiB used: 2.53 GiB (32.9%) Init: systemd
v: 248 tool: systemctl Compilers: gcc: 11.1.0 clang: 12.0.0 Packages: pacman: 1252 lib: 295
Shell: fish v: 3.2.2 running-in: konsole inxi: 3.3.04

Invalid theme/style

I'm using xfce4.
Now, after runing dwall -s=firewatch i get error

Invalid theme/style, Try again.

Use on laptop screen and monitor

~$ dwall -s beach
[*] Using style : beach
Property "/backdrop/screen1/monitorDP-2-1/workspace0/last-image" does not exist on channel "xfce4-desktop". If a new property should be created, use the --create option.

It works, but it only put the wallpaper on my PC screen, and not my monitor. How can I put it on my monitor too?

invalid image file

so i downloaded heic files from the website, converted them to jpgs, renamed them "0"-"7" and put them in their own folder. how come when i try and set them as the wallpaper i get an "invalid image file" error?

Add the dwall command corresponding to our theme in .bashrc

When I go to sleep, I shutdown my computer when the wallpaper is in night theme. When I wake up, I want to have the day theme, and not have to wait an hour to see the modification.

So, I recommand to add this command to the ~/.bashrc file :

dwall -s <my-theme>

This doesn't affect our cron. But, if we edit it to change the theme, we have to edit the ~/.bashrc file in consequence, with the new theme chosen. So, I suggest to edit the documentation :)

manjaro kde plasma serious problem ! please help !

any of the wallapaper, i mean dynamic wallpaper is not working_i mean changing at all !!
very confused why this happening to kde plasma

please help !
none of the wallpaper is not changing ....
i have seen in your tested DE list there are no KDE PLASMA

Screenshot_20200505_133327

help

Support for Sway

Hi!

Sway WM uses a command called swaybg for setting wallpapers. For example:

swaybg -i /path/to/image

But this command dont starts another process like feh.

If you can do support, I can test it. Or I'mma try coding.

Black wallpaper on Ubuntu 20.04

When I run it on Ubuntu 20.04, I get only a black wallpaper, and no error in the command line. All it tell's me is that it's Running....

I made sure to install all dependencies as described in the Readme, and followed the instructions. Running stock Gnome 3.36.1.

Am I missing something?

Missing dependency for bc

Tried your script but got an error because I did not have bc installed so perhaps mention that it depends on it in the installation.

How to install
$ sudo pacman -S bc feh

Otherwise, great work, love it!
p.s Works on Awesome VM to.

Wallpapers doesn't change automatically

Hi, you have an awesome project. I enjoy using it, except one problem which always gives me an headache.
As the title,the wallpaper doesn't automatically change with time,as it should. I always have to run the dwall -s <wallpaper> every hour. Any help would be greatly appreciated. BTW, I'm using Elementary OS 5.1.7 Hera,based on Ubuntu 18.04 and running kernel 5.4.0-66 under the hood.

Not working for xfce4 (galliumOS)

  1. Wallpaper not changing : echo $DESKTOP_SESSION.
    /usr/bin/startxfce4

  2. Not working on XFCE
    xfconf-query -c xfce4-desktop -m

Start monitoring channel "xfce4-desktop":
set: /backdrop/screen0/monitor0/workspace0/last-image

I updated ./test.sh to have screen and monitor set to 0. Re-ran the test and it still failed.

Before updating it I believe this is how it was resolving

# screen
xrandr --listactivemonitors | awk -F ' ' 'END {print $1}' | tr -d \:
0
# monitor
xrandr --listactivemonitors | awk -F ' ' 'END {print $2}' | tr -d \*+
eDP-1

Nothing Happened on Gnome

Hey, I followed all steps mentioned but nothing happened.
Output of echo $DESKTOP_SESSION is gnome-classic

P.S.- you might want to include command to enable cron in ubuntu and debian in the instructions

Cron job not working in Sway

I'm running dwall on Sway from command line without problems, but I'm not able to get cron job working.

I'm using wiki's recommendations but using a every minute rule due to testing:

*/1 * * * * env PATH=/usr/local/bin:/usr/bin DISPLAY=:0 DESKTOP_SESSION=Sway DBUS_ SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s cliffs

No idea what's wrong. The same command works like a charm when executed on console:

env PATH=/usr/local/bin:/usr/bin DISPLAY=:0 DESKTOP_SESSION=Sway DBUS_ SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" /usr/bin/dwall -s cliffs

env output:

LESS=-R
QT_WAYLAND_DISABLE_WINDOWDECORATION=1
READER=/usr/bin/zathura
I3SOCK=/var/run/user/1000/sway-ipc.1000.1914.sock
LESS_TERMCAP_se=
LESS_TERMCAP_so=
XDG_DATA_HOME=/home/neules/.local/share
XDG_CONFIG_HOME=/home/neules/.config
XCURSOR_SIZE=24
EDITOR=/usr/bin/nvim
XDG_SEAT=seat0
PWD=/home/neules
LOGNAME=neules
XDG_SESSION_TYPE=wayland
SWAYLOG=/home/neules/.local/share/sway/08.01.21_13:09.log
_=/sbin/env
TERMINAL=/usr/bin/footclient
MOTD_SHOWN=pam
GTK2_RC_FILES=/home/neules/.config/gtk-2.0/gtk-2.0
HOME=/home/neules
LANG=es_ES.UTF-8
_JAVA_AWT_WM_NONREPARENTING=1
SWAYSOCK=/var/run/user/1000/sway-ipc.1000.1914.sock
QT_WAYLAND_PLATFORM=wayland
WAYLAND_DISPLAY=wayland-0
XDG_SESSION_CLASS=user
TERM=foot
LESS_TERMCAP_mb=
LESS_TERMCAP_me=
LESS_TERMCAP_md=
USER=neules
VISUAL=/usr/bin/nvim
DISPLAY=:0
LESS_TERMCAP_ue=
SHLVL=1
MOZ_ENABLE_WAYLAND=1
LESS_TERMCAP_us=
QT_IM_MODULE=ibus
XDG_VTNR=2
XDG_SESSION_ID=2
XDG_RUNTIME_DIR=/var/run/user/1000
LC_TIME=ca_ES.utf-8
QT_AUTO_SCREEN_SCALE_FACTOR=1.5
BROWSER=/usr/bin/firefox --new-tab
PATH=/sbin:/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl:/home/neules/.local/bin/bar:/home/neules/.local/bin/wm:/home/neules/.local/bin/
DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
MAIL=/var/spool/mail/neules
COLORTERM=truecolor```

Wallpaper not changing

Good morning! I'm new to linux. Tried to install DWall but the wallpapers arent changing. My OS is Ubuntu.
How can I solve this problem?
Screenshot from 2021-01-14 09-06-21

wallpaper not changing with cron - workaround possible

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
         /////////////////////
             /////////////

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.