Created
July 13, 2012 21:51
-
-
Save mboeh/3107781 to your computer and use it in GitHub Desktop.
backdrop scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# backdroppify - sizes an image to the minimum size which will fill your entire screen & trims overflow | |
bgsize=`xwininfo -root | grep -- -geometry | cut -d' ' -f4 | cut -d+ -f1` | |
convert $1 -resize $bgsize^ -gravity center -extent $bgsize ~/.backdrop.jpg | |
set-backdrop |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
backdroppify `find ~/backdrops -type f | sort -R | head -1` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
display -window root ~/.backdrop.jpg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment