Skip to content

Instantly share code, notes, and snippets.

@artur-kink
Created August 17, 2014 03:41
Show Gist options
  • Save artur-kink/2aeabe4d02ba5ad085e9 to your computer and use it in GitHub Desktop.
Save artur-kink/2aeabe4d02ba5ad085e9 to your computer and use it in GitHub Desktop.
Set your user avatar to a random image in your pictures folder, Centos 6.5 . Run at login to randomise image at each login.
#!/bin/bash
randomimage=`ls $HOME/Pictures | grep ".png\|.jpg" | shuf -n 1`
cp $HOME/Pictures/$randomimage $HOME/.face
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment