various shiht
This commit is contained in:
parent
eb0b784c91
commit
7e67166059
5 changed files with 13 additions and 13 deletions
|
@ -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
|
||||
;;
|
||||
|
||||
|
|
|
@ -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\*\*\*\*\*.*
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -76,3 +76,4 @@ irradiance
|
|||
d'irradiance
|
||||
relayage
|
||||
renewability
|
||||
malloc'ed
|
||||
|
|
|
@ -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 {{{
|
||||
|
|
Loading…
Reference in a new issue