Pkg: list update.

Emacs: fixed automode for Mutt, optimized yasnippet loading time.
GnuPG: set agent to use curses by default.
Mutt: set mailcap for images, tweaked index view, removed color themes belonging to official Mutt package.
Shell: fixed 'steal' function and renamed it to 'blind-append'.
Term: added terminfo file for BackSpace support in Mutt for LXTerminal.
Urlview: set to use Luakit.
Xinit: added GPG-Agent on startup.
master
Ambrevar 2012-07-04 12:21:01 +01:00
parent b0c7f5838f
commit 09c9b105a6
17 changed files with 197 additions and 166 deletions

View File

@ -4,11 +4,10 @@ dropbox
dropbox-cli dropbox-cli
emacs-yasnippet emacs-yasnippet
gsharkdown gsharkdown
linux-custom
movgrab movgrab
msmtp-pwpatched msmtp-pwpatched
notmuch
package-query package-query
pacman-color pacman-color
trash-cli trash-cli
urlview
yaourt yaourt

View File

@ -1,6 +1,8 @@
abook
acpi acpi
alsa-utils alsa-utils
antiword
aspell-en
aspell-fr
atool atool
auctex auctex
auto-complete auto-complete
@ -34,7 +36,6 @@ e2fsprogs
emacs-lua-mode emacs-lua-mode
emacs-nox emacs-nox
emacs-yasnippet emacs-yasnippet
epdfview
fakeroot fakeroot
feh feh
file file
@ -42,6 +43,7 @@ filesystem
findutils findutils
flashplugin flashplugin
flex flex
fortune-mod
gawk gawk
gcc gcc
gcc-libs gcc-libs
@ -62,11 +64,13 @@ heirloom-mailx
highlight highlight
hplip hplip
htop htop
hunspell-en
inetutils inetutils
initscripts initscripts
inkscape inkscape
iptables iptables
iputils iputils
ispell
jfsutils jfsutils
laptop-mode-tools laptop-mode-tools
less less
@ -75,7 +79,6 @@ libtool
licenses licenses
links links
linux linux
linux-custom
linux-docs linux-docs
linux-lts linux-lts
logrotate logrotate
@ -91,7 +94,7 @@ mdadm
mediainfo mediainfo
mercurial mercurial
movgrab movgrab
mplayer mplayer2
msmtp-mta msmtp-mta
msmtp-pwpatched msmtp-pwpatched
mutt mutt
@ -100,7 +103,6 @@ nasm
ncdu ncdu
net-tools net-tools
nmap nmap
notmuch
ntfs-3g ntfs-3g
numlockx numlockx
openssh openssh
@ -126,7 +128,6 @@ ranger
reiserfsprogs reiserfsprogs
rtorrent rtorrent
rxvt-unicode rxvt-unicode
scons
scrot scrot
sdparm sdparm
sed sed
@ -150,6 +151,7 @@ trash-cli
tree tree
unrar unrar
unzip unzip
urlview
usbutils usbutils
util-linux util-linux
valgrind valgrind
@ -157,6 +159,7 @@ vi
vicious vicious
vim vim
vlock vlock
w3m
waf waf
wget wget
which which
@ -164,6 +167,7 @@ wireless_tools
wireshark-cli wireshark-cli
wireshark-gtk wireshark-gtk
wpa_supplicant wpa_supplicant
wv
xf86-input-synaptics xf86-input-synaptics
xf86-video-intel xf86-video-intel
xf86-video-vesa xf86-video-vesa

View File

@ -1,12 +1,14 @@
a52dec a52dec
aalib aalib
abook
acl acl
acpi acpi
alsa-lib alsa-lib
alsa-utils alsa-utils
antiword
archlinux-keyring archlinux-keyring
aspell aspell
aspell-en
aspell-fr
atk atk
atkmm atkmm
atool atool
@ -28,7 +30,6 @@ cairo
cairomm cairomm
calc calc
cdparanoia cdparanoia
cifs-utils
cloog cloog
cmus cmus
compositeproto compositeproto
@ -65,7 +66,6 @@ emacs-lua-mode
emacs-nox emacs-nox
enca enca
enchant enchant
epdfview
eventlog eventlog
expat expat
faac faac
@ -73,6 +73,7 @@ faad2
fakeroot fakeroot
farstream farstream
feh feh
ffmpeg
fftw fftw
file file
filesystem filesystem
@ -86,6 +87,7 @@ fontsproto
foomatic-db foomatic-db
foomatic-db-engine foomatic-db-engine
foomatic-filters foomatic-filters
fortune-mod
freeglut freeglut
freetype2 freetype2
fribidi fribidi
@ -112,7 +114,6 @@ glibc
glibmm glibmm
glib-networking glib-networking
glproto glproto
gmime
gmp gmp
gnupg gnupg
gnuplot gnuplot
@ -141,12 +142,14 @@ gtk-update-icon-cache
gzip gzip
hdparm hdparm
heirloom-mailx heirloom-mailx
help2man
hicolor-icon-theme hicolor-icon-theme
highlight highlight
hplip hplip
hspell hspell
htop htop
hunspell hunspell
hunspell-en
hwids hwids
iana-etc iana-etc
icu icu
@ -161,6 +164,7 @@ iproute2
iptables iptables
iputils iputils
isl isl
ispell
jack jack
jasper jasper
jfsutils jfsutils
@ -168,6 +172,7 @@ json-c
kbd kbd
kbproto kbproto
keyutils keyutils
khrplatform-devel
kmod kmod
krb5 krb5
ladspa ladspa
@ -185,7 +190,6 @@ libatasmart
libbluray libbluray
libcaca libcaca
libcap libcap
libcap-ng
libcdaudio libcdaudio
libcddb libcddb
libcdio libcdio
@ -197,9 +201,11 @@ libdc1394
libdca libdca
libdrm libdrm
libdv libdv
libdvdcss
libdvdnav libdvdnav
libdvdread libdvdread
libedit libedit
libegl
libev libev
libexif libexif
libffi libffi
@ -212,6 +218,7 @@ libglapi
libgme libgme
libgnome-keyring libgnome-keyring
libgpg-error libgpg-error
libgsf
libgssglue libgssglue
libice libice
libid3tag libid3tag
@ -265,10 +272,10 @@ libtorrent
libunique libunique
libusb-compat libusb-compat
libusbx libusbx
libva
libvdpau libvdpau
libvorbis libvorbis
libvpx libvpx
libwbclient
libwebkit libwebkit
libx11 libx11
libxau libxau
@ -333,7 +340,7 @@ mkinitcpio-busybox
mozilla-common mozilla-common
mpfr mpfr
mpg123 mpg123
mplayer mplayer2
msmtp-mta msmtp-mta
mtdev mtdev
musicbrainz musicbrainz
@ -373,6 +380,7 @@ pcmciautils
pcre pcre
perl perl
perl-error perl-error
perl-locale-gettext
pidgin pidgin
pinentry pinentry
pixman pixman
@ -415,7 +423,6 @@ rtorrent
run-parts run-parts
rxvt-unicode rxvt-unicode
schroedinger schroedinger
scons
scrnsaverproto scrnsaverproto
scrot scrot
sdl sdl
@ -425,8 +432,8 @@ sg3_utils
shadow shadow
shared-mime-info shared-mime-info
slock slock
smbclient
soundtouch soundtouch
speex
splint splint
sqlite sqlite
startup-notification startup-notification
@ -438,11 +445,9 @@ syslog-ng
systemd-tools systemd-tools
sysvinit sysvinit
t1lib t1lib
talloc
tar tar
task task
tcpdump tcpdump
tdb
texinfo texinfo
texlive-bin texlive-bin
texlive-core texlive-core
@ -466,6 +471,7 @@ vim-runtime
vlock vlock
vte vte
vte-common vte-common
w3m
waf waf
wget wget
which which
@ -474,9 +480,9 @@ wireless_tools
wireshark-cli wireshark-cli
wireshark-gtk wireshark-gtk
wpa_supplicant wpa_supplicant
wv
wxgtk wxgtk
x264 x264
xapian-core
xbitmaps xbitmaps
xcb-proto xcb-proto
xcb-util xcb-util

View File

@ -58,10 +58,10 @@ terminal = "lxterminal"
termcmd = "lxterminal -e " termcmd = "lxterminal -e "
-- webbrowser = os.getenv("BROWSER") or "luakit" -- webbrowser = os.getenv("BROWSER") or "luakit"
webbrowser = "luakit" webbrowser = "luakit"
mailclient = termcmd .. os.getenv("HOME") .. "/.ml.sh" -- Mutt Launcher mailclient = termcmd .. "mutt"
pdfreader = "zathura" pdfreader = "zathura"
editor = os.getenv("EDITOR") or "nano" -- editor = os.getenv("EDITOR") or "nano"
editor_cmd = termcmd .. editor -- editor_cmd = termcmd .. editor
-------------------------------------------------------------------------------- --------------------------------------------------------------------------------
-- Default modkey. -- Default modkey.

16
.emacs
View File

@ -134,7 +134,7 @@
;; from being seen as a mail file. ;; from being seen as a mail file.
(setq auto-mode-alist (setq auto-mode-alist
(append (append
'(("[^\\./]mutt.*" . mail-mode) '(("[^\\.]mutt.*" . mail-mode)
) )
auto-mode-alist) auto-mode-alist)
) )
@ -359,20 +359,20 @@
;; Generate a bundle instead: yas/compile-bundle ;; Generate a bundle instead: yas/compile-bundle
;; Besides you can convert the generated file to bytecode. ;; Besides you can convert the generated file to bytecode.
(add-to-list 'load-path "~/.emacs.d/plugins") ;; (add-to-list 'load-path "~/.emacs.d/plugins")
(require 'yasnippet-bundle) ;; (require 'yasnippet-bundle)
;; Next follows a traditional, yet not-optimized configuration for Yasnippet. ;; Next follows a traditional, yet not-optimized configuration for Yasnippet.
; (add-to-list 'load-path "/usr/share/emacs/site-lisp/yas") (add-to-list 'load-path "/usr/share/emacs/site-lisp/yas")
; (require 'yasnippet) ;; not yasnippet-bundle (require 'yasnippet) ;; not yasnippet-bundle
; (yas/initialize) (yas/initialize)
;; Personal snippets ;; Personal snippets
; (setq yas/root-directory "~/.emacs.d/plugins/yas/snippets" ) (setq yas/root-directory "~/.emacs.d/plugins/yas/snippets" )
;; Load the snippets ;; Load the snippets
; (yas/load-directory "~/.emacs.d/plugins/yas/snippets") ; Warning: slow! ; (yas/load-directory "~/.emacs.d/plugins/yas/snippets") ; Warning: slow!
; (yas/load-directory yas/root-directory) (yas/load-directory yas/root-directory)
;;============================================================================== ;;==============================================================================
;; Auto-Complete ;; Auto-Complete

View File

@ -61,15 +61,18 @@
("arch" "architecture" nil 1) ("arch" "architecture" nil 1)
("asap" "as soon as possible" nil 1) ("asap" "as soon as possible" nil 1)
("autom" "automatique" nil 2) ("autom" "automatique" nil 2)
("automt" "automatiquement" nil 2)
("atm" "at the moment" nil 1) ("atm" "at the moment" nil 1)
("bcp" "beaucoup" nil 2) ("bcp" "beaucoup" nil 2)
("biblio" "bibliothèque" nil 1) ("biblio" "bibliothèque" nil 1)
("btw" "by the way" nil 1) ("btw" "by the way" nil 1)
("ca" "ça" nil 1)
("chai" "je ne sais" nil 1) ("chai" "je ne sais" nil 1)
("chq" "chaque" nil 1)
("chui" "je ne suis" nil 1) ("chui" "je ne suis" nil 1)
("config" "configuration" nil 1) ("config" "configuration" nil 1)
("configs" "configurations" nil 1) ("configs" "configurations" nil 1)
("càd" "c'est-à-dire" nil 1) ("cad" "c'est-à-dire" nil 1)
("dc" "donc" nil 1) ("dc" "donc" nil 1)
("dep" "dépendance" nil 1) ("dep" "dépendance" nil 1)
("deps" "dépendances" nil 1) ("deps" "dépendances" nil 1)
@ -78,12 +81,14 @@
("dispos" "disponibles" nil 1) ("dispos" "disponibles" nil 1)
("distro" "distribution" nil 1) ("distro" "distribution" nil 1)
("ds" "dans" nil 1) ("ds" "dans" nil 1)
("eg" "e.g." nil 3)
("ex" "exemple" nil 3) ("ex" "exemple" nil 3)
("exo" "exercice" nil 1) ("exo" "exercice" nil 1)
("ficheir" "fichier" nil 0) ("ficheir" "fichier" nil 0)
("ficheirs" "fichiers" nil 0) ("ficheirs" "fichiers" nil 0)
("fyi" "for your information" nil 0) ("fyi" "for your information" nil 0)
("gd" "grand" nil 3) ("gd" "grand" nil 3)
("ie" "i.e." nil 1)
("infos" "informations" nil 1) ("infos" "informations" nil 1)
("latex" "LaTeX" nil 10) ("latex" "LaTeX" nil 10)
("linux" "GNU/Linux" nil 1) ("linux" "GNU/Linux" nil 1)
@ -108,6 +113,7 @@
("pr" "pour" nil 3) ("pr" "pour" nil 3)
("ptt" "petit" nil 1) ("ptt" "petit" nil 1)
("pê" "peut-être" nil 2) ("pê" "peut-être" nil 2)
("pe" "peut-être" nil 2)
("qd" "quand" nil 4) ("qd" "quand" nil 4)
("qq" "quelque" nil 1) ("qq" "quelque" nil 1)
("qqch" "quelque chose" nil 1) ("qqch" "quelque chose" nil 1)

8
.gnupg/gpg-agent.conf Normal file
View File

@ -0,0 +1,8 @@
################################################################################
## GPG-Agent
## 2012-07-04
################################################################################
pinentry-program /usr/bin/pinentry-curses
# no-grab
# default-cache-ttl 1800

18
.ml.sh
View File

@ -1,18 +0,0 @@
#!/bin/bash
PWDSFILE="${HOME}/.pwds.gpg"
MUTTBIN="/usr/bin/mutt"
if [ ! -f "$PWDSFILE" ];then
echo "Password file ${PWDSFILE} not found!"
exit
fi
if [ ! -f "${MUTTBIN}" ];then
echo "Mutt is not installed."
exit
fi
PWDS=$(gpg --decrypt "${PWDSFILE}")
eval "$PWDS"
exec mutt "$@"

View File

@ -1,22 +0,0 @@
# -*- mode:sh -*-
## Colors for use with xterm and the like, white background.
color hdrdefault blue white
color quoted blue white
color signature red white
color attachment red white
color message brightred white
color error brightred white
color indicator brightyellow red
color status brightgreen blue
color tree black white
color normal black white
color markers red white
color search white black
color tilde brightmagenta white
color index blue white ~F
color index red white "~N|~O"
# color body brightblack white '\*+[^*]+\*+'
# color body brightblack white '_+[^_]+_+'

View File

@ -1,21 +0,0 @@
# -*- mode:sh -*-
## Palette for use with the Linux console. Black background.
color hdrdefault blue black
color quoted blue black
color signature blue black
color attachment red black
color message brightred black
color error brightred black
color indicator black red
color status brightgreen blue
color tree white black
color normal white black
color markers red black
color search white black
color tilde brightmagenta black
color index blue black ~F
color index red black "~N|~O"
# color body brightwhite black '\*+[^*]+\*+'
# color body brightwhite black '_+[^_]+_+'

View File

@ -1,7 +1,5 @@
# $Id$ # $Id$
text/html; w3m -I %{charset} -T text/html; copiousoutput; text/html; w3m -I %{charset} -T text/html; copiousoutput;
# text/html; netscape -remote openURL\(%s\) image/*; sxiv %s
image/gif; xv %s
image/jpg; xv %s
# application/pgp-keys; pgp -f < %s ; copiousoutput # application/pgp-keys; pgp -f < %s ; copiousoutput

46
.muttrc
View File

@ -1,7 +1,7 @@
## -*- mode:sh -*- # ## -*- mode:sh -*- #
################################################################################ ################################################################################
## Mutt Configuration ## Mutt Configuration
## Date 2012-07-03 ## Date 2012-07-04
################################################################################ ################################################################################
## Note on folders: ## Note on folders:
@ -9,22 +9,19 @@
## -~/.mutt = personal stuff (contacts, account information) ## -~/.mutt = personal stuff (contacts, account information)
## -~/.mutt.d = public stuff (cache, theme, mailcap) ## -~/.mutt.d = public stuff (cache, theme, mailcap)
## Optional: ## Optional:
## -~/.mutt.d/hcache = see hcache below. ## -~/.mutt.d/hcache = see header_cache below.
##------------------------------------------------------------------------------- ##-------------------------------------------------------------------------------
## General options ## General options
##------------------------------------------------------------------------------- ##-------------------------------------------------------------------------------
## TODO: why doesn't the $EDITOR variable work for connecting to emacs daemon? ## TODO: why doesn't the $EDITOR variable work for connection to emacs daemon?
set editor="emacsclient -a \"\" -t" set editor="emacsclient -a \"\" -t"
## Fix the BackSpace bug that happens on some terminals.
#bind index,pager  previous-page
## Mailcap ## Mailcap
# set mailcap_path = ~/.mutt.d/mailcap set mailcap_path = ~/.mutt.d/mailcap
# auto_view text/html auto_view text/html
# alternative_order text/plain text/html alternative_order text/plain text/html
##------------------------------------------------------------------------------- ##-------------------------------------------------------------------------------
## Multiple accounts ## Multiple accounts
@ -91,6 +88,14 @@ source $alias_file
# Manual fetch. # Manual fetch.
bind index "^" imap-fetch-mail bind index "^" imap-fetch-mail
## Fix the BackSpace bug that happens on some terminals.
#bind index,pager  previous-page
## Fix Backspace -- Shell alternative.
#$ infocmp > termbs.src
## Changed kbs=^H to kbs=\177, then:
#$ tic -x termbs.src
##------------------------------------------------------------------------------ ##------------------------------------------------------------------------------
## Custom headers for outgoing mail ## Custom headers for outgoing mail
##------------------------------------------------------------------------------ ##------------------------------------------------------------------------------
@ -106,7 +111,7 @@ bind index "^" imap-fetch-mail
#my_hdr From: Firstname Lastname <myfirstname@mymailserver> #my_hdr From: Firstname Lastname <myfirstname@mymailserver>
## Extra info. ## Extra info.
# my_hdr X-Info: Simplicity is the ultimate sophistication. my_hdr X-Info: Simplicity is the ultimate sophistication.
## OS Info. ## OS Info.
# my_hdr X-Operating-System: `uname -s`, kernel `uname -r` # my_hdr X-Operating-System: `uname -s`, kernel `uname -r`
@ -116,13 +121,24 @@ bind index "^" imap-fetch-mail
#my_hdr X-Message-Flag: WARNING!! Outlook sucks! #my_hdr X-Message-Flag: WARNING!! Outlook sucks!
## Custom Mail-User-Agent ID. ## Custom Mail-User-Agent ID.
# set user_agent = no set user_agent = yes
#my_hdr User-Agent: Every email client sucks, this one just sucks less. # my_hdr User-Agent: Every email client sucks, this one just sucks less.
##------------------------------------------------------------------------------ ##------------------------------------------------------------------------------
## Theme ## Themes
##------------------------------------------------------------------------------ ##------------------------------------------------------------------------------
#source ~/.mutt.d/colors.default ## TODO: Use these variables to get dynamic column size.
#source ~/.mutt.d/colors.linux # set my_col_from = `echo $((30 * ($COLUMNS-34) / 100))`
# set my_col_subject = `echo $((70 * ($COLUMNS-34) / 100))`
## Index format
## See 'man 3 strftime' and 'man 3 printf'.
# set index_format="%?M?_%M_ ?%Z %2C %.13d (%-68.68F) %-68.68s %?M?_%M_&(%c/%l?"
set date_format="%y-%m-%d %T"
set index_format="%2C | %Z [%d] %-30.30F (%-4.4c) %s"
#source /usr/share/doc/mutt/samples/colors.default
#source /usr/share/doc/mutt/samples/colors.linux
source ~/.mutt.d/colors.nongeek source ~/.mutt.d/colors.nongeek

71
.save
View File

@ -1,11 +1,11 @@
#!/bin/bash #!/bin/bash
################################################################################ ################################################################################
## Home Config Backup Script ## Home Config Backup Script
## 2012-06-29 ## 2012-07-04
################################################################################ ################################################################################
## Note for Zsh: because of the KSH-style arrays (index starting at 0), you ## Note for Zsh: because of the Ksh-style arrays (index starting at 0), you
## cannot use array index to append elements to arrays -- or the KSH_ARRAYS ## cannot use array index to append elements to arrays -- otherwise the
## option for zsh must be used. ## KSH_ARRAYS option for zsh must be used.
##============================================================================== ##==============================================================================
## Options ## Options
@ -129,7 +129,7 @@ fi
##============================================================================== ##==============================================================================
FILELIST=() FILELIST=()
# Arch Linux package list ## Arch Linux package list
if [ -e "/usr/bin/pacman" ]; then if [ -e "/usr/bin/pacman" ]; then
for i in $(find . -maxdepth 1 -name '.arch*' -exec basename {} \;) for i in $(find . -maxdepth 1 -name '.arch*' -exec basename {} \;)
do do
@ -137,86 +137,99 @@ if [ -e "/usr/bin/pacman" ]; then
done done
fi fi
# Awesome ## Awesome
for i in $(find .config/awesome \( -name "*.lua" -o -name "*.sh" \) -type f) for i in $(find .config/awesome \( -name "*.lua" -o -name "*.sh" \) -type f)
do do
FILELIST=(${FILELIST[*]} "$i") FILELIST=(${FILELIST[*]} "$i")
done done
# cmus ## cmus
# FILELIST=(${FILELIST[*]} "$(ls .cmus/{autosave,*.theme}) ") # FILELIST=(${FILELIST[*]} "$(ls .cmus/{autosave,*.theme}) ")
FILELIST=(${FILELIST[*]} "$(ls .cmus/autosave)") FILELIST=(${FILELIST[*]} ".cmus/autosave")
# Conky ## Conky
FILELIST=(${FILELIST[*]} ".conkyrc") FILELIST=(${FILELIST[*]} ".conkyrc")
# Emacs ## Emacs
FILELIST=(${FILELIST[*]} ".emacs") FILELIST=(${FILELIST[*]} ".emacs")
FILELIST=(${FILELIST[*]} ".emacs.d/plugins") FILELIST=(${FILELIST[*]} ".emacs.d/plugins")
FILELIST=(${FILELIST[*]} ".emacs.d/abbrev_defs") FILELIST=(${FILELIST[*]} ".emacs.d/abbrev_defs")
# GTK ## GnuPG
FILELIST=(${FILELIST[*]} ".gnupg/gpg-agent.conf")
## GTK
FILELIST=(${FILELIST[*]} ".gtkrc-2.0") FILELIST=(${FILELIST[*]} ".gtkrc-2.0")
FILELIST=(${FILELIST[*]} ".config/gtk-3.0/settings.ini") FILELIST=(${FILELIST[*]} ".config/gtk-3.0/settings.ini")
# Luakit ## Luakit
FILELIST=(${FILELIST[*]} ".config/luakit/") FILELIST=(${FILELIST[*]} ".config/luakit/")
# LXTerminal ## LXTerminal
FILELIST=(${FILELIST[*]} ".config/lxterminal/lxterminal.conf") FILELIST=(${FILELIST[*]} ".config/lxterminal/lxterminal.conf")
# MPlayer ## MPlayer
# FILELIST=(${FILELIST[*]} ".mplayer") # FILELIST=(${FILELIST[*]} ".mplayer")
# Mutt ## Mutt
FILELIST=(${FILELIST[*]} ".muttrc") FILELIST=(${FILELIST[*]} ".muttrc")
FILELIST=(${FILELIST[*]} ".ml.sh") FILELIST=(${FILELIST[*]} ".ml.sh")
for i in $(ls -ad --indicator-style=none .mutt.d/* | grep -vi 'cache')
do
FILELIST=(${FILELIST[*]} "$i")
done
# Nano ## Nano
FILELIST=(${FILELIST[*]} ".nanorc") FILELIST=(${FILELIST[*]} ".nanorc")
# Netinit ## Netinit
FILELIST=(${FILELIST[*]} ".netinit") FILELIST=(${FILELIST[*]} ".netinit")
# Ranger ## Ranger
for i in $(ls -d --indicator-style=none .config/ranger/* | grep -vi 'pycache\|bookmarks\|history\|tagged') for i in $(ls -ad --indicator-style=none .config/ranger/* | grep -vi 'pycache\|bookmarks\|history\|tagged')
do do
FILELIST=(${FILELIST[*]} "$i") FILELIST=(${FILELIST[*]} "$i")
done done
# rtorrent ## rtorrent
FILELIST=(${FILELIST[*]} ".rtorrent.rc") FILELIST=(${FILELIST[*]} ".rtorrent.rc")
# Shells ## Shells
FILELIST=(${FILELIST[*]} ".bashrc") FILELIST=(${FILELIST[*]} ".bashrc")
FILELIST=(${FILELIST[*]} ".zshrc") FILELIST=(${FILELIST[*]} ".zshrc")
for i in $(ls .shell.d/*|grep -vi 'bhistory') for i in $(ls -a .shell.d/*|grep -vi 'bhistory')
do do
FILELIST=(${FILELIST[*]} "$i") FILELIST=(${FILELIST[*]} "$i")
done done
# Taskwarrior ## Taskwarrior
FILELIST=(${FILELIST[*]} ".taskrc") FILELIST=(${FILELIST[*]} ".taskrc")
# TeXlive ## Terminfo
FILELIST=(${FILELIST[*]} ".terminfo/x/xterm")
## TeXlive
# for i in $(find texmf -type f|grep -vi 'moderncv/examples\|moderncv/manual\|.bzr') # for i in $(find texmf -type f|grep -vi 'moderncv/examples\|moderncv/manual\|.bzr')
# do # do
# FILELIST=(${FILELIST[*]} "$i") # FILELIST=(${FILELIST[*]} "$i")
# done # done
# Vim ## Urlview
FILELIST=(${FILELIST[*]} ".urlview")
## Vim
FILELIST=(${FILELIST[*]} ".vimrc") FILELIST=(${FILELIST[*]} ".vimrc")
# WMFS ## WMFS
FILELIST=(${FILELIST[*]} ".config/wmfs") FILELIST=(${FILELIST[*]} ".config/wmfs")
# Xinit ## Xinit
FILELIST=(${FILELIST[*]} ".xinitrc") FILELIST=(${FILELIST[*]} ".xinitrc")
# Xresource ## Xresource
FILELIST=(${FILELIST[*]} ".Xresources") FILELIST=(${FILELIST[*]} ".Xresources")
# Xscreensaver ## Xscreensaver
# FILELIST=(${FILELIST[*]} ".xscreensaver") # FILELIST=(${FILELIST[*]} ".xscreensaver")

View File

@ -141,32 +141,49 @@ asciify()
done; done;
} }
## steal blind-append()
steal()
{ {
steal_help() blind_help()
{ {
echo echo
echo "Usage:" echo "Usage:"
echo -e "\t$1 STRING FILE" echo -e "\t$1 FILE [STRING]"
echo echo
echo "Synopsis:" echo "Synopsis:"
echo -e "\tAppend a silently prompted string to STRING from FILE." echo -e "\tAppend to all STRING found in FILE a secret phrase being prompted."
echo -e "\tIf STRING is omitted, secret phrase will be appended to the end of the file."
echo -e "\tIf FILE does not exist, it will be created and secret phrase will be inserted. STRING will be ignored."
echo echo
} }
if [ $# -ne 2 ]; then if [ $# -gt 2 ] || [ $# -lt 1 ]; then
echo "Wrong number of arguments." echo "Wrong number of arguments."
steal_help $0 blind_help $0
return return
fi fi
STRING="$1" FILE="$1"
FILE="$2" STRING=""
if [ $# -eq 2 ]; then
STRING="$2"
fi
read -s DUMMY read -s DUMMY
sed -i "s/${STRING}/${STRING}${DUMMY}/g" "${FILE}"
echo File stolen. if [ ! -e "$FILE" ] || [ "$STRING" = "" ]; then
echo "$DUMMY" >> "$FILE"
echo "Secrect blindly appended to ${FILE} at the end."
return
fi
if [ $# -eq 1 ]; then
echo "$DUMMY" >> "$FILE"
else
sed -i "s/${STRING}/${STRING}${DUMMY}/g" "${FILE}"
fi
echo "Secret blindly appended to ${FILE}."
return
} }

BIN
.terminfo/x/xterm Normal file

Binary file not shown.

30
.urlview Normal file
View File

@ -0,0 +1,30 @@
###############################################################################
# Urlview configuration file.
# man urlview <Man page>
#
# Put this file in: $HOME/.urlview
# Put url_handler.sh in: /usr/bin
#
# You can call 'urlview' while in 'mutt' by pressing the Ctrl b keys.
# Put these macros in your $HOME/.muttrc file.
#
# macro index \cb |urlview\n
# macro pager \cb |urlview\n
#
# You can call 'urlview' while in 'tin' by pressing | then a for article,
# put urlview as the pipe command.
#
# Regular expression to use to match URLs.
#REGEXP (((http|https|ftp|gopher)|mailto):(//)?[^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
# Command to invoke for selected URL. Use lynx, netscape, or url_handler.sh
# shell script. Alternatively, you can leave COMMAND unset and set the BROWSER
# environment variable instead.
#COMMAND lynx %s
#COMMAND netscape -remote 'openURL(%s)'
#COMMAND url_handler.sh
COMMAND luakit -n %s 2>/dev/null

View File

@ -1,32 +1,27 @@
#!/bin/sh #!/bin/sh
################################################################################ ################################################################################
## XINITRC ## XINITRC
## Last updated: 2012-04-23 ## Last updated: 2012-07-04
################################################################################ ################################################################################
## Config (for rxvt) ## Config (for rxvt)
[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources [ -f "~/.Xresources" ] && xrdb -merge "~/.Xresources"
## Useful tools ## Useful tools
numlockx on [ "$(which numlockx)" != "" ] && numlockx on
[ "$(amixer | grep PCM)" != "" ] && amixer set PCM 80% [ "$(amixer | grep PCM)" != "" ] && amixer set PCM 80%
# xscreensaver -no-splash &
##============================================================================== ## GPG-Agent
## My apps [ "$(which gpg-agent)" != "" ] && eval $(gpg-agent --daemon)
##==============================================================================
# [ -e /usr/bin/emacs ] && emacs --daemon
# dropboxd &
# parcellite &
# clementine &
# thunderbird &
##============================================================================== ##==============================================================================
## Launch session ## Launch session
##============================================================================== ##==============================================================================
# [ -e /usr/bin/awesome ] && exec ck-launch-session dbus-launch awesome # [ -e /usr/bin/awesome ] && exec ck-launch-session awesome
[ -e /usr/bin/awesome ] && exec ck-launch-session bash -c "udiskie & awesome" [ -e /usr/bin/awesome ] && exec ck-launch-session bash -c "udiskie & awesome"
# [ -e /usr/bin/startlxde ] && exec ck-launch-session startlxde # [ -e /usr/bin/startlxde ] && exec ck-launch-session startlxde
# exec ck-launch-session dbus-launch wmfs2 # exec ck-launch-session dbus-launch wmfs2
@ -41,7 +36,7 @@ numlockx on
# true # true
#done #done
################################################################################ ##==============================================================================
## Wallpaper ## Wallpaper
################################################################################ ##==============================================================================
# feh --bg-fill "$HOME/pictures/arch_linux_wallpaper_by_mokkujin-d3j1se0.png" # feh --bg-fill "$HOME/pictures/arch_linux_wallpaper_by_mokkujin-d3j1se0.png"