Skip to content

Instantly share code, notes, and snippets.

@jordanwade90
Created April 30, 2014 01:57
Show Gist options
  • Save jordanwade90/0326a3418e4ca99e76c6 to your computer and use it in GitHub Desktop.
Save jordanwade90/0326a3418e4ca99e76c6 to your computer and use it in GitHub Desktop.
Print the name of a random wallpaper from $home/wallpapers. (Used by my xinitrc.)
#!/usr/local/plan9/bin/rc
9 ls -F `{du -a $home/wallpapers | awk '{print $2}'} | grep -v '/$' | 9 fortune /dev/stdin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment