diff --git a/Utils/octopus.sh b/Utils/octopus.sh index 212c4ff..a7e0662 100755 --- a/Utils/octopus.sh +++ b/Utils/octopus.sh @@ -3,10 +3,6 @@ #OCTOPUS=~/Programmation/Utils/octopus.sh #This octopus handles all the actions like volume up, refresh status bar, etc.. -SNU=2 -VGA=VGA$SNU -LVDS=LVDS$SNU - if [ $# -lt 1 ] then echo "Usage : $0 [vol up|vol down|refresh|monitor extern|monitor laptop|monitor dual...]" @@ -78,6 +74,9 @@ case $1 in "monitor") + SNU=`xrandr | grep VGA | cut -d' ' -f1 | cut -c4` + VGA=VGA$SNU + LVDS=LVDS$SNU case $2 in "extern") xrandr --output $LVDS --off \ @@ -149,12 +148,11 @@ case $1 in ;; "conf-ifaces") - ifconfig eth0 | grep netmask > /dev/null - if [ $? -eq 0 ]; then - sudo ifconfig wlan0 down - true + if lsusb | grep -q 'M105 Optical Mouse'; then + sudo ifconfig eth0 up + sudo ifconfig wlan0 down else - sudo ifconfig wlan0 up + sudo ifconfig wlan0 up fi ;; diff --git a/procmailrc b/procmailrc index c243e5e..535ccdd 100644 --- a/procmailrc +++ b/procmailrc @@ -19,9 +19,9 @@ VACATION="no" # #{{{ # Spam à la poubelle. -#:0 -# * ^Subject:.*(credit|cash|money|debt|sex|sale|loan) -# $MAILDIR/.SPAM/new +:0 + * ^From:.*oscaro.com.* + $MAILDIR/.SPAM/new :0 * ^Subject:\*\*\*\*\*SPAM\*\*\*\*\*.* diff --git a/ssh/config b/ssh/config index 5d963ab..29eecaa 100644 --- a/ssh/config +++ b/ssh/config @@ -9,6 +9,7 @@ IdentityFile ~/.ssh/id_dsa ###Compression yes host vi-di.fr + hostname 178.250.210.95 port 1337 host 178.250.210.95 port 1337 diff --git a/vim/spell/en.utf-8.add b/vim/spell/en.utf-8.add index 3a0b3f8..580763d 100644 --- a/vim/spell/en.utf-8.add +++ b/vim/spell/en.utf-8.add @@ -76,3 +76,4 @@ irradiance d'irradiance relayage renewability +malloc'ed diff --git a/vim/vimrc b/vim/vimrc index c3ef288..b676e97 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -123,7 +123,7 @@ command -nargs=0 -bar Update if &modified \| confirm write \| endif \|endif -nnoremap :Update +""nnoremap :Update "}}} "SKELETONS {{{