From 92ee9ff38decafcb06134e4e8c851ab648c767a5 Mon Sep 17 00:00:00 2001 From: Frank Villaro-Dixon Date: Sun, 6 Oct 2013 19:55:14 +0200 Subject: [PATCH] Urgent made better --- Utils/urgent.sh | 17 ++++++++------- install.sh | 7 +++++++ mutt/muttrc | 50 +++++++++++++++++++++++++++++++-------------- mutt/passwords.gpg | Bin 365 -> 392 bytes vim/vimrc | 7 +++++-- 5 files changed, 57 insertions(+), 24 deletions(-) diff --git a/Utils/urgent.sh b/Utils/urgent.sh index 25e4720..e874d80 100755 --- a/Utils/urgent.sh +++ b/Utils/urgent.sh @@ -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 diff --git a/install.sh b/install.sh index 22729f3..0205623 100755 --- a/install.sh +++ b/install.sh @@ -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 ./ } # }}} diff --git a/mutt/muttrc b/mutt/muttrc index 3c3a6fc..7f70cf1 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -7,26 +7,47 @@ ############################ -set from = "Frank Villaro-Dixon " -set realname = "Frank Villaro-Dixon" -set smtp_url = "smtp://frank_mail@villaro-dixon.eu:587/" +macro index 'imaps://frank_mail@villaro-dixon.eu' +macro index 'imaps://aei@outlook.unige.ch' -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 " +#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 diff --git a/mutt/passwords.gpg b/mutt/passwords.gpg index 411d8b1b9f6cd9851875bf43badb756339a26ffb..7b8ed3a3d1a7026fd4b4746bfd2ec25f89353651 100644 GIT binary patch literal 392 zcmV;30eAj|0Sp5ZA7LL2S(`=y2mq{ZSSg}q3x4m_)RX>@`5|E6>i^iv9N{_)O*F6` z*CtQ*2GS$qSSANR$}j^~Df5x$eg&XHj@Hk7O>#HG_h&|9VGNic5NhE#3>^vEB0ioX z1_B;Z_PwkJ&#w9ue0E5XHwaVl#KG|5lk$3+HM5Zy{C zO4gT(M(ZhM!TJ4QqTwRlcbVJ{)C!3R1Bavtmh8gqyUPb@Fm;)w!%K^V|%-YhS#bmlB#$0wB_N0b-VPGKR^QSsMbwAMBYK=+qdEZ5T~VJ;@pUWw|)+ z5*|_p-n3ungp8K`HBr`hlh6`(MZete&FUk*Us*9J!)xh}EajcZ9;#^Gj(l;r+B_$7)O3fUQAkO{b*9mV#MpA)bJ)HaR ziIhGUF?`n3Jx8uhZR%JqrM2v*+s35mLNaZ7$YPzY`MQ;~sv`8D%@hrm8d8-e{mc*S z5JG}J;Rq?-ldV)QK}PY 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(''), '/\')) @@ -134,6 +136,7 @@ inoremap ยง /<+.\{-1,}+>c/+>/e 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