Commit 23e8fa16 authored by Mattia Rizzolo's avatar Mattia Rizzolo

Initial commit

parents
background yes
use_xft yes
xftfont ubuntu:size=8
default_color white
xftalpha 1
update_interval 1
total_run_times 0
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 200
maximum_width 200
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
default_shade_color black
default_outline_color black
alignment top_left
gap_x 1140
gap_y 30
no_buffers yes
uppercase no
cpu_avg_samples 4
net_avg_samples 2
override_utf8_locale yes
use_spacer none
out_to_console no
TEXT
# ora grande
${offset -10}${voffset -10}${font arial black:size=35}${time %l:%M %p}
# data
${voffset -20}${font arial black:size=30}${time %e}${font arial black:size=10} ${voffset -20}${time %A}
# uptime
${voffset -2}${goto 70}${font}UP: $uptime${voffset 5}
# calendario
#${font LucidaConsole:size=8.5}${texeci 600 cal}
# info sul sistema:
${voffset -95}${goto 160}${color #80a0ff}${font Syco:size=75}T$font${voffset -2}
#${font Webdings:size=30}!$font$color${voffset -34}
${font Webdings:size=30}$font$color${voffset -34}
${goto 47}$sysname on $machine${voffset -1}
${goto 47}kernel $kernel${voffset -1}
#${goto 47}${pre_exec whoami} @ $nodename${voffset 5}
# governor+MHz
${goto 11}${color #ccff00}${font StyleBats:size=17}Q$font$color${voffset -6}${goto 40}${execi 5 cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor}: ${freq}MHz${voffset 6}
# uso cpu
#${font Lucida Handwriting:size=8}${color #0055ff}CPU: ${color #ff2200}${exec cat /proc/omnibook/temperature | awk '{print $3}'}C$color${goto 107}$cpu%${goto 137}${cpubar cpu0}$font
${font Lucida Handwriting:size=8}${color #0055ff}CPU: ${color #ff2200}${exec sensors|head -n 3|tail -n 1|awk '{print $2}'|sed -e "s/^+//"}$color
#
#cpu0: ${goto 107}${cpu cpu0}%${goto 137}${cpubar cpu0}$font
#cpu1: ${goto 107}${cpu cpu1}%${goto 137}${cpubar cpu1}$font
#
cpu0:${goto 45}cpu1:${goto 85}cpu2:${goto 125}cpu3:${goto 165}cpu4:
${cpugraph cpu0 20,40 FFFFFF FF0000 scale -t}${cpugraph cpu1 20,40 FFFFFF FF0000 scale -t}${cpugraph cpu2 20,40 FFFFFF FF0000 scale -t}${cpugraph cpu3 20,40 FFFFFF FF0000 scale -t}${cpugraph cpu4 20,40 FFFFFF FF0000 scale -t}$font
#
${goto 15}${top name 1}${font Lucida Handwriting:size=8}${goto 115}${top cpu 1}%${goto 160}${top mem 1}%$font
${goto 15}${top name 2}${font Lucida Handwriting:size=8}${goto 115}${top cpu 2}%${goto 160}${top mem 2}%$font
${goto 15}${top name 3}${font Lucida Handwriting:size=8}${goto 115}${top cpu 3}%${goto 160}${top mem 3}%$font
# uso mem
${font Lucida Handwriting:size=8}${color #0055ff}RAM: ${color #ff2200}$mem$color${goto 107}$memperc%${goto 137}$membar$font
${goto 15}${top_mem name 1}${font Lucida Handwriting:size=8}${goto 115}${top_mem mem 1}%${goto 160}${top_mem cpu 1}%$font
${goto 15}${top_mem name 2}${font Lucida Handwriting:size=8}${goto 115}${top_mem mem 2}%${goto 160}${top_mem cpu 2}%$font
${goto 15}${top_mem name 3}${font Lucida Handwriting:size=8}${goto 115}${top_mem mem 3}%${goto 160}${top_mem cpu 3}%$font
# temperatura disco
${font Lucida Handwriting:size=8}${color #0055ff}HD: ${color #ff2200}${hddtemp /dev/sda}°C$color${font Lucida Handwriting:size=8} ${diskio_read /dev/sda} / ${diskio_write /dev/sda}$font
# spazio occupato root /
${goto 15}ROOT:${goto 50}${font Lucida Handwriting:size=8}${color #00ff00}${fs_free /}$color${goto 107}${fs_free_perc /}%${goto 137}${fs_bar /}$font
# spazio occupato home /home
${goto 15}HOME:${goto 50}${font Lucida Handwriting:size=8}${color #00ff00}${fs_free /home}$color${goto 107}${fs_free_perc /home}%${goto 137}${fs_bar /home}$font
# spazio occupato /media/Dati
${goto 15}DATI:${goto 50}${font Lucida Handwriting:size=8}${color #00ff00}${fs_free /media/Dati}$color${goto 107}${fs_free_perc /media/Dati}%${goto 137}${fs_bar /media/Dati}$font
# spazio occupato swap
#${goto 15}S:${goto 32}${font Lucida Handwriting:size=8}${color #ff2200}$swap$color${goto 107}${swapperc}%${goto 137}$swapbar
# connessioni attive:
#${font Lucida Handwriting:size=8}${color #0055ff}N° CONNESSIONI: ${tcp_portmon 1 65535 count}$font$color
#${goto 15}${tcp_portmon 1 65535 rhost 0} ${alignr} ${tcp_portmon 1 65535 rservice 0}
#${goto 15}${tcp_portmon 1 65535 rhost 1} ${alignr} ${tcp_portmon 1 65535 rservice 1}
# informazioni su wlan0
${font Lucida Handwriting:size=8}${color #0055ff}WiFi IP:$color$alignr${addr wlan0}$font
${goto 15}ESSID:$alignr${wireless_essid wlan0}
${goto 15}Quality: ${font Lucida Handwriting:size=8}${wireless_link_qual_perc wlan0}%${goto 107}${wireless_link_bar wlan0}
${goto 15}${font PizzaDude Bullets:size=9}w$font U: ${font Lucida Handwriting:size=8}${upspeedf wlan0}kb/s${goto 117}${font PizzaDude Bullets:size=9}O$font TU: ${font Lucida Handwriting:size=8}${totalup wlan0}
${goto 15}${font PizzaDude Bullets:size=9}s$font D: ${font Lucida Handwriting:size=8}${downspeedf wlan0}kb/s${goto 117}${font PizzaDude Bullets:size=9}U$font TD: ${font Lucida Handwriting:size=8}${totaldown wlan0}$font
# informazioni su eth0
${font Lucida Handwriting:size=8}${color #0055ff}LAN IP:$color$alignr${addr eth0}$font
${goto 15}${font PizzaDude Bullets:size=9}w$font U: ${font Lucida Handwriting:size=8}${upspeedf eth0}kb/s${goto 117}${font PizzaDude Bullets:size=9}O$font TU: ${font Lucida Handwriting:size=8}${totalup eth0}
${goto 15}${font PizzaDude Bullets:size=9}s$font D: ${font Lucida Handwriting:size=8}${downspeedf eth0}kb/s${goto 117}${font PizzaDude Bullets:size=9}U$font TD: ${font Lucida Handwriting:size=8}${totaldown eth0}$font
# informazioni su ppp0
#${font Lucida Handwriting:size=8}${color #0055ff}MODEM IP:$color$alignr${addr ppp0}$font
#${goto 15}${font PizzaDude Bullets:size=9}w$font U: ${font Lucida Handwriting:size=8}${upspeedf ppp0}kb/s${goto 117}${font PizzaDude Bullets:size=9}O$font TU: ${font Lucida Handwriting:size=8}${totalup ppp0}
#${goto 15}${font PizzaDude Bullets:size=9}s$font D: ${font Lucida Handwriting:size=8}${downspeedf ppp0}kb/s${goto 117}${font PizzaDude Bullets:size=9}U$font TD: ${font Lucida Handwriting:size=8}${totaldown ppp0}$font
# informazioni su usb0
${goto 15}${font PizzaDude Bullets:size=9}w$font U: ${font Lucida Handwriting:size=8}${upspeedf usb0}kb/s${goto 117}${font PizzaDude Bullets:size=9}O$font TU: ${font Lucida Handwriting:size=8}${totalup usb0}
${goto 15}${font PizzaDude Bullets:size=9}s$font D: ${font Lucida Handwriting:size=8}${downspeedf usb0}kb/s${goto 117}${font PizzaDude Bullets:size=9}U$font TD: ${font Lucida Handwriting:size=8}${totaldown usb0}$font
#${goto 15}Quality: ${font Lucida Handwriting:size=8}${wireless_link_qual_perc ppp0}%${goto 107}${wireless_link_bar ppp0}
#${font Lucida Handwriting:size=8}${color #0055ff}WAN IP:$color$alignr${texeci 600 sh /home/syco/.conky/extern_ip}${execi 60 cat /home/syco/.conky/file/ip.txt}
[debomatic-armhf]
fqdn = debomatic-armhf.debian.net
incoming = /srv/debomatic-armhf
login = debomatic
method = scp
allow_unsigned_uploads = 0
allow_dcut = 1
scp_compress = 1
[debomatic-amd64]
fqdn = debomatic-amd64.debian.net
incoming = /srv/debomatic-amd64
login = debomatic
method = scp
allow_unsigned_uploads = 0
allow_dcut = 1
scp_compress = 1
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb http://dl.google.com/linux/talkplugin/deb/ stable main
#!/bin/bash
dotfiles=(vimrc
zshrc
pbuilderrc
quiltrc
dput.cf
conkyrc
pastebinit.xml
xchat2/xchat.conf xchat2/servlist_.conf xchat2/notify.conf xchat2/chanserv-mod.py
VirtualBox/VirtualBox.xml
mutt/muttrc mutt/mutt.sh mutt/signature mutt/colors mutt/gpg irssi/config
)
files=(pbuilder/hooks
pbuilder/scripts
)
emptydotdirs=()
emptydirs=(pbuilder/result)
repos=(google-talkplugin.list)
reposdeb=()
packages=(geany
google-talkplugin
filezilla
samba
gimp
inkscape
cheese
chromium-browser
xchat
eatmydata #to use pbuilder quickly
build-essential
debhelper
ubuntu-dev-tools
pbuilder
lintian
gnupg2 gnupg-agent
)
personal () {
echo ""
}
# This function create files, directories and symlinks, as needed
files () {
echo "Creating empty dirs..."
for dir in ${emptydotdirs[@]}; do
if [ ! -a $HOME/.${dir} ] ; then
mkdir -pv $HOME/.${dir}
fi
done
for dir in ${emptydirs[@]}; do
if [ ! -a $HOME/${dir} ] ; then
mkdir -pv $HOME/${dir}
fi
done
echo "Creating symlinks..."
for file in ${dotfiles[@]}; do
# for files
if [ -f $HOME/settings/${file} ] ; then
if [ -a $HOME/.${file} ] ; then
rm $HOME/.${file}
fi
if (echo ${file} | grep -q '/' && [ ! -d $HOME/.$(echo ${file} | cut -f 1 -d '/') ]) ; then
mkdir $HOME/.$(echo ${file} | cut -f 1 -d '/')
fi
ln -s $HOME/settings/${file} $HOME/.${file}
fi
# for directories
if [ -d $HOME/settings/${file} ] ; then
#file=$(echo $file | cut -f 1 -d '/')
if [ -a $HOME/.${file} ] ; then
rm -r $HOME/.{file}
fi
ln -s $HOME/settings/${file} $HOME/.${file}
fi
done
for file in ${files[@]}; do
#for files
if [ -f $HOME/settings/${file} ] ; then
if [ -a $HOME/${file} ] ; then
rm $HOME/${file}
fi
ln -s $HOME/settings/${file} $HOME/${file}
fi
# for directories
if [ -d $HOME/settings/${file} ] ; then
if [ -a $HOME/${file} ] ; then
rm -r $HOME/${file}
fi
ln -s $HOME/settings/${file} $HOME/${file}
fi
done
}
## add repositories, as needed
#add-repo () {
# echo "alpha feature! not tested! it can kill you, your mother and your cat!"
# echo "do you still want to run this script? [y/N]"
# read reply
# if [ ${reply} != 'y' !! ${reply} != 'Y' ]
# then
# echo "you made the better choice, brother!"
# exit 2
# echo "Adding required repositories..."
# for repo in ${repos[@]}; do
# tmp=`grep '^deb' ${repo}|tail -n 1|awk {'print $2'}`
# echo repo: $tmp
# dir="/etc/apt/sources.list.d/*"
# if $( grep -v '${tmp}' ${dir} )
# then
# echo "Adding \"${repo}\" repository"
# sudo cp ${repo} /etc/apt/sources.list.d/
# fi
# done
# for repo in ${reposdeb[@]}; do
# if [ ! $(grep -r ${repo} /etc/apt/sources.list*) ]
# then
# echo "Adding \"${repo}\" repository"
# sudo add-apt-repository --yes ${repo}
# fi
# done
#}
## install the required packages, as needed
install () {
echo "Updating repository information..."
sudo apt-get update
echo "Installing packages..."
package=$(echo ${packages[@]} | tr '\n' ' ')
sudo apt-get install -y ${package}
}
while getopts ":a" opt; do
case $opt in
a)
#ADDREPO=1
echo "The add-repo function is broken. Going on..."
;;
*)
echo "Unrecognised option: -$OPTARG."
echo "Valid options are:"
echo " -a Add repositories"
exit 1
;;
esac
done
files
#if (ADDREPO==1); then add-repo ; fi
install
personal
exit 0
servers = (
{ address = "irc.ubuntu.com"; chatnet = "Ubuntu"; port = "8001"; },
{ address = "eu.irc6.net"; chatnet = "IRCnet"; port = "6667"; },
{ address = "open.ircnet.net"; chatnet = "IRCnet"; port = "6667"; },
{ address = "irc.efnet.org"; chatnet = "EFNet"; port = "6667"; },
{
address = "irc.undernet.org";
chatnet = "Undernet";
port = "6667";
},
{ address = "irc.dal.net"; chatnet = "DALnet"; port = "6667"; },
{
address = "irc.quakenet.org";
chatnet = "QuakeNet";
port = "6667";
},
{ address = "irc.oftc.net"; chatnet = "OFTC"; port = "6667"; },
{
address = "irc.gamesurge.net";
chatnet = "GameSurge";
port = "6667";
},
{ address = "irc.webchat.org"; chatnet = "WebChat"; port = "6667"; },
{ address = "irc.rizon.net"; chatnet = "Rizon"; port = "6667"; },
{ address = "irc.link-net.org"; chatnet = "LinkNet"; port = "6667"; },
{ address = "silc.silcnet.org"; chatnet = "SILC"; port = "706"; }
);
chatnets = {
IRCnet = {
type = "IRC";
max_kicks = "4";
max_msgs = "5";
max_whois = "4";
max_query_chans = "5";
};
EFNet = {
type = "IRC";
max_kicks = "4";
max_msgs = "3";
max_whois = "1";
};
Undernet = {
type = "IRC";
max_kicks = "1";
max_msgs = "3";
max_whois = "30";
};
DALnet = {
type = "IRC";
max_kicks = "4";
max_msgs = "3";
max_whois = "30";
};
QuakeNet = {
type = "IRC";
max_kicks = "1";
max_msgs = "3";
max_whois = "30";
};
OFTC = {
type = "IRC";
max_kicks = "1";
max_msgs = "3";
max_whois = "30";
};
GameSurge = {
type = "IRC";
max_kicks = "1";
max_msgs = "3";
max_whois = "30";
};
WebChat = {
type = "IRC";
max_kicks = "1";
max_msgs = "3";
max_whois = "30";
};
Rizon = {
type = "IRC";
max_kicks = "1";
max_msgs = "3";
max_whois = "30";
};
LinkNet = {
type = "IRC";
max_kicks = "1";
max_msgs = "3";
max_whois = "30";
};
SILC = { type = "SILC"; };
Ubuntu = { type = "IRC"; };
};
channels = (
{ name = "#irssi"; chatnet = "ircnet"; autojoin = "No"; },
{ name = "silc"; chatnet = "silc"; autojoin = "No"; }
);
aliases = {
J = "join";
WJOIN = "join -window";
WQUERY = "query -window";
LEAVE = "part";
BYE = "quit";
EXIT = "quit";
SIGNOFF = "quit";
DESCRIBE = "action";
DATE = "time";
HOST = "userhost";
LAST = "lastlog";
SAY = "msg *";
WI = "whois";
WII = "whois $0 $0";
WW = "whowas";
W = "who";
N = "names";
M = "msg";
T = "topic";
C = "clear";
CL = "clear";
K = "kick";
KB = "kickban";
KN = "knockout";
BANS = "ban";
B = "ban";
MUB = "unban *";
UB = "unban";
IG = "ignore";
UNIG = "unignore";
SB = "scrollback";
UMODE = "mode $N";
WC = "window close";
WN = "window new hide";
SV = "say Irssi $J ($V) - http://irssi.org/";
GOTO = "sb goto";
CHAT = "dcc chat";
RUN = "SCRIPT LOAD";
CALC = "exec - if command -v bc >/dev/null 2>&1\\; then printf '%s=' '$*'\\; echo '$*' | bc -l\\; else echo bc was not found\\; fi";
SBAR = "STATUSBAR";
INVITELIST = "mode $C +I";
Q = "QUERY";
"MANUAL-WINDOWS" = "set use_status_window off;set autocreate_windows off;set autocreate_query_level none;set autoclose_windows off;set reuse_unused_windows on;save";
EXEMPTLIST = "mode $C +e";
ATAG = "WINDOW SERVER";
UNSET = "set -clear";
RESET = "set -default";
};
statusbar = {
# formats:
# when using {templates}, the template is shown only if it's argument isn't
# empty unless no argument is given. for example {sb} is printed always,
# but {sb $T} is printed only if $T isn't empty.
items = {
# start/end text in statusbars
barstart = "{sbstart}";
barend = "{sbend}";
topicbarstart = "{topicsbstart}";
topicbarend = "{topicsbend}";
# treated "normally", you could change the time/user name to whatever
time = "{sb $Z}";
user = "{sb {sbnickmode $cumode}$N{sbmode $usermode}{sbaway $A}}";
# treated specially .. window is printed with non-empty windows,
# window_empty is printed with empty windows
window = "{sb $winref:$tag/$itemname{sbmode $M}}";
window_empty = "{sb $winref{sbservertag $tag}}";
prompt = "{prompt $[.15]itemname}";
prompt_empty = "{prompt $winname}";
topic = " $topic";
topic_empty = " Irssi v$J - http://www.irssi.org";
# all of these treated specially, they're only displayed when needed
lag = "{sb Lag: $0-}";
act = "{sb Act: $0-}";
more = "-- more --";
};
# there's two type of statusbars. root statusbars are either at the top
# of the screen or at the bottom of the screen. window statusbars are at
# the top/bottom of each split window in screen.
default = {
# the "default statusbar" to be displayed at the bottom of the window.
# contains all the normal items.
window = {
disabled = "no";
# window, root
type = "window";
# top, bottom
placement = "bottom";
# number
position = "1";
# active, inactive, always
visible = "active";
# list of items in statusbar in the display order
items = {
barstart = { priority = "100"; };
time = { };
user = { };
window = { };
window_empty = { };
lag = { priority = "-1"; };
act = { priority = "10"; };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
};
# statusbar to use in inactive split windows
window_inact = {
type = "window";
placement = "bottom";
position = "1";
visible = "inactive";
items = {
barstart = { priority = "100"; };
window = { };
window_empty = { };
more = { priority = "-1"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
};
# we treat input line as yet another statusbar :) It's possible to
# add other items before or after the input line item.
prompt = {
type = "root";
placement = "bottom";
# we want to be at the bottom always
position = "100";
visible = "always";
items = {
prompt = { priority = "-1"; };
prompt_empty = { priority = "-1"; };
# treated specially, this is the real input line.
input = { priority = "10"; };
};
};
# topicbar
topic = {
type = "root";
placement = "top";
position = "1";
visible = "always";
items = {
topicbarstart = { priority = "100"; };
topic = { };
topic_empty = { };
topicbarend = { priority = "100"; alignment = "right"; };
};
};
};
};
settings = {
core = {
real_name = "Mattia Rizzolo";
user_name = "mattia";
nick = "mattia";
};
"fe-text" = { actlist_sort = "refnum"; };
};
## Theme kindly inspired from
## http://nongeekshandbook.blogspot.ie/2009/03/mutt-color-configuration.html
## Colours for items in the index
color index brightcyan black ~N
color index brightred black ~O
color index brightyellow black ~F
color index black green ~T
color index brightred black ~D
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D
## Highlights inside the body of a message.
## URLS.
color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
## Email addresses.
color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
## Header
color header green black "^from:"
color header green black "^to:"
color header green black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"
color header brightcyan black "^subject:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
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-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"
## Coloring quoted text - coloring the first 7 levels:
color quoted cyan black
color quoted1 yellow black
color quoted2 red black
color quoted3 green black
color quoted4 cyan black
color quoted5 yellow black
color quoted6 red black
color quoted7 green black
## Default color definitions
#color hdrdefault white green
color signature brightmagenta black
color indicator black cyan
color attachment black green
color error red black
color message white black
color search brightwhite magenta
color status brightyellow blue
color tree brightblue black
color normal white black
color tilde green black
color bold brightyellow black
#color underline magenta black
color markers brightcyan black
## Colour definitions when on a mono screen
mono bold bold
mono underline underline
mono indicator reverse
#reference: http://dev.mutt.org/trac/wiki/MuttGuide/UseGPG
set pgp_decode_command="gpg %?p?--passphrase-fd 0? --no-verbose --batch --output - %f"
set pgp_verify_command="gpg --no-verbose --batch --output - --verify %s %f"
set pgp_decrypt_command="gpg --passphrase-fd 0 --no-verbose --batch --output - %f"
set pgp_sign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_clearsign_command="gpg --no-verbose --batch --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_encrypt_only_command="pgpewrap gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust --encrypt-to 0xC9C40C31 -- -r %r -- %f"
set pgp_encrypt_sign_command="pgpewrap gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust --encrypt-to 0xC9C40C31 -- -r %r -- %f"
set pgp_import_command="gpg --no-verbose --import -v %f"
set pgp_export_command="gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_pubring_command="gpg --no-verbose --batch --with-colons --list-keys %r"
set pgp_list_secring_command="gpg --no-verbose --batch --with-colons --list-secret-keys %r"
# specify the uid to use when encrypting/signing
set pgp_sign_as=0xB9444540
# this set the number of seconds to keep in memory the passpharse used to encrypt/sign
# the more the less secure it will be
set pgp_timeout=60
# it's a regexp used against the GPG output: if it matches some line of the output
# then mutt considers the message a good signed one (ignoring the GPG exit code)
set pgp_good_sign="^gpg: Good signature from"
# mutt uses by default PGP/GPG to sign/encrypt messages
# if you want to use S-mime instead set the smime_is_default variable to yes
# automatically sign all outgoing messages
set crypt_autosign
set pgp_autosign=yes
# sign only replies to signed messages
set crypt_replysign
# automatically encrypt outgoing messages
set crypt_autoencrypt=no
# encrypt only replies to signed messages
set crypt_replyencrypt=no
# encrypt and sign replies to encrypted messages
set crypt_replysignencrypted=yes
# automatically verify the sign of a message when opened
set crypt_verify_sig=yes
#!/bin/sh
# Reference: http://www.mail-archive.com/mutt-users@mutt.org/msg36375.html
pwds=`gpg --decrypt ~/.mutt/passwd`
eval "$pwds"
exec mutt "$@"
#For reference: https://wiki.archlinux.org/index.php/Mutt
# https://help.ubuntu.com/community/MuttAndGmail
set realname = "Mattia Rizzolo"
set from = mattia@mapreri.org
set use_from = yes
set imap_user = mapreri@gmail.com
set imap_pass = $ACCT1_PASS
set folder = imaps://imap.gmail.com/
set spoolfile = +INBOX
mailboxes = +INBOX
set header_cache = ~/.mutt/cache
set message_cachedir = ~/.mutt/cache
set postponed = +[Gmail]/Drafts
unset imap_passive
set imap_keepalive = 300
set mail_check = 30
unset record
set smtp_url = smtps://$imap_user:$imap_pass@smtp.gmail.com
set edit_headers = yes
set signature = "~/.mutt/signature"
set mailcap_path = ~/.mutt/mailcap
set pager_context = 5
push <show-version>
source ~/.mutt/gpg # gpg settings
source ~/.mutt/colors # for colors settings
## Alias (for address)
set alias_file = "~/.mutt/aliases"
set sort_alias = alias
set reverse_alias = yes
source $alias_file
## Header
# Extra info.
my_hdr X-Info: Keep It Simple, Stupid.
# OS Info.
my_hdr X-Operating-System: `uname -s`, kernel `uname -r`, inside `lsb_release -ds` `lsb_release -cs`.
# This header only appears to MS Outlook users
my_hdr X-Message-Flag: WARNING!! Outlook sucks. A lot.
# Custom Mail-User-Agent ID.
my_hdr User-Agent: Every email client sucks, this one just sucks less.
## Make mutt colored!
## Colours for items in the index
color index brightcyan black ~N
color index brightred black ~O
color index brightyellow black ~F
color index black green ~T
color index brightred black ~D
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D
## Highlights inside the body of a message.
## URLs
color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
## Email addresses.
color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
## Header
color header green black "^from:"
color header green black "^to:"
color header green black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"