Some things for mutt and bash
This commit is contained in:
parent
a0dc2c45ce
commit
d058e7f6ac
8 changed files with 39 additions and 3 deletions
13
Utils/unige.sh
Executable file
13
Utils/unige.sh
Executable file
|
@ -0,0 +1,13 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
sudo killall wpa_supplicant
|
||||||
|
|
||||||
|
sudo wpa_supplicant -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf &
|
||||||
|
|
||||||
|
#sleep 10
|
||||||
|
|
||||||
|
#Ugly
|
||||||
|
#sudo ifconfig wlan0 10.9.3.208 netmask 255.255.252.0
|
||||||
|
|
||||||
|
#sudo ip route add 10.9.0.0/22 dev wlan0
|
||||||
|
#sudo ip route add default via 10.9.0.1 dev wlan0
|
12
bashrc
12
bashrc
|
@ -16,6 +16,16 @@ PROMPT_COMMAND='history -a'
|
||||||
complete -cf sudo
|
complete -cf sudo
|
||||||
complete -cf man
|
complete -cf man
|
||||||
|
|
||||||
|
man() {
|
||||||
|
env LESS_TERMCAP_mb=$'\E[01;31m' \
|
||||||
|
LESS_TERMCAP_md=$'\E[01;38;5;74m' \
|
||||||
|
LESS_TERMCAP_me=$'\E[0m' \
|
||||||
|
LESS_TERMCAP_se=$'\E[0m' \
|
||||||
|
LESS_TERMCAP_so=$'\E[38;5;246m' \
|
||||||
|
LESS_TERMCAP_ue=$'\E[0m' \
|
||||||
|
LESS_TERMCAP_us=$'\E[04;38;5;146m' \
|
||||||
|
man "$@"
|
||||||
|
}
|
||||||
|
|
||||||
#####ON DEFINIT LES COULEURS
|
#####ON DEFINIT LES COULEURS
|
||||||
red='\033[31m'
|
red='\033[31m'
|
||||||
|
@ -91,6 +101,8 @@ alias sudpo='sudo'
|
||||||
|
|
||||||
#alias pacman='pacman-color'
|
#alias pacman='pacman-color'
|
||||||
alias pacmacn='pacman'
|
alias pacmacn='pacman'
|
||||||
|
# '[r]emove [o]rphans' - recursively remove ALL orphaned packages
|
||||||
|
alias pacro="/usr/bin/pacman -Qtdq > /dev/null && sudo /usr/bin/pacman -Rns \$(/usr/bin/pacman -Qtdq | sed -e ':a;N;\$!ba;s/\n/ /g')"
|
||||||
|
|
||||||
alias grep='grep --color'
|
alias grep='grep --color'
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
wallpaper_path=/home/frank/Pictures/wallpapers/
|
wallpaper_path=/home/frank/Pictures/wallpapers/
|
||||||
image=$(ls $wallpaper_path | grep -E '(jpg|png)$' | sort -R | tail -1)
|
image=$(ls $wallpaper_path | grep -E '(jpg|png)$' | sort -R | tail -1)
|
||||||
feh --bg-scale $wallpaper_path/$image &
|
feh --bg-fill $wallpaper_path/$image &
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
Alt - [1-8] - Changer vue
|
Alt - [1-8] - Changer vue
|
||||||
Ctrl - Alt - [1-8] - Changer la fenetre de vue
|
Ctrl - Alt - [1-8] - Changer la fenetre de vue
|
||||||
|
|
||||||
|
Alt-Shift-Space - Remetre en plein eécran
|
||||||
|
|
||||||
M+p spawn dmenu
|
M+p spawn dmenu
|
||||||
M+S+Return spawn a terminal
|
M+S+Return spawn a terminal
|
||||||
M+S+c kill window
|
M+S+c kill window
|
||||||
|
|
|
@ -32,6 +32,7 @@ static const Rule rules[] = {
|
||||||
/* layout(s) */
|
/* layout(s) */
|
||||||
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
|
static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
|
||||||
static const int nmaster = 1; /* number of clients in master area */
|
static const int nmaster = 1; /* number of clients in master area */
|
||||||
|
/* coller au bords, ou pas */
|
||||||
static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
|
static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
|
||||||
|
|
||||||
static const Layout layouts[] = {
|
static const Layout layouts[] = {
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
open(MAIL, "+<$ARGV[0]") || die "$0: Can't open $ARGV[0]: $!";
|
open(MAIL, "+<$ARGV[0]") || die "$0: Can't open $ARGV[0]: $!";
|
||||||
while (<MAIL>) {
|
while (<MAIL>) {
|
||||||
unless (/^> ?-- ?$/) {
|
unless (/^>>? ?-- ?$/) {
|
||||||
push(@purged, $_);
|
push(@purged, $_);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
|
@ -54,6 +54,13 @@ set sort_aux = 'reverse-last-date-received'
|
||||||
set auto_tag = yes
|
set auto_tag = yes
|
||||||
set abort_unmodified=ask-yes #réponse non modifiée
|
set abort_unmodified=ask-yes #réponse non modifiée
|
||||||
|
|
||||||
|
set fast_reply="yes" # Yeah, I know what person I want to reply to!
|
||||||
|
|
||||||
|
set attribution="On %d, that guy, %n, wrote %c characters saying:"
|
||||||
|
|
||||||
|
set indent_string=">"
|
||||||
|
|
||||||
|
|
||||||
ignore "Authentication-Results:"
|
ignore "Authentication-Results:"
|
||||||
ignore "DomainKey-Signature:"
|
ignore "DomainKey-Signature:"
|
||||||
ignore "DKIM-Signature:"
|
ignore "DKIM-Signature:"
|
||||||
|
@ -87,7 +94,7 @@ set sort_alias = alias
|
||||||
set reverse_alias = yes
|
set reverse_alias = yes
|
||||||
source $alias_file
|
source $alias_file
|
||||||
|
|
||||||
set date_format="%d-%m-%y %T"
|
set date_format="%y-%m-%d %T"
|
||||||
set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"
|
set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"
|
||||||
|
|
||||||
set sleep_time=0
|
set sleep_time=0
|
||||||
|
|
|
@ -10,6 +10,7 @@ host 178.250.210.95
|
||||||
host 192.168.42.1
|
host 192.168.42.1
|
||||||
port 1337
|
port 1337
|
||||||
host git.vi-di.fr
|
host git.vi-di.fr
|
||||||
|
user git
|
||||||
port 1337
|
port 1337
|
||||||
|
|
||||||
host aeipi
|
host aeipi
|
||||||
|
|
Loading…
Reference in a new issue