wallswitch 0.5.0

randomly set wallpapers for dual monitor Linux desktop.
Documentation
wallswitch-0.5.0 has been yanked.

wallswitch

#-----------#------------#
|           |            |
| Monitor 1 | Monitor 2  |
|           |            |
#-----------#------------#

Randomly set wallpapers for dual monitor Linux desktop (two monitors arranged horizontally).

Definir papéis de parede aleatoriamente para desktop Linux com monitor duplo (dois monitores na horizontal).

Edit the configuration file: "/home/user_name/.config/wallswitch/wallswitch.json"

The contents of the configuration file can be displayed with the command:

cat ~/.config/wallswitch/wallswitch.json | jq

{
  "interval": 1800,
  "min_dimension": 800,
  "wallpaper": "/home/user_name/wallswitch.jpg",
  "desktop": "gnome-xorg",
  "dirs": [
    "/home/user_name/Figures",
    "/home/user_name/Images",
    "/home/user_name/Wallpapers",
    "/home/user_name/Pictures",
    "/home/user_name/Imagens",
    "/usr/share/wallpapers",
    "/usr/share/backgrounds",
    "/usr/share/antergos/wallpapers",
    "/tmp/teste"
  ]
}

The default configuration file.

Add or remove directory paths that contain image files.

The interval between two wallpapers is given in seconds.

Desktops

Make changes to the source code.

git clone https://github.com/claudiofsr/wallswitch.git

cd wallswitch

Edit the file: 'src/desktops.rs'.

To build and install from source, run the following command:

cargo b -r && cargo install --path=.

Options:

gnome

See the function:

fn set_gnome_wallpaper()

xfce

See the function:

fn set_xfce_wallpaper()

Monitor 1: "/backdrop/screen0/monitorDP-0/workspace0/last-image"

Monitor 2: "/backdrop/screen0/monitorDP-2/workspace0/last-image"

openbox

See the function:

fn set_openbox_wallpaper()

Dependencies

imagemagick (image viewing/manipulation program).

feh (fast and light imlib2-based image viewer).