bashrc mutt alias

This commit is contained in:
Frank Villaro-Dixon 2013-10-15 20:59:15 +02:00
parent a61e1aefc9
commit 6cfa665f62
6 changed files with 29 additions and 9 deletions

View file

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
set -x
#OCTOPUS=~/Programmation/Utils/octopus.sh #OCTOPUS=~/Programmation/Utils/octopus.sh
#This octopus handles all the actions like volume up, refresh status bar, etc.. #This octopus handles all the actions like volume up, refresh status bar, etc..
@ -88,7 +88,9 @@ case $1 in
else else
$0 monitor extern $0 monitor extern
fi fi
$0 init-wifi
$0 init-wifi &
$0 init-ethernet &
$0 init-mouse $0 init-mouse
$0 wallpaper $0 wallpaper
;; ;;
@ -98,8 +100,10 @@ case $1 in
;; ;;
"init-wifi") "init-wifi")
sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf & sudo killall wpa_supplicant
sudo ifconfig wlan0 up &
sudo dhcpcd wlan0 & sudo dhcpcd wlan0 &
sudo wpa_supplicant -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf
;; ;;
"init-ethernet") "init-ethernet")
sudo ifconfig eth0 up & sudo ifconfig eth0 up &

12
bashrc
View file

@ -367,6 +367,18 @@ function xournal() {
fi fi
} }
function mutt() {
if [ $# -eq 0 ]; then
if [ "$(pidof mutt)" ]; then
echo -e "Mutt already running !\nLaunch it with -R !"
else
/usr/bin/mutt
fi;
else
/usr/bin/mutt $@
fi;
}
# }}} # }}}
SSHAGENT=/usr/bin/ssh-agent SSHAGENT=/usr/bin/ssh-agent

View file

@ -1,6 +1,6 @@
set from="aei-cui@unige.ch" set from="aei-cui@unige.ch"
set realname="Association des Etudiants en Informatique" set use_from
set hostname="unige.ch" set realname="Association des Étudiants en Informatique"
set folder="imaps://aei@outlook.unige.ch:993/" set folder="imaps://aei@outlook.unige.ch:993/"
#set imap_user="aei" #set imap_user="aei"
@ -12,7 +12,7 @@ set signature="~/.mutt/signature.aei"
set smtp_url="smtp://aei@outlook.unige.ch:587" set smtp_url="smtp://aei@outlook.unige.ch:587"
my_hdr X-URL: http://aei.unige.ch my_hdr X-URL: http://aei.unige.ch
my_hdr X-Sender: Frank my_hdr X-Author: Frank
set smtp_pass=$my_aei_stmp_pass set smtp_pass=$my_aei_stmp_pass
set imap_pass=$my_aei_imap_pass set imap_pass=$my_aei_imap_pass

View file

@ -11,6 +11,8 @@ set signature="~/.signature"
set smtp_url="smtp://frank_mail@villaro-dixon.eu:587" set smtp_url="smtp://frank_mail@villaro-dixon.eu:587"
my_hdr X-URL: http://frank.villaro-dixon.eu my_hdr X-URL: http://frank.villaro-dixon.eu
my_hdr X-Message-Flag: This message violates the USA PATRIOT Act (HR 3162), section 811(c). Intercepted by CARNIVORE/3.0
my_hdr Reply-By: Wed, 1 Apr 2000 12:00:00 -0500
set smtp_pass = $my_frank_smtp_pass set smtp_pass = $my_frank_smtp_pass
set imap_pass = $my_frank_imap_pass set imap_pass = $my_frank_imap_pass

View file

@ -40,12 +40,12 @@ color header yellow black "^Organization:"
color header yellow black "^Organisation:" color header yellow black "^Organisation:"
color header yellow black "^User-Agent:" color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine" color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:" color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:" color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:" color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:" color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM" color header red black "^X-SpamProbe: SPAM"
color header red black "^X-Author:"
# Coloring quoted text - coloring the first 7 levels: # Coloring quoted text - coloring the first 7 levels:

View file

@ -17,7 +17,6 @@ export PATH=~/.my_utils/:$PATH
source ~/.bashrc source ~/.bashrc
$OCTOPUS init-all
#Java #Java
wmname LG3D wmname LG3D
@ -30,15 +29,18 @@ setxkbmap -model pc104 -layout ch -variant fr -option compose:lwin
# xmodmap ~/.Xmodmap # xmodmap ~/.Xmodmap
#fi #fi
$OCTOPUS init-all 1>&2 /dev/shm/Octopus_logs
while true; do while true; do
$OCTOPUS refresh $OCTOPUS refresh
sleep 50 sleep 50
done & done &
while true; do while true; do
$OCTOPUS wallpaper
sleep 240 sleep 240
$OCTOPUS wallpaper
done & done &
xautolock -time 60 -locker "systemctl suspend" & xautolock -time 60 -locker "systemctl suspend" &
redshift -l 46:6& redshift -l 46:6&