parent
b90a55dfc4
commit
fe44b9d495
|
@ -27,8 +27,8 @@ URxvt*scrollBar: false
|
|||
URxvt.perl-ext-common : matcher,keyboard-select,clipboard
|
||||
|
||||
|
||||
URxvt.keysym.M-v: perl:clipboard:paste
|
||||
URxvt.keysym.M-C-v: perl:clipboard:paste_escaped
|
||||
URxvt.keysym.C-M-v: perl:clipboard:paste
|
||||
URxvt.keysym.C-M-c: perl:clipboard:paste_escaped
|
||||
! URxvt.clipboard.copycmd: xsel -ib
|
||||
URxvt.clipboard.pastecmd: xsel -op
|
||||
|
||||
|
|
|
@ -3,10 +3,11 @@ dropbox
|
|||
dropbox-cli
|
||||
emacs-mediawiki-bzr
|
||||
emacs-yasnippet
|
||||
fortune-mod-tbbt
|
||||
grub
|
||||
movgrab
|
||||
rxvt-unicode-patched
|
||||
submarine
|
||||
trash-cli
|
||||
urxvt-keyboard-select
|
||||
urxvt-perls-git
|
||||
vlc-ncurses
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
bashmount
|
||||
cpufrequtils
|
||||
dropbox
|
||||
dropbox-cli
|
||||
emacs-mediawiki-bzr
|
||||
|
|
|
@ -3,7 +3,6 @@ acpi
|
|||
alsa-utils
|
||||
antiword
|
||||
archlinux-keyring
|
||||
asciidoc
|
||||
aspell-en
|
||||
aspell-fr
|
||||
atool
|
||||
|
@ -21,6 +20,7 @@ bzip2
|
|||
bzr
|
||||
calc
|
||||
catdvi
|
||||
cifs-utils
|
||||
cmus
|
||||
coreutils
|
||||
cpufrequtils
|
||||
|
@ -29,13 +29,12 @@ cronie
|
|||
cryptsetup
|
||||
ctags
|
||||
cyrus-sasl
|
||||
dash
|
||||
device-mapper
|
||||
d-feet
|
||||
dhclient
|
||||
dhcpcd
|
||||
diffutils
|
||||
docbook-xml
|
||||
docbook-xsl
|
||||
dosfstools
|
||||
dropbox
|
||||
dropbox-cli
|
||||
|
@ -58,6 +57,7 @@ findutils
|
|||
flashplugin
|
||||
flex
|
||||
fortune-mod
|
||||
fortune-mod-tbbt
|
||||
gawk
|
||||
gcc
|
||||
gcc-libs
|
||||
|
@ -69,7 +69,6 @@ git
|
|||
glibc
|
||||
gnuplot
|
||||
gparted
|
||||
gprolog
|
||||
graphicsmagick
|
||||
grep
|
||||
grub
|
||||
|
@ -107,6 +106,7 @@ latex2rtf
|
|||
less
|
||||
libaio
|
||||
libavc1394
|
||||
libcap-ng
|
||||
libcdaudio
|
||||
libdc1394
|
||||
libdvdcss
|
||||
|
@ -128,9 +128,9 @@ libstdc++5
|
|||
libsystemd
|
||||
libtool
|
||||
libusbx
|
||||
libwbclient
|
||||
libzen
|
||||
licenses
|
||||
lighttpd
|
||||
linux
|
||||
linux-lts
|
||||
logrotate
|
||||
|
@ -139,7 +139,6 @@ lshw
|
|||
ltrace
|
||||
luakit
|
||||
lvm2
|
||||
lxterminal
|
||||
lzo2
|
||||
m4
|
||||
make
|
||||
|
@ -147,6 +146,7 @@ man-db
|
|||
man-pages
|
||||
mdadm
|
||||
mediainfo
|
||||
mencoder
|
||||
mercurial
|
||||
mjpegtools
|
||||
movgrab
|
||||
|
@ -198,6 +198,7 @@ sdparm
|
|||
sed
|
||||
shadow
|
||||
slock
|
||||
smbclient
|
||||
soundtouch
|
||||
splint
|
||||
strace
|
||||
|
@ -211,9 +212,12 @@ sysstat
|
|||
systemd-tools
|
||||
sysvbanner
|
||||
sysvinit
|
||||
talloc
|
||||
tar
|
||||
task
|
||||
tcc
|
||||
tcpdump
|
||||
tdb
|
||||
texi2html
|
||||
texinfo
|
||||
texlive-genericextra
|
||||
|
@ -227,7 +231,7 @@ ttf-dejavu
|
|||
unrar
|
||||
unzip
|
||||
upx
|
||||
urxvt-keyboard-select
|
||||
urxvt-perls-git
|
||||
usbutils
|
||||
util-linux
|
||||
valgrind
|
||||
|
@ -256,11 +260,11 @@ xf86-video-ati
|
|||
xf86-video-vesa
|
||||
xfsprogs
|
||||
xorg-server
|
||||
xorg-twm
|
||||
xorg-xev
|
||||
xorg-xinit
|
||||
xorg-xmessage
|
||||
xorg-xmodmap
|
||||
xorg-xprop
|
||||
xorg-xrandr
|
||||
xorg-xrdb
|
||||
xsel
|
||||
|
|
|
@ -107,6 +107,7 @@ mplayer2
|
|||
mtools
|
||||
mutt
|
||||
nasm
|
||||
nawk
|
||||
ncdu
|
||||
net-tools
|
||||
nmap
|
||||
|
@ -166,6 +167,7 @@ vlock
|
|||
w3m
|
||||
wget
|
||||
which
|
||||
wipe
|
||||
wireless_tools
|
||||
wpa_supplicant
|
||||
wv
|
||||
|
|
|
@ -9,7 +9,6 @@ antiword
|
|||
apr
|
||||
apr-util
|
||||
archlinux-keyring
|
||||
asciidoc
|
||||
aspell
|
||||
aspell-en
|
||||
aspell-fr
|
||||
|
@ -37,6 +36,7 @@ cairomm
|
|||
calc
|
||||
catdvi
|
||||
cdparanoia
|
||||
cifs-utils
|
||||
cloog
|
||||
cmus
|
||||
compositeproto
|
||||
|
@ -50,6 +50,7 @@ ctags
|
|||
curl
|
||||
cyrus-sasl
|
||||
damageproto
|
||||
dash
|
||||
db
|
||||
dbus
|
||||
dbus-core
|
||||
|
@ -64,8 +65,6 @@ diffutils
|
|||
dirmngr
|
||||
djvulibre
|
||||
dnssec-anchors
|
||||
docbook-xml
|
||||
docbook-xsl
|
||||
dosfstools
|
||||
dri2proto
|
||||
dtach
|
||||
|
@ -132,7 +131,6 @@ gnutls
|
|||
gparted
|
||||
gpgme
|
||||
gpm
|
||||
gprolog
|
||||
graphicsmagick
|
||||
grep
|
||||
groff
|
||||
|
@ -211,6 +209,7 @@ libavc1394
|
|||
libbluray
|
||||
libcaca
|
||||
libcap
|
||||
libcap-ng
|
||||
libcdaudio
|
||||
libcddb
|
||||
libcdio
|
||||
|
@ -300,6 +299,7 @@ libva
|
|||
libvdpau
|
||||
libvorbis
|
||||
libvpx
|
||||
libwbclient
|
||||
libwebkit
|
||||
libwmf
|
||||
libx11
|
||||
|
@ -332,7 +332,6 @@ libxxf86dga
|
|||
libxxf86vm
|
||||
libzen
|
||||
licenses
|
||||
lighttpd
|
||||
linux
|
||||
linux-api-headers
|
||||
linux-firmware
|
||||
|
@ -349,7 +348,6 @@ luafilesystem
|
|||
luajit
|
||||
luakit
|
||||
lvm2
|
||||
lxterminal
|
||||
lzo2
|
||||
m4
|
||||
make
|
||||
|
@ -358,6 +356,7 @@ man-pages
|
|||
mcpp
|
||||
mdadm
|
||||
mediainfo
|
||||
mencoder
|
||||
mercurial
|
||||
mesa
|
||||
mime-types
|
||||
|
@ -464,6 +463,7 @@ sg3_utils
|
|||
shadow
|
||||
shared-mime-info
|
||||
slock
|
||||
smbclient
|
||||
soundtouch
|
||||
speex
|
||||
splint
|
||||
|
@ -480,9 +480,12 @@ systemd-tools
|
|||
sysvbanner
|
||||
sysvinit
|
||||
t1lib
|
||||
talloc
|
||||
tar
|
||||
task
|
||||
tcc
|
||||
tcpdump
|
||||
tdb
|
||||
texi2html
|
||||
texinfo
|
||||
texlive-bin
|
||||
|
@ -510,8 +513,6 @@ videoproto
|
|||
vim
|
||||
vim-runtime
|
||||
vlock
|
||||
vte
|
||||
vte-common
|
||||
w3m
|
||||
weechat
|
||||
wget
|
||||
|
@ -557,13 +558,13 @@ xorg-mkfontscale
|
|||
xorg-server
|
||||
xorg-server-common
|
||||
xorg-setxkbmap
|
||||
xorg-twm
|
||||
xorg-xauth
|
||||
xorg-xev
|
||||
xorg-xinit
|
||||
xorg-xkbcomp
|
||||
xorg-xmessage
|
||||
xorg-xmodmap
|
||||
xorg-xprop
|
||||
xorg-xrandr
|
||||
xorg-xrdb
|
||||
xorg-xset
|
||||
|
|
|
@ -38,11 +38,11 @@ cdparanoia
|
|||
cifs-utils
|
||||
clementine
|
||||
cloog
|
||||
cmake
|
||||
cmus
|
||||
colord
|
||||
compositeproto
|
||||
coreutils
|
||||
cpufrequtils
|
||||
cracklib
|
||||
cronie
|
||||
cryptsetup
|
||||
|
@ -70,6 +70,7 @@ dnssec-anchors
|
|||
docbook-xml
|
||||
docbook-xsl
|
||||
dosfstools
|
||||
doxygen
|
||||
dri2proto
|
||||
dtach
|
||||
e2fsprogs
|
||||
|
@ -138,6 +139,7 @@ gnupg
|
|||
gnuplot
|
||||
gnutls
|
||||
gparted
|
||||
gperf
|
||||
gpgme
|
||||
gpm
|
||||
grep
|
||||
|
@ -352,9 +354,11 @@ lirc-utils
|
|||
logrotate
|
||||
lsof
|
||||
lua
|
||||
luadoc
|
||||
luafilesystem
|
||||
luajit
|
||||
luakit
|
||||
lualogging
|
||||
lvm2
|
||||
m4
|
||||
make
|
||||
|
@ -379,6 +383,7 @@ musicbrainz
|
|||
mutagen
|
||||
mutt
|
||||
nasm
|
||||
nawk
|
||||
ncdu
|
||||
ncurses
|
||||
neon
|
||||
|
@ -411,7 +416,9 @@ pcmciautils
|
|||
pcre
|
||||
perl
|
||||
perl-error
|
||||
perl-test-pod
|
||||
perl-xml-parser
|
||||
perl-yaml-syck
|
||||
pidgin
|
||||
pinentry
|
||||
pixman
|
||||
|
@ -510,6 +517,7 @@ w3m
|
|||
wget
|
||||
which
|
||||
wildmidi
|
||||
wipe
|
||||
wireless_tools
|
||||
wpa_supplicant
|
||||
wv
|
||||
|
@ -532,6 +540,7 @@ xfsprogs
|
|||
xineramaproto
|
||||
xkeyboard-config
|
||||
xmlrpc-c
|
||||
xmlto
|
||||
xorg-bdftopcf
|
||||
xorg-fonts-alias
|
||||
xorg-fonts-encodings
|
||||
|
|
|
@ -33,10 +33,10 @@ set continue=true
|
|||
set display_artist_sort_name=false
|
||||
set dsp.alsa.device=default
|
||||
set dsp.oss.device=
|
||||
set format_current= %a - %y. %l -%n. %t
|
||||
set format_current= %a - %y. %l - %n. %t
|
||||
set format_playlist= %-18%a %4y. %-25%l %3n. %t%= %d
|
||||
set format_playlist_va= %-25%A %3n. %t (%a)%= %y %d
|
||||
set format_title=%a - %y. %l -%n. %t
|
||||
set format_playlist_va= %-18%a %-25%l %t%= %d
|
||||
set format_title=%a - %y. %l - %n. %t
|
||||
set format_trackwin=%4y %3n. %t%= %d [%{codec} %{bitrate} kbps]
|
||||
set format_trackwin_va=%3n. %t (%a)%= %y %d
|
||||
set id3_default_charset=ISO-8859-1
|
||||
|
|
|
@ -69,13 +69,13 @@ layouts =
|
|||
awful.layout.suit.tile.left,
|
||||
awful.layout.suit.tile.bottom,
|
||||
awful.layout.suit.tile.top,
|
||||
awful.layout.suit.fair,
|
||||
awful.layout.suit.fair.horizontal,
|
||||
awful.layout.suit.spiral,
|
||||
awful.layout.suit.spiral.dwindle,
|
||||
-- awful.layout.suit.fair,
|
||||
-- awful.layout.suit.fair.horizontal,
|
||||
-- awful.layout.suit.spiral,
|
||||
-- awful.layout.suit.spiral.dwindle,
|
||||
awful.layout.suit.max,
|
||||
awful.layout.suit.max.fullscreen,
|
||||
awful.layout.suit.magnifier,
|
||||
-- awful.layout.suit.magnifier,
|
||||
awful.layout.suit.floating
|
||||
}
|
||||
-- }}}
|
||||
|
@ -444,7 +444,7 @@ clientkeys = awful.util.table.join(
|
|||
-- end),
|
||||
-- awful.key({ modkey, "Control" }, "n", awful.client.restore),
|
||||
|
||||
awful.key({ modkey, "Shift" }, "m",
|
||||
awful.key({ modkey, "Mod1" }, "m",
|
||||
function (c)
|
||||
c.maximized_horizontal = not c.maximized_horizontal
|
||||
c.maximized_vertical = not c.maximized_vertical
|
||||
|
|
|
@ -53,12 +53,15 @@
|
|||
|
||||
(define-abbrev-table 'text-mode-abbrev-table
|
||||
'(
|
||||
("Arch" "Arch Linux" nil 1)
|
||||
("ArchL" "Arch Linux" nil 1)
|
||||
("ArchW" "Arch Wiki" nil 1)
|
||||
("ac" "avec" nil 0)
|
||||
("afaict" "as far as I can tell" nil 0)
|
||||
("afaik" "as far as I know" nil 0)
|
||||
("ajd" "aujourd'hui" nil 2)
|
||||
("arch" "architecture" nil 1)
|
||||
("app" "application" nil 1)
|
||||
("apps" "applications" nil 1)
|
||||
("archi" "architecture" nil 1)
|
||||
("asap" "as soon as possible" nil 1)
|
||||
("atm" "at the moment" nil 1)
|
||||
("autom" "automatique" nil 2)
|
||||
|
@ -71,17 +74,22 @@
|
|||
("chai" "je sais" nil 1)
|
||||
("chq" "chaque" nil 1)
|
||||
("chui" "je suis" nil 1)
|
||||
("coeur" "cœur" nil 1)
|
||||
("coeurs" "cœurs" nil 1)
|
||||
("config" "configuration" nil 1)
|
||||
("configs" "configurations" nil 1)
|
||||
("cpd" "cependant" nil 2)
|
||||
("dc" "donc" nil 1)
|
||||
("deja" "déjà" nil 1)
|
||||
("dep" "dépendance" nil 1)
|
||||
("deps" "dépendances" nil 1)
|
||||
("dico" "Dictionnaire" nil 2)
|
||||
("dep" "dependency" nil 1)
|
||||
("deps" "dependencies" nil 1)
|
||||
("dico" "dictionnaire" nil 2)
|
||||
("dispo" "disponible" nil 1)
|
||||
("dispos" "disponibles" nil 1)
|
||||
("distro" "distribution" nil 1)
|
||||
("ds" "dans" nil 1)
|
||||
("dép" "dépendance" nil 1)
|
||||
("déps" "dépendances" nil 1)
|
||||
("eg" "e.g." nil 3)
|
||||
("etre" "être" nil 1)
|
||||
("ex" "exemple" nil 3)
|
||||
|
@ -90,19 +98,25 @@
|
|||
("ficheirs" "fichiers" nil 0)
|
||||
("fyi" "for your information" nil 0)
|
||||
("gd" "grand" nil 3)
|
||||
("glinux" "GNU/Linux" nil 1)
|
||||
("gnu" "GNU" nil 1)
|
||||
("ie" "i.e." nil 1)
|
||||
("iirc" "if I recall correctly" nil 1)
|
||||
("imho" "in my humble opinion" nil 1)
|
||||
("imo" "in my opinion" nil 1)
|
||||
("infos" "informations" nil 1)
|
||||
("lab" "laboratory" nil 1)
|
||||
("labo" "laboratoire" nil 1)
|
||||
("latex" "LaTeX" nil 10)
|
||||
("linux" "GNU/Linux" nil 1)
|
||||
("lgtps" "longtemps" nil 1)
|
||||
("linux" "Linux" nil 1)
|
||||
("lng" "language" nil 1)
|
||||
("lq" "lorsque" nil 3)
|
||||
("lql" "lequel" nil 2)
|
||||
("lqls" "lesquels" nil 1)
|
||||
("mail" "e-mail" nil 1)
|
||||
("mm" "même" nil 16)
|
||||
("mmt" "moment" nil 16)
|
||||
("mnt" "maintenant" nil 2)
|
||||
("ms" "mais" nil 4)
|
||||
("nb" "nombre" nil 0)
|
||||
|
@ -110,13 +124,18 @@
|
|||
("nchui" "je ne suis" nil 1)
|
||||
("ns" "nous" nil 1)
|
||||
("nvm" "nevermind" nil 1)
|
||||
("nya" "il n'y a" nil 6)
|
||||
("nyen" "il n'y en" nil 1)
|
||||
("oeil" "œil" nil 1)
|
||||
("oeuf" "œuf" nil 1)
|
||||
("oeufs" "œufs" nil 1)
|
||||
("pb" "problème" nil 4)
|
||||
("pbs" "problèmes" nil 1)
|
||||
("pcq" "parce que" nil 3)
|
||||
("pdt" "pendant" nil 2)
|
||||
("pe" "peut-être" nil 2)
|
||||
("pgrm" "programme" nil 1)
|
||||
("pgrms" "programmes" nil 1)
|
||||
("pgrm" "program" nil 1)
|
||||
("pgrms" "programs" nil 1)
|
||||
("plsu" "plus" nil 3)
|
||||
("poru" "pour" nil 1)
|
||||
("pq" "pourquoi" nil 2)
|
||||
|
@ -125,6 +144,7 @@
|
|||
("progs" "programmes" nil 1)
|
||||
("ptt" "petit" nil 1)
|
||||
("pê" "peut-être" nil 2)
|
||||
("pê" "peut-être" nil 2)
|
||||
("qd" "quand" nil 4)
|
||||
("qq" "quelque" nil 1)
|
||||
("qqch" "quelque chose" nil 1)
|
||||
|
@ -132,12 +152,13 @@
|
|||
("qqns" "quelques-uns" nil 1)
|
||||
("qqs" "quelques" nil 1)
|
||||
("quelque" "quelque" nil 1)
|
||||
("soeur" "sœur" nil 1)
|
||||
("soeurs" "sœurs" nil 1)
|
||||
("ss" "sous" nil 1)
|
||||
("ssi" "si et seulement si" nil 1)
|
||||
("stp" "s'il te plaît" nil 1)
|
||||
("svp" "s'il vous plaît" nil 1)
|
||||
("teh" "the" nil 1)
|
||||
("tex" "TeX" nil 2)
|
||||
("tjrs" "toujours" nil 4)
|
||||
("tps" "temps" nil 5)
|
||||
("tres" "très" nil 4)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# contributor: Mads D. Kristensen <madsdk@gmail.com>
|
||||
# contributor : Song Qiang <tsiangsung@gmail.com>
|
||||
# contributor : Pierre Neidhardt <ambrevar at gmail dot com> 2012-03-17
|
||||
# contributor : Pierre Neidhardt <ambrevar at gmail dot com> 2012-08-22
|
||||
# key: article
|
||||
# group: skeleton
|
||||
# name: \documentclass{article} ...
|
||||
|
@ -9,6 +9,8 @@
|
|||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
\documentclass[11pt]{article}
|
||||
\usepackage[utf8]{inputenc}
|
||||
\usepackage{eurosym}
|
||||
\DeclareUnicodeCharacter{20AC}{\euro{}}
|
||||
% \usepackage[T1]{fontenc}
|
||||
% \usepackage{lmodern}
|
||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||
|
|
|
@ -86,12 +86,10 @@ fi
|
|||
[ -e "/usr/bin/zathura" ] && alias zat='zathura --fork'
|
||||
|
||||
## Xrandr
|
||||
alias xmulti='xrandr --output VGA1 --auto --right-of $(xrandr | grep -A1 current | sed -n 2p | awk '"'"'{print $1}'"'"')'
|
||||
alias xmultioff="xrandr --output VGA1 --off"
|
||||
alias xmorphsw='xrandr --output $(xrandr | grep -A1 current | sed -n 2p | awk '"'"'{print $1}'"'"') --transform 1.24,0.16,-124,0,1.24,0,0,0.000316,1'
|
||||
alias xmorphnone='xrandr --output $(xrandr | grep -A1 current | sed -n 2p | awk '"'"'{print $1}'"'"') --transform none'
|
||||
alias xmorphzo='xrandr --output $(xrandr | grep -A1 current | sed -n 2p | awk '"'"'{print $1}'"'"') --scale 1.2x1.2'
|
||||
alias xmorphzi='xrandr --output $(xrandr | grep -A1 current | sed -n 2p | awk '"'"'@{print $1}'"'"') --scale 0.8x0.8'
|
||||
alias xmorphsw='xrandr --output $(xrandr | sed -n "/current/{n;p}" | cut -f1 -d" ") --transform 1.24,0.16,-124,0,1.24,0,0,0.000316,1'
|
||||
alias xmorphnone='xrandr --output $(xrandr | sed -n "/current/{n;p}" | cut -f1 -d" ") --transform none'
|
||||
alias xmorphzo='xrandr --output $(xrandr | sed -n "/current/{n;p}" | cut -f1 -d" ") --scale 1.2x1.2'
|
||||
alias xmorphzi='xrandr --output $(xrandr | sed -n "/current/{n;p}" | cut -f1 -d" ") --scale 0.8x0.8'
|
||||
|
||||
##==============================================================================
|
||||
## Zsh power aliases
|
||||
|
@ -127,7 +125,8 @@ if [ -e "/usr/bin/pacman" ] ; then
|
|||
|
||||
## Pacman aliases
|
||||
if [ "$PACMAN_FRONTEND" = "pacman" ]; then
|
||||
alias pc='sudo pacman -Scc'
|
||||
alias pc='sudo pacman -Sc'
|
||||
alias pcc='sudo pacman -Scc'
|
||||
alias pi='sudo pacman -S --needed'
|
||||
alias pqi='pacman -Qi'
|
||||
alias pql='pacman -Ql'
|
||||
|
@ -140,7 +139,8 @@ if [ -e "/usr/bin/pacman" ] ; then
|
|||
fi
|
||||
|
||||
if [ "$PACMAN_FRONTEND" = "pacman-color" ]; then
|
||||
alias pc='sudo pacman-color -Scc'
|
||||
alias pc='sudo pacman-color -Sc'
|
||||
alias pcc='sudo pacman-color -Scc'
|
||||
alias pi='sudo pacman -S --needed'
|
||||
alias pqi='pacman-color -Qi'
|
||||
alias pql='pacman-color -Ql'
|
||||
|
|
|
@ -307,7 +307,7 @@ pacman-rebuild ()
|
|||
for i in $(pacman -Qmq); do
|
||||
cd "$i"
|
||||
makepkg -s --nocheck --noconfirm
|
||||
rm -r $(ls | grep -v "\.pkg\.tar\.xz")
|
||||
rm -r "$(ls | grep -v '\.pkg\.tar\.xz')"
|
||||
cd ..
|
||||
done
|
||||
}
|
||||
|
|
|
@ -34,20 +34,18 @@ search()
|
|||
cuttail()
|
||||
{
|
||||
local nlines=${2:-10}
|
||||
sed -n -e :a -e "1,${nlines}!{P;N;D;};N;ba" $1
|
||||
# head $1 -n$(($(cat $1|wc -l) - $nlines))
|
||||
sed -n -e ":begin ; 1,${nlines}!{P;N;D} ; N ; b begin" $1
|
||||
}
|
||||
|
||||
## Cut first n lines in file, 10 by default.
|
||||
## TODO: use sed command instead.
|
||||
cuthead()
|
||||
{
|
||||
local nlines=${2:-10}
|
||||
tail $1 -n$(($(cat $1|wc -l) - $nlines))
|
||||
sed -n -e "1,${nlines}!p" $1
|
||||
}
|
||||
|
||||
## Move filenames to lowercase.
|
||||
## Use ranger + bulkrename + vim/emacs (+ TwindleCase) for more interactivity.
|
||||
## Use ranger + bulkrename + vim/emacs (+ TwindleCase) for more flexibility.
|
||||
renamelower()
|
||||
{
|
||||
local file
|
||||
|
@ -86,8 +84,8 @@ renameswap()
|
|||
dirsize ()
|
||||
{
|
||||
local TEMPFILE="$(mktemp)"
|
||||
# du -shx * .[a-zA-Z0-9_]* 2> /dev/null | \
|
||||
du -shx * 2> /dev/null | \
|
||||
# du -shx * 2> /dev/null | \
|
||||
du -shx * .[a-zA-Z0-9_]* 2> /dev/null | \
|
||||
egrep '^ *[0-9.]*[MG]' | sort -n > "${TEMPFILE}"
|
||||
egrep '^ *[0-9.]*M' "${TEMPFILE}"
|
||||
egrep '^ *[0-9.]*G' "${TEMPFILE}"
|
||||
|
@ -114,12 +112,21 @@ if [ -e "/usr/bin/vim" ]; then
|
|||
}
|
||||
fi
|
||||
|
||||
## Set file/directory owner and permissions according to umask.
|
||||
## Usage: sanitize FILE|FOLDER
|
||||
## Set file/directory owner and permissions.
|
||||
## Usage: sanitize [FOLDER]
|
||||
sanitize()
|
||||
{
|
||||
chown -R ${UID}:${GID} "$@"
|
||||
chmod -R $(umask -S) "$@"
|
||||
local WORKDIR="$PWD"
|
||||
if [ $# -eq 1 ]; then
|
||||
WORKDIR="$1"
|
||||
fi
|
||||
|
||||
local FMASK=$(umask -S | sed 's/x//g')
|
||||
local DMASK=$(umask -S)
|
||||
|
||||
find "$WORKDIR" -exec chown -R ${UID}:${GID} {} \;
|
||||
find "$WORKDIR" -type d -exec chmod ${DMASK} {} \;
|
||||
find "$WORKDIR" -type f -exec chmod ${FMASK} {} \;
|
||||
}
|
||||
|
||||
asciify()
|
||||
|
@ -617,30 +624,55 @@ formatc()
|
|||
## files in current folder.
|
||||
bindatasearch()
|
||||
{
|
||||
if [ $# -ne 1 ] || [ ! -f "$1" ]; then
|
||||
if [ $# -eq 0 ] || [ ! -f "$1" ]; then
|
||||
echo "Please provide a valid single file as argument."
|
||||
return
|
||||
fi
|
||||
|
||||
## TODO: add option to config WORKDIR?
|
||||
local WORKDIR=$PWD
|
||||
## Must be a folder.
|
||||
local TARGET=$PWD
|
||||
if [ $# -eq 2 ] && [ -d "$2" ]; then
|
||||
TARGET="$2"
|
||||
fi
|
||||
|
||||
## The awk command suppresses first column, spaces and line breaks.
|
||||
local SOURCE=$(od -tx8 "$1" | awk '($1="")1 gsub ( /\s/,"") { printf ("%s", $0) }')
|
||||
|
||||
## This special, not well-known syntax allows us to execute a set of
|
||||
## functions of the result of find. Since everything MUST be between simple
|
||||
## quotes, we cannot use external varaibles directly. So we pass the $SOURCE
|
||||
## varaible as argument. The underscore at the end allow the use of
|
||||
## quotes, we cannot use external variables directly. So we pass the $SOURCE
|
||||
## variable as argument. The underscore at the end allow the use of
|
||||
## arguments.
|
||||
find "$WORKDIR" -type f -exec bash -c '
|
||||
TARGET=$(od -tx8 "$1" | awk '"'"'($1="")1 gsub ( /\s/,"") { printf ("%s", $0) }'"'"')
|
||||
grep -q "$2" <(echo $TARGET)
|
||||
FILEDUMP=$(od -tx8 "$1" | awk '"'"'($1="")1 gsub ( /\s/,"") { printf ("%s", $0) }'"'"')
|
||||
grep -q "$2" <(echo $FILEDUMP)
|
||||
|
||||
[ $? -eq 0 ] && echo "$1"
|
||||
' _ {} "$SOURCE" \;
|
||||
}
|
||||
|
||||
## Xrandr
|
||||
xmulti ()
|
||||
{
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Wrong number of argument."
|
||||
return
|
||||
fi
|
||||
|
||||
xrandr --output "$1" --auto --right-of $(xrandr | sed -n "/current/{n;p}" | cut -f1 -d" ")
|
||||
}
|
||||
|
||||
xmultioff ()
|
||||
{
|
||||
if [ $# -ne 1 ]; then
|
||||
echo "Wrong number of argument."
|
||||
return
|
||||
fi
|
||||
|
||||
xrandr --output "$1" --off
|
||||
}
|
||||
|
||||
|
||||
##==============================================================================
|
||||
## Pacman Functions
|
||||
##==============================================================================
|
||||
|
|
|
@ -44,7 +44,7 @@ export MANPAGER="less -s"
|
|||
export MANWIDTH=80
|
||||
|
||||
## Time display (with ls command for example)
|
||||
export TIME_STYLE=+"| %d/%m/%Y %H:%M:%S | "
|
||||
export TIME_STYLE=+"|%Y-%m-%d %H:%M:%S|"
|
||||
|
||||
## System locale
|
||||
# export LC_MESSAGES=fr_FR.utf8
|
||||
|
|
47
README
47
README
|
@ -55,8 +55,7 @@ Vicious plugin, it is quite straightforward.
|
|||
|
||||
Emacs
|
||||
*****
|
||||
Extra deps: auctex, auto-complete, emacs-lua-mode, emacs-mediawiki,
|
||||
emacs-yasnippet.
|
||||
Extra deps: auctex, emacs-lua-mode, emacs-mediawiki, emacs-yasnippet.
|
||||
|
||||
Some keybindings and custom colors (for 256-colors terminals). Extended file
|
||||
support (shell files, mutt mails, Arch Linux PKGBUILDs). Some customization --
|
||||
|
@ -123,17 +122,15 @@ name.
|
|||
|
||||
URxvt
|
||||
*****
|
||||
Custom font and colors, no scroll bar, url-matcher and keyboard-select.
|
||||
Extra deps: Muennich's perl extensions (keyboard-select, clipboard)
|
||||
|
||||
Custom font and colors, no scroll bar, url-matcher, clipboard, and
|
||||
keyboard-select.
|
||||
|
||||
Vim
|
||||
***
|
||||
I've only been a casual Vim user, so do not expect too much from it.
|
||||
|
||||
WMFS
|
||||
****
|
||||
The last time I used WMFS, the development was in a transition from version 1.x
|
||||
to 2.x. So beware!, configuration files might be quite broken.
|
||||
|
||||
################################################################################
|
||||
Known issues
|
||||
************
|
||||
|
@ -152,24 +149,39 @@ when launched from Ranger).
|
|||
Complete applist
|
||||
****************
|
||||
|
||||
aalib
|
||||
antiword
|
||||
asciidoc
|
||||
astyle
|
||||
atool
|
||||
awesome
|
||||
awk
|
||||
bashmount
|
||||
bc
|
||||
cal
|
||||
calc
|
||||
catdvi
|
||||
ccrypt
|
||||
chrpath
|
||||
cmus
|
||||
column
|
||||
comm
|
||||
cppcheck
|
||||
cut
|
||||
dash
|
||||
diff
|
||||
doxygen
|
||||
dropbox
|
||||
dtach
|
||||
dvtm
|
||||
emacs
|
||||
fbpdf
|
||||
fbv
|
||||
fdisk
|
||||
feh
|
||||
ffmpeg
|
||||
file
|
||||
fmt
|
||||
fortune
|
||||
gcolor2
|
||||
gdb
|
||||
|
@ -177,6 +189,9 @@ gimp
|
|||
gnumeric
|
||||
gnuplot
|
||||
gpicview
|
||||
graphicsmagick
|
||||
grep
|
||||
groff
|
||||
handbrake
|
||||
hdparm
|
||||
help2man
|
||||
|
@ -186,6 +201,8 @@ imagemagick
|
|||
indent
|
||||
inkscape
|
||||
irssi
|
||||
latex2html
|
||||
latex2rtf
|
||||
lrzip
|
||||
lshw
|
||||
ltrace
|
||||
|
@ -193,8 +210,9 @@ luakit
|
|||
mediainfo
|
||||
mencoder
|
||||
mercurial
|
||||
mkfs
|
||||
mkvtoolnix
|
||||
movgrav
|
||||
movgrab
|
||||
mplayer2
|
||||
mutt
|
||||
nasm
|
||||
|
@ -203,13 +221,16 @@ ngrep
|
|||
nmap
|
||||
numlockx
|
||||
octave
|
||||
od
|
||||
okular
|
||||
openshot
|
||||
openssh
|
||||
p7zip
|
||||
pari
|
||||
pdfinfo
|
||||
parted
|
||||
patch
|
||||
pidgin
|
||||
poppler
|
||||
pwgen
|
||||
pwsafe
|
||||
ranger
|
||||
|
@ -219,16 +240,21 @@ rtorrent
|
|||
rxvt-unicode
|
||||
scrot
|
||||
sdparm
|
||||
sed
|
||||
shred
|
||||
slock
|
||||
sort
|
||||
splint
|
||||
strace
|
||||
submarine
|
||||
sudo
|
||||
sxiv
|
||||
syslinux
|
||||
task
|
||||
tcc
|
||||
tcpdump
|
||||
texi2html
|
||||
texinfo
|
||||
texlive
|
||||
tig
|
||||
trash-cli
|
||||
|
@ -243,6 +269,7 @@ weechat
|
|||
wipe
|
||||
wmfs
|
||||
wv
|
||||
x264
|
||||
xclip
|
||||
xsel
|
||||
yasm
|
||||
|
|
Loading…
Reference in New Issue