You can use this in a script which rotates wallpapers from a directory at each login.
Changes your desktop background image in gnome. Update the directory to wherever you keep your wallpapers. I like to create a sub-directory in my Wallpaper folder called "cycle" that I use to define the wallpapers I wish to loop in cron. ex:
gconftool-2 -t str -s /desktop/gnome/background/picture_filename "$(find ~/Wallpapers/cycle -type f | shuf -n1)"
Show Sample Output
Display some text on the wallpaper especially warning messages
For all of the jpgs in a directory, determine their size and if below a threshold remove them forcefully.
Getting current wallpaper on nautilus file-managers
Get http://xkcd.com/now image, inverts colors (I prefer dark backgrounds) and set it as wallpaper. You can replace the "convert" part by "wget -q http://imgs.xkcd.com/comics/now.png -O /tmp/now.png" if you prefer light backgrounds. The DISPLAY variable is here to work as a cron job. Show Sample Output
List images between 800 and 16384 pixels wide that can be displayed sized and trimmed on a widescreen display. Requires the "wallpaper" utility. Show Sample Output
Checks if the aspect ratio is approximately 1.6 (16:10) or ~1.77777778 (16:9). Requires mpv_identify from mpv project https://github.com/mpv-player/mpv/blob/master/TOOLS/mpv_identify.sh (this replaces mplayer -identify, or midentify) Show Sample Output
aha (https://github.com/theZiz/aha) is a program to convert ANSI escape sequence of a unix terminal to HTML code. wkhtmltoimage is a program to convert html file to image file. This one-liner will convert text file to image file, and set the image file as wallpaper by feh without temporary file.
commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.
Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.
» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10
Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):
Subscribe to the feed for: