#!/bin/sh #!/usr/bin/env bash # __author__='Lilian Besson' # __email__='lilian DOT besson AT normale DOT fr' # __date__='mar. 12/03/2013 at 14h:56m:39s ' # __webaddress__='https://sites.google.com/site/naereencorp/conky' # __license__='GPL v3' # # A simple script to give the name account to Conky # # (c) Naereen Corp. 2013 if [ "0$USER" = "0" ]; then export USER=`who | grep -m 1 -Eo "[a-zA-Z]+ "` fi echo "$USER"