Giter VIP home page Giter VIP logo

x11-wallpaper's Introduction

NAME
    X11::Wallpaper - set X11 wallpaper using best available helper program

VERSION
    version 1.1

SYNOPSIS
      use X11::Wallpaper qw(set_wallpaper);
      set_wallpaper( "./foo.jpg", {
        mode => 'full',   # default, or: aspect, center, tile
        setter => 'feh',  # override setter
        display => ':0.0' # override X display
      } );

      my @cmd = set_wallaper_command(...); # just give me the command

DESCRIPTION
    This module provides an interface for setting the background on X11
    systems, by recruiting a suitable helper script (feh, Esetroot,
    hsetroot, chbg, xli etc.) and providing appropriate options.

METHODS
  set_wallpaper($image_path, %args)
    Sets $image_path as the desktop wallpaper. The following args are
    supported:

    mode
        May be 'full' (fullscreen, stretched to fit - the default), 'tile',
        'center' (do not stretch) or 'aspect' (fullscreen, preserving aspect
        ratio). For the latter two options, the background for any borders
        around the image is set to black.

    setter
        Manually specify the program to use, e.g. 'qiv', provided it is in
        this module's dictionary of commands.

    display
        Override the X display to use, e.g. ':0.0'. Otherwise defaults to
        the value of the DISPLAY environment variable.

  @cmd = set_wallpaper_command($image_path, %args)
    As with "set_wallpaper", except returns the command (as a list of
    arguments) instead of executing it.

CREDITS
    Inspired by the "awsetbg" shell script by Julian Danjou, which in turn
    is derived from "fbsetbg" by Han Boetes.

TODO
    Skip the middle man and code against the X11 libraries directly. But
    that wouldn't be quite as portable...

AUTHOR
    Richard Harris <[email protected]>

COPYRIGHT AND LICENSE
    This software is copyright (c) 2012 by Richard Harris.

    This is free software; you can redistribute it and/or modify it under
    the same terms as the Perl 5 programming language system itself.

x11-wallpaper's People

Watchers

 avatar  avatar  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.