commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
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)
List images between 800 and 16384 pixels wide that can be displayed sized and trimmed on a widescreen display.
Requires the "wallpaper" utility.
Getting current wallpaper on nautilus file-managers
Display some text on the wallpaper especially warning messages
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)"
For all of the jpgs in a directory, determine their size and if below a threshold remove them forcefully.
You can use this in a script which rotates wallpapers from a directory at each login.