This commit is contained in:
Frank Villaro-Dixon 2014-06-30 19:57:19 +02:00
parent 760cb8f6e0
commit f30e0790b5
3 changed files with 27 additions and 22 deletions

View file

@ -62,30 +62,30 @@ case $1 in
"monitor") "monitor")
case $2 in case $2 in
"extern") "extern")
xrandr --output LVDS2 --off \ xrandr --output LVDS1 --off \
--output VGA2 --auto --rotate normal --output VGA1 --auto --rotate normal
;; ;;
"laptop") "laptop")
xrandr --output LVDS2 --auto --rotate normal \ xrandr --output LVDS1 --auto --rotate normal \
--output VGA2 --off --output VGA1 --off
;; ;;
"dual") "dual")
xrandr --output LVDS2 --auto --rotate normal \ xrandr --output LVDS1 --auto --rotate normal \
--output VGA2 --auto --rotate normal \ --output VGA1 --auto --rotate normal \
--right-of LVDS2 --right-of LVDS1
;; ;;
"programming") "programming")
xrandr --output VGA2 --auto --rotate left \ xrandr --output VGA1 --auto --rotate left \
--output LVDS2 --off --output LVDS1 --off
;; ;;
"pdfpc") "pdfpc")
xrandr --output LVDS2 --auto --rotate normal \ xrandr --output LVDS1 --auto --rotate normal \
--output VGA2 --auto --rotate normal \ --output VGA1 --auto --rotate normal \
--left-of LVDS2 --left-of LVDS1
;; ;;
"clone") "clone")
xrandr --output LVDS2 --auto \ xrandr --output LVDS1 --auto \
--output VGA2 --auto --same-as LVDS2 --output VGA1 --auto --same-as LVDS1
;; ;;
"off") "off")
xset dpms force off xset dpms force off
@ -99,7 +99,7 @@ case $1 in
BATT_PCT=$(acpi -b | cut -d, -f2 | cut -d" " -f2) BATT_PCT=$(acpi -b | cut -d, -f2 | cut -d" " -f2)
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=`/usr/bin/amixer get Master | grep "%" | cut -d' ' -f6` VOLUME=`/usr/bin/amixer get Master | grep "%" | cut -d' ' -f7 | head -n1`
## VOLUME=`amixer get Master | grep '\[' | cut -d' ' -f6` ## VOLUME=`amixer get Master | grep '\[' | cut -d' ' -f6`
SONG=`mpc | head -n 1 | cut -d. -f1` SONG=`mpc | head -n 1 | cut -d. -f1`
@ -136,12 +136,12 @@ case $1 in
;; ;;
"init-all") "init-all")
xrandr | grep "VGA2 disconnected" > /dev/null # xrandr | grep "VGA2 disconnected" > /dev/null
if [ $? -eq 0 ]; then # if [ $? -eq 0 ]; then
$0 monitor laptop # $0 monitor laptop
else # else
$0 monitor extern # $0 monitor extern
fi # fi
sudo killall dhcpcd sudo killall dhcpcd
$0 init-wifi & $0 init-wifi &

View file

@ -19,6 +19,11 @@ SED=/bin/sed
* ^From:.*EachBuyer.* * ^From:.*EachBuyer.*
$SPAMBOX $SPAMBOX
#TVShow time: I dont fucking care
:0
* ^From:.*weekly@tvshowtime.com.*
$SPAMBOX
#Acycles: spam de merde #Acycles: spam de merde
:0 :0
* ^To:.*acycles@vi-di.fr.* * ^To:.*acycles@vi-di.fr.*

View file

@ -166,7 +166,7 @@ autocmd BufRead,BufNewFile *.latex set tw=80 fo+=aw
autocmd BufRead,BufNewFile *.lista set filetype=lisp autocmd BufRead,BufNewFile *.lista set filetype=lisp
autocmd BufRead,BufNewFile *.xml set ts=4 sw=4 autocmd BufRead,BufNewFile *.xml set ts=4 sw=4
autocmd BufRead,BufNewFile *.m set nospell "autocmd BufRead,BufNewFile *.m set nospell
"Automatic documentation "Automatic documentation