various shiht

This commit is contained in:
Frank Villaro-Dixon 2015-12-04 19:22:19 +01:00
parent eb0b784c91
commit 7e67166059
5 changed files with 13 additions and 13 deletions

View file

@ -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
;;

View file

@ -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\*\*\*\*\*.*

View file

@ -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

View file

@ -76,3 +76,4 @@ irradiance
d'irradiance
relayage
renewability
malloc'ed

View file

@ -123,7 +123,7 @@ command -nargs=0 -bar Update if &modified
\| confirm write
\| endif
\|endif
nnoremap <silent> <C-S> :<C-u>Update<CR>
""nnoremap <silent> <C-S> :<C-u>Update<CR>
"}}}
"SKELETONS {{{