octopus (battery time), dwm (terminal) and install.sh
This commit is contained in:
parent
ebaf16be91
commit
74c3a53c31
3 changed files with 6 additions and 4 deletions
|
@ -50,11 +50,13 @@ case $1 in
|
|||
|
||||
"refresh")
|
||||
DATE=`date +"%A %d, %H:%M:%S - %s"`
|
||||
BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' )
|
||||
BATT_PCT=$(acpi -b | cut -d, -f2 | cut -d" " -f2)
|
||||
BATT_TIME=$(acpi -b | cut -d, -f3 | cut -d" " -f2)
|
||||
#BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' )
|
||||
VOLUME=`amixer get Master | tail -n 2 | head -n 1 | cut -d' ' -f7`
|
||||
MEM=`awk '/MemTotal/ {printf( "%.0fMb", $2 / 1024 )}' /proc/meminfo`
|
||||
|
||||
xsetroot -name "$VOLUME :: $MEM :: $BATT :: $DATE"
|
||||
xsetroot -name "$VOLUME :: $MEM :: $BATT_PCT $BATT_TIME :: $DATE"
|
||||
;;
|
||||
|
||||
"wallpaper")
|
||||
|
|
|
@ -53,7 +53,7 @@ static const Layout layouts[] = {
|
|||
|
||||
/* commands */
|
||||
static const char *dmenucmd[] = { "dmenu_run", "-fn", font, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbgcolor, "-sf", selfgcolor, NULL };
|
||||
static const char *termcmd[] = { "gnome-terminal", NULL };
|
||||
static const char *termcmd[] = { "roxterm", NULL };
|
||||
static const char *webcmd[] = { "firefox", NULL };
|
||||
static const char *mailcmd[] = { "thunderbird", NULL };
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ cd skeletons
|
|||
for i in `ls $WAI/vim/skeletons`; do ln -s $WAI/vim/skeletons/$i ./$i; done
|
||||
|
||||
cd ~
|
||||
if [ -d "Programmation"]; then mkdir Programmation; fi;
|
||||
if [ -d "Programmation" ]; then mkdir Programmation; fi;
|
||||
cd ~/Programmation
|
||||
if [ ! -d "./Utils" ]; then mkdir Utils; fi;
|
||||
cd ./Utils
|
||||
|
|
Loading…
Reference in a new issue