gitpan / x11-wallpaper Goto Github PK
View Code? Open in Web Editor NEWRead-only release history for X11-Wallpaper
Home Page: http://metacpan.org/release/X11-Wallpaper
License: Other
Read-only release history for X11-Wallpaper
Home Page: http://metacpan.org/release/X11-Wallpaper
License: Other
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.