Code Monkey home page Code Monkey logo

wallpapermgr's Introduction

warning:I don't use this anymore, you probably shouldn't. Replaced by a smaller/more useful bash script.

wallpapermgr

Configurable tool to manage display/synchronization of wallpapers between computers. Designed to be used in minimal window-managers like dwm, i3, xmonad, etc.

Wallpapers are grouped into tar archives. files are synchronized between computers using git. You may define your own command that determines which archive gets used by default on your computer.

Includes zsh autocomplete script.

Usage

# basics
wallmgr                         # start server in current process
wallmgr ls                      # print configured archives
wallmgr prev/next               # show previous/next wallpaper
wallmgr reload                  # reload config/re-index archive contents
wallmgr stop                    # stop the wallpaper server
wallmgr archive <archive_name>  # use wallpapers from different archive


# add/remove wallpapers from an archive
wallmgr archive <archive_name> \
    --add/--remove file1.png file2.png


# git push/pull an archive's git-repository (to sync)
wallmgr archive <archive_name> \
    --push/--pull


# modify interval
wallmgr -i 20                    # change wallpaper every 20s
wallmgr archive <archive> -i 30  # use archive <archive>, and change wallpaper every 30s

Install

python setup.py install --user  # install for current user only
sudo python setup.py install    # install for all users

Configuration

Configuration is stored in your $XDG_CONFIG_HOME (generally ~/.config/wallpapermgr/config2.yml .

It uses the following format:

# stdout of this SHELL command determines archive to use by default
choose_archive_cmd: ['echo', 'normal_walls']

# the command to display a wallpaper.
# ${wallpaper} will be substituted with the path of
# the wallpaper to display everywhere it appears.
show_wallpaper_cmd: ['feh', '--bg-scale', '${wallpaper}']

# [optional] change wallpapers every N seconds
# (can also be set on commandline with -i/--interval)
change_interval: 30

archives:
   normal:
      archive:      ~/progs/misc/wallpapers/normal_walls.tar
      gitroot:      ~/progs/misc/wallpapers
      gitsource:    ssh://gitbox:/home/gitrepos/misc/wallpapers
      desc:         "wallpapers with a normal aspect ratio (ex: 16:9)"

   wide:
      archive:      ~/progs/misc/wallpapers/wide_walls.tar
      gitroot:      ~/progs/misc/wallpapers
      gitsource:    ssh://gitbox:/home/gitrepos/misc/wallpapers
      desc:         "wallpapers for wide-multimonitor aspect ratios (ex: 32:9, 48:9)"

wallpapermgr's People

Contributors

willjp avatar

Watchers

 avatar

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.