Linux: Difference between revisions
From Federal Burro of Information
Jump to navigationJump to search
No edit summary |
|||
Line 10: | Line 10: | ||
== Desktop == | == Desktop == | ||
=== Set a random image for a directory == | === Set a random image for a directory === | ||
#!/bin/sh | #!/bin/sh |
Revision as of 17:02, 11 March 2013
Password Policy
Password policy
Desktop
Set a random image for a directory
#!/bin/sh set -- /data/pictures/misc/* length=$# random_num=$(( $RANDOM % ($length + 1) )) echo fbsetbg ${!random_num} fbsetbg ${!random_num}