Urgent made better

This commit is contained in:
Frank Villaro-Dixon 2013-10-06 19:55:14 +02:00
parent 30f07e03d8
commit 92ee9ff38d
5 changed files with 57 additions and 24 deletions

View file

@ -1,9 +1,12 @@
#!/bin/bash
LIGHT=/sys/class/leds/tpacpi\:\:thinklight/brightness
echo 255 > $LIGHT
sleep .3
echo 0 > $LIGHT
sleep .3
echo 255 > $LIGHT
sleep .3
echo 0 > $LIGHT
STATE=`cat $LIGHT`
INVERSE=`echo 255-$STATE | bc -l`
echo $INVERSE > $LIGHT
sleep .1
echo $STATE > $LIGHT
sleep .1
echo $INVERSE > $LIGHT
sleep .1
echo $STATE > $LIGHT

View file

@ -51,6 +51,11 @@ function deploy_vim()
if [ ! -d "./scripts" ]; then mkdir scripts; fi;
cd scripts
for i in `ls $WAI/vim/scripts`; do ln -s $WAI/vim/scripts/$i ./$i; done
cd ..
if [ ! -d "./ftplugin" ]; then mkdir ftplugin; fi;
cd ftplugin
for i in `ls $WAI/vim/ftplugin`; do ln -s $WAI/vim/ftplugin/$i ./$i; done
} # }}}
function deploy_ssh()
@ -74,6 +79,8 @@ function deploy_mutt()
ln -s $WAI/mutt/colors.test1 ./
ln -s $WAI/mutt/colors.test2 ./
ln -s $WAI/mutt/unlock-pass.sh ./
ln -s $WAI/mutt/account.frank ./
ln -s $WAI/mutt/account.aei ./
} # }}}

View file

@ -7,26 +7,47 @@
############################
set from = "Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>"
set realname = "Frank Villaro-Dixon"
set smtp_url = "smtp://frank_mail@villaro-dixon.eu:587/"
macro index <f2> '<change-folder>imaps://frank_mail@villaro-dixon.eu<enter>'
macro index <f3> '<change-folder>imaps://aei@outlook.unige.ch<enter>'
set imap_user = "frank_mail"
set folder = "imaps://villaro-dixon.eu:993"
# Keep IMAP connection alive by polling intermittently (time in seconds).
set imap_keepalive = 300
set spoolfile = "+INBOX"
mailboxes =INBOX =UNIGE =SPAM =BITFLIP
#Bien ajouter le "+" devant !!!
set postponed = "+Drafts"
# Where to save sent messages ?
set record = "+Sent"
folder-hook 'frank_mail@villaro-dixon.eu' 'source ~/.mutt/account.frank'
folder-hook 'aei@outlook.unige.ch' 'source ~/.mutt/account.aei'
# switch to default account on startup
source ~/.mutt/account.frank
set my_frank_smtp_pass=`~/.mutt/unlock-passC.sh frank_smtp`
set my_frank_imap_pass=`~/.mutt/unlock-passC.sh frank_imap`
set my_aei_smtp_pass=`~/.mutt/unlock-passC.sh aei_smtp`
set my_aei_imap_pass=`~/.mutt/unlock-passC.sh aei_imap`
### MOTS DE PASSE
###source "~/.mutt/unlock-pass.sh |"
#set from = "Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>"
#set realname = "Frank Villaro-Dixon"
#set smtp_url = "smtp://frank_mail@villaro-dixon.eu:587/"
#set hostname = villaro-dixon.eu
#
#set imap_user = "frank_mail"
#set folder = "imaps://villaro-dixon.eu:993"
## Keep IMAP connection alive by polling intermittently (time in seconds).
#set imap_keepalive = 300
#set spoolfile = "+INBOX"
#mailboxes =INBOX =UNIGE =SPAM =BITFLIP
##Bien ajouter le "+" devant !!!
#set postponed = "+Drafts"
## Where to save sent messages ?
#set record = "+Sent"
##Passwords:
####source "gpg -d ~/.mutt/passwords.gpg |"
source "~/.mutt/unlock-pass.sh |"
#source "~/.mutt/unlock-pass.sh |"
# Change the following line to a different editor you prefer.
#set editor = "vim"
@ -36,7 +57,6 @@ set imap_check_subscribed
# Allow Mutt to open new imap connection automatically.
unset imap_passive
set hostname = villaro-dixon.eu
#how often to check
set mail_check = 120
bind index "^" imap-fetch-mail

Binary file not shown.

View file

@ -53,9 +53,9 @@ hi User4 guifg=#a0ee40 guibg=#222222
hi User5 guifg=#eeee40 guibg=#222222
"filetype plugin indent on
filetype plugin on
filetype indent on
"
noremap <S-Space> <Esc>
noremap j gj
@ -86,6 +86,8 @@ set smartindent
set copyindent
set preserveindent
set autoread "lit les modifs externes
"highlight identical words
autocmd CursorMoved *
\ exe printf('match IncSearch /\V\<%s\>/', escape(expand('<cword>'), '/\'))
@ -134,6 +136,7 @@ inoremap § <esc>/<+.\{-1,}+><return>c/+>/e<return>
au BufRead /dev/shm/mutt-* set tw=80 fo+=aw noautoindent
autocmd BufRead,BufNewFile *.tex set tw=80
autocmd BufRead,BufNewFile *.latex set tw=80
"Automatic documentation