Am I stupid?

This commit is contained in:
Frank Villaro-Dixon 2013-07-02 00:47:58 +02:00
parent 74c3a53c31
commit 150eab0b4c
3 changed files with 3 additions and 3 deletions

View file

@ -54,7 +54,7 @@ case $1 in
BATT_TIME=$(acpi -b | cut -d, -f3 | cut -d" " -f2) BATT_TIME=$(acpi -b | cut -d, -f3 | cut -d" " -f2)
#BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' ) #BATT=$( acpi -b | sed 's/.*[charg.|], \([0-9]*\)%.*/\1/gi' )
VOLUME=`amixer get Master | tail -n 2 | head -n 1 | cut -d' ' -f7` VOLUME=`amixer get Master | tail -n 2 | head -n 1 | cut -d' ' -f7`
MEM=`awk '/MemTotal/ {printf( "%.0fMb", $2 / 1024 )}' /proc/meminfo` MEM=`awk '/MemFree/ {printf( "%.0fMb", $2 / 1024 )}' /proc/meminfo`
xsetroot -name "$VOLUME :: $MEM :: $BATT_PCT $BATT_TIME :: $DATE" xsetroot -name "$VOLUME :: $MEM :: $BATT_PCT $BATT_TIME :: $DATE"
;; ;;

2
bashrc
View file

@ -2,7 +2,7 @@
shopt -s checkwinsize shopt -s checkwinsize
#Launch startx when login #Launch startx when login
[[ -z $DISPLAY && $XDG_VTNR -le 4 ]] && exec startx #[[ -z $DISPLAY && $XDG_VTNR -le 4 ]] && exec startx
shopt -s histappend shopt -s histappend
PROMPT_COMMAND='history -a' PROMPT_COMMAND='history -a'

View file

@ -24,7 +24,7 @@ wmname LG3D
while true; do while true; do
$OCTOPUS refresh $OCTOPUS refresh
sleep 2 sleep 10
done & done &
exec /home/frank/Programmation/dotfiles/dwm/dwm exec /home/frank/Programmation/dotfiles/dwm/dwm