*: Various fixes.

*: Old files removed.
master
Ambrevar 2012-09-04 15:30:20 +02:00
parent 07dc71be88
commit a8cbec0b21
14 changed files with 251 additions and 176 deletions

View File

@ -105,6 +105,7 @@ cpuwidget = widget({ type = "textbox" })
vicious.register(cpuwidget, vicious.widgets.cpu, '<span color="#CC8F52">CPU $1%</span>')
-- Net
-- TODO: get speed for all interfaces.
netwidget = widget({ type = "textbox" })
vicious.register(netwidget, vicious.widgets.net, '<span color="#CC9393">↓${eth0 down_kb}</span> <span color="#7F9F7F">↑${eth0 up_kb}</span>', 3)

View File

@ -1,3 +0,0 @@
[Settings]
gtk-theme-name = Adwaita
gtk-fallback-icon-theme = gnome

View File

@ -213,6 +213,6 @@ webview.init_funcs.window_decision = function (view, w)
end
-- Adblock
require("adblock")
-- require("adblock")
-- vim: et:sw=4:ts=8:sts=4:tw=80

View File

@ -1,14 +0,0 @@
out_to_console yes
out_to_x no
background no
update_interval 0.9
total_run_times 0
no_buffers yes
TEXT
HDD:${diskio /dev/sda}
CPU1:${cpu cpu1}%
CPU2:${cpu cpu2}%
CPU3:${cpu cpu3}%
CPU4:${cpu cpu4}%

78
.emacs
View File

@ -527,54 +527,54 @@ the line."
;; AucTeX
;;==============================================================================
;; Activate AucTeX
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)
;; ;; Activate AucTeX
;; (load "auctex.el" nil t t)
;; (load "preview-latex.el" nil t t)
;; Compile to PDF by default
(setq TeX-PDF-mode t)
;; ;; Compile to PDF by default
;; (setq TeX-PDF-mode t)
(setq TeX-view-program-selection
'((output-dvi "DVI Viewer")
(output-ps "PS Viewer")
(output-pdf "PDF Viewer")
(output-html "Web browser")))
;; (setq TeX-view-program-selection
;; '((output-dvi "DVI Viewer")
;; (output-ps "PS Viewer")
;; (output-pdf "PDF Viewer")
;; (output-html "Web browser")))
;; Zathura will crash when being forked while document is regenerated.
(setq TeX-view-program-list
'(("DVI Viewer" "zathura %o")
("PS Viewer" "zathura %o")
("PDF Viewer" "zathura %o")
("Web browser" "luakit -n %o")))
;; ;; Zathura will crash when being forked while document is regenerated.
;; (setq TeX-view-program-list
;; '(("DVI Viewer" "zathura %o")
;; ("PS Viewer" "zathura %o")
;; ("PDF Viewer" "zathura %o")
;; ("Web browser" "luakit -n %o")))
;; Add 'Compress PDF' compilation command
(eval-after-load "TeX"
'(add-to-list 'TeX-command-list
'("Compress" "if [ -e %s.pdf ]; then gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=%s-COMPRESSED.pdf %s.pdf && rm -rf %s.pdf && mv %s-COMPRESSED.pdf %s.pdf;fi" TeX-run-command nil t :help "Compress PDF"
)
t )
)
;; ;; Add 'Compress PDF' compilation command
;; (eval-after-load "TeX"
;; '(add-to-list 'TeX-command-list
;; '("Compress" "if [ -e %s.pdf ]; then gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=%s-COMPRESSED.pdf %s.pdf && rm -rf %s.pdf && mv %s-COMPRESSED.pdf %s.pdf;fi" TeX-run-command nil t :help "Compress PDF"
;; )
;; t )
;; )
;; Add '--shell-escape' switch to compilation command (useful for using GnuPlot from TikZ)
(eval-after-load "tex"
'(setcdr (assoc "LaTeX" TeX-command-list)
'("%`%l%(mode) --shell-escape %' %t"
TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
)
)
;; ;; Add '--shell-escape' switch to compilation command (useful for using GnuPlot from TikZ)
;; (eval-after-load "tex"
;; '(setcdr (assoc "LaTeX" TeX-command-list)
;; '("%`%l%(mode) --shell-escape %' %t"
;; TeX-run-TeX nil (latex-mode doctex-mode) :help "Run LaTeX")
;; )
;; )
(defun my-tex-mode-hook ()
(local-set-key (kbd "<f9>") (kbd "C-x C-s C-c C-c C-j")))
;; (defun my-tex-mode-hook ()
;; (local-set-key (kbd "<f9>") (kbd "C-x C-s C-c C-c C-j")))
(add-hook 'TeX-mode-hook 'my-tex-mode-hook)
;; (add-hook 'TeX-mode-hook 'my-tex-mode-hook)
;; Theme
(defun my-tex-font-hook ()
(set-face-foreground 'font-latex-sedate-face "brightred" )
(set-face-bold-p 'font-latex-sedate-face t)
)
(add-hook 'TeX-mode-hook 'my-tex-font-hook)
;; ;; Theme
;; (defun my-tex-font-hook ()
;; (set-face-foreground 'font-latex-sedate-face "brightred" )
;; (set-face-bold-p 'font-latex-sedate-face t)
;; )
;; (add-hook 'TeX-mode-hook 'my-tex-font-hook)
;;==============================================================================

View File

@ -1,8 +1,22 @@
#!/bin/bash
################################################################################
## Custom network initialization script.
## 2012-08-31
## 2012-09-04
################################################################################
## Deps: wpa_supplicant, ccrypt
##
## Use 'wpa_passphrase essid $PW >> /etc/wpa_supplicant.conf', where PW is a
## variable containing the password. You can set PW securely by using a shell
## built-in like 'read -s PW'.
##
## There is an Emacs plugin for editing crypted files directly. See 'man
## ccrypt'.
type ccrypt > /dev/null
if [ $? -ne 0 ]; then
echo "You need to have 'ccrypt' installed."
exit
fi
if [ $(id -u) -ne 0 ]; then
echo "You must be root to run this script."
@ -10,7 +24,7 @@ if [ $(id -u) -ne 0 ]; then
fi
NET_INTERFACE=wlan0
WPA_SUPPLICANT_CONF="/etc/wpa_supplicant.conf"
WPA_SUPPLICANT_CONF="$(ccat /etc/wpa_supplicant.conf.cpt)"
TIMEOUT_LIMIT=500
## Clean running processes if any.
@ -24,7 +38,7 @@ ip link set ${NET_INTERFACE} up
if [ $# -eq 0 ]; then
# Associate if needed.
if [ -n "$(iwconfig ${NET_INTERFACE} | grep 'Not-Associated')" ]; then
wpa_supplicant -B -i ${NET_INTERFACE} -D wext -c "${WPA_SUPPLICANT_CONF}"
wpa_supplicant -B -i ${NET_INTERFACE} -D wext -c <(echo "${WPA_SUPPLICANT_CONF}")
fi
## Wait until wpa_supplicant has finished association.

View File

@ -1,19 +1,17 @@
bashmount
cpufrequtils
cw
dropbox
dropbox-cli
emacs-mediawiki-bzr
emacs-yasnippet
fortune-mod-tbbt
grub
handbrake-cli-svn
handbrake-svn
movgrab
package-query
pacman-color
rxvt-unicode-patched
submarine
texlive-dummy
trash-cli
urxvt-perls-git
vlc-ncurses
yaourt

View File

@ -1,49 +1,51 @@
abs
acpi
aircrack-ng
aircrack-ng-scripts
alsa-utils
antiword
asciidoc
archlinux-keyring
aspell-en
aspell-fr
atool
auctex
autoconf
automake
awesome
bash
bash-completion
bashmount
bc
binutils
bison
bzip2
bzr
calc
catdvi
ccrypt
cifs-utils
cmus
coreutils
cpufrequtils
crda
cronie
cryptsetup
ctags
cups
cw
cyrus-sasl
dash
device-mapper
dhclient
dhcpcd
diffutils
dosfstools
dropbox
dropbox-cli
dtach
e2fsprogs
elfutils
emacs-lua-mode
emacs-mediawiki-bzr
emacs-nox
emacs-yasnippet
expac
fakeroot
farstream
fbv
feh
fftw
file
filesystem
findutils
@ -62,38 +64,76 @@ gimp
git
glibc
gnu-netcat
gnuplot
gparted
graphicsmagick
grep
grub
gsasl
gstreamer0.10-ugly-plugins
gstreamer0.10-bad
gstreamer0.10-bad-plugins
gstreamer0.10-ffmpeg
gstreamer0.10-good
gstreamer0.10-python
gzip
handbrake-cli-svn
handbrake-svn
handbrake
hdparm
heirloom-mailx
highlight
hplip
htop
hunspell-en
hunspell-fr
hwids
ifplugd
indent
inetutils
initscripts
inkscape
iptables
iputils
isomaster
ispell
jfsutils
khrplatform-devel
ladspa
laptop-mode-tools
latex2rtf
less
libaio
libavc1394
libcap-ng
libcdaudio
libdc1394
libdvdcss
libdvdnav
libdvdread
libegl
libevent
libgme
libisoburn
liblqr
liblrdf
libmediainfo
libmicrohttpd
libmms
libnice
libofa
libpipeline
libpurple
libstdc++5
libtool
libusbx
libwbclient
libzen
licenses
linux
linux-lts
logrotate
lrzip
lshw
ltrace
luakit
lvm2
lzo2
m4
make
man-db
@ -101,37 +141,50 @@ man-pages
mdadm
mediainfo
mencoder
mjpegtools
movgrab
mplayer2
mtools
musicbrainz
mutt
nasm
nawk
ncdu
net-tools
nmap
ntfs-3g
ntfsprogs
numlockx
openslp
openssh
p7zip
package-query
pacman
pacman-color
pambase
pari
patch
pciutils
pcmciautils
pdksh
perl
perl-locale-gettext
pidgin
pkg-config
pkgfile
pkgstats
pkgtools
ppp
procps-ng
psmisc
pwgen
pwsafe
pygtk
python2-dbus
python2-udiskie
python-configobj
python-dbus-common
python-notify
python-pycurl
ranger
raptor
reiserfsprogs
rtorrent
rxvt-unicode-patched
@ -140,19 +193,35 @@ sdparm
sed
shadow
slock
smbclient
soundtouch
splint
squashfs-tools
strace
submarine
sudo
sxiv
sysfsutils
syslinux
syslog-ng
sysstat
systemd
sysvbanner
sysvinit
talloc
tar
task
tcc
tcpdump
tcsh
tdb
texi2html
texinfo
texlive-dummy
trash-cli
tree
ttf-dejavu
ttf-freefont
unrar
unzip
upx
@ -162,26 +231,36 @@ util-linux
valgrind
vi
vicious
vim
vim-runtime
vlc-ncurses
vlock
w3m
wget
which
wildmidi
wipe
wireless_tools
wpa_actiond
wpa_supplicant
wv
xclip
xf86-input-synaptics
xf86-video-intel
xf86-video-ati
xf86-video-vesa
xfsprogs
xorg-server
xorg-xev
xorg-xinit
xorg-xmessage
xorg-xmodmap
xorg-xprop
xorg-xrandr
xorg-xrdb
xorg-xset
xsel
yaourt
yasm
zathura
zathura-djvu
zathura-pdf-poppler

View File

@ -1,53 +1,48 @@
a52dec
aalib
abs
acl
acpi
aircrack-ng
aircrack-ng-scripts
alsa-lib
alsa-utils
antiword
apr
apr-util
archlinux-keyring
asciidoc
aspell
aspell-en
aspell-fr
ati-dri
atk
atkmm
atool
attr
auctex
autoconf
automake
avahi
awesome
babl
bash
bash-completion
bc
binutils
bison
bzip2
bzr
ca-certificates
cairo
cairomm
calc
catdvi
ccrypt
cdparanoia
cifs-utils
cloog
cmake
cmus
colord
compositeproto
coreutils
cracklib
crda
cronie
cryptsetup
ctags
cups
cups-filters
curl
cyrus-sasl
damageproto
@ -58,26 +53,23 @@ dbus-core
dbus-glib
desktop-file-utils
device-mapper
dhclient
dhcpcd
dialog
diffutils
dirmngr
djvulibre
dnssec-anchors
docbook-xml
docbook-xsl
dosfstools
doxygen
dri2proto
dtach
e2fsprogs
eject
elfutils
emacs-lua-mode
emacs-nox
enca
enchant
eventlog
expac
expat
faac
faad2
@ -97,9 +89,6 @@ flashplugin
flex
fontconfig
fontsproto
foomatic-db
foomatic-db-engine
foomatic-filters
fortune-mod
freeglut
freetype2
@ -132,12 +121,12 @@ glproto
gmp
gnu-netcat
gnupg
gnuplot
gnutls
gparted
gperf
gpgme
gpm
graphicsmagick
graphviz
grep
groff
gsasl
@ -151,25 +140,27 @@ gstreamer0.10-bad-plugins
gstreamer0.10-base
gstreamer0.10-ffmpeg
gstreamer0.10-good
gstreamer0.10-ugly
gstreamer0.10-ugly-plugins
gstreamer0.10-python
gtk2
gtkmm
gtkspell
gtk-update-icon-cache
gts
gzip
handbrake
hdparm
heirloom-mailx
hicolor-icon-theme
highlight
hplip
hspell
htop
hunspell
hunspell-en
hunspell-fr
hwids
iana-etc
icu
ifplugd
imagemagick
imlib2
indent
@ -177,13 +168,13 @@ inetutils
initscripts
inkscape
inputproto
intel-dri
intltool
iproute2
iptables
iputils
isl
isomaster
ispell
iw
jack
jasper
jfsutils
@ -196,16 +187,21 @@ kmod
krb5
ladspa
lame
laptop-mode-tools
latex2rtf
lcms
lcms2
ldns
less
libaio
libarchive
libass
libassuan
libasyncns
libatasmart
libavc1394
libbluray
libburn
libcaca
libcap
libcap-ng
@ -231,21 +227,22 @@ libexif
libffi
libfontenc
libftdi
libgbm
libgcrypt
libgee
libgl
libglade
libglapi
libgme
libgpg-error
libgphoto2
libgsf
libgssglue
libgusb
libice
libid3tag
libidn
libieee1284
libirman
libisoburn
libisofs
libjpeg-turbo
libksba
libldap
@ -261,7 +258,6 @@ libmodplug
libmp4v2
libmpc
libmpcdec
libmpeg2
libnice
libnl
libnotify
@ -278,14 +274,14 @@ libraw1394
librsvg
libsamplerate
libsasl
libsidplay
libsigc++
libsigsegv
libsm
libsndfile
libsoup
libspectre
libssh2
libsystemd
libstdc++5
libtasn1
libthai
libtheora
@ -329,7 +325,6 @@ libxss
libxt
libxtst
libxv
libxvmc
libxxf86dga
libxxf86vm
libzen
@ -339,15 +334,19 @@ linux-api-headers
linux-firmware
linux-lts
lirc-utils
lm_sensors
logrotate
lorcon
lrzip
lshw
lsof
ltrace
lua
luadoc
luafilesystem
luajit
luakit
lualogging
lvm2
lzo2
m4
make
man-db
@ -374,16 +373,17 @@ nawk
ncdu
ncurses
neon
net-snmp
nettle
net-tools
nmap
nspr
nss
ntfs-3g
ntfsprogs
numlockx
opencore-amr
openjpeg
openslp
openssh
openssl
orc
@ -401,16 +401,17 @@ patch
pciutils
pcmciautils
pcre
pdksh
perl
perl-error
perl-test-pod
perl-xml-parser
perl-yaml-syck
perl-locale-gettext
pidgin
pinentry
pixman
pkg-config
pkgfile
pkgstats
pkgtools
polkit
poppler
poppler-data
@ -421,6 +422,7 @@ ppp
procps-ng
psmisc
pth
pwgen
pwsafe
pygobject2-devel
pygtk
@ -430,9 +432,12 @@ python2-cairo
python2-dbus
python2-distribute
python2-gobject2
python2-pylorcon
python2-udiskie
python-configobj
python-dbus-common
python-notify
python-pycurl
randrproto
ranger
raptor
@ -441,11 +446,9 @@ recode
recordproto
reiserfsprogs
renderproto
rsync
rtmpdump
rtorrent
run-parts
sane
schroedinger
scrnsaverproto
scrot
@ -454,7 +457,6 @@ sdparm
sed
sg3_utils
shadow
shared-color-profiles
shared-mime-info
slock
smbclient
@ -462,25 +464,34 @@ soundtouch
speex
splint
sqlite
squashfs-tools
startup-notification
subversion
strace
sudo
sxiv
sysfsutils
syslinux
syslog-ng
systemd-tools
sysstat
systemd
sysvbanner
sysvinit
sysvinit-tools
t1lib
talloc
tar
task
tcc
tcpdump
tcsh
tdb
texi2html
texinfo
tree
ttf-dejavu
ttf-freefont
tzdata
udisks
unixodbc
unrar
unzip
upx
@ -491,34 +502,37 @@ valgrind
vi
vicious
videoproto
vim
vim-runtime
vlock
w3m
wget
which
wildmidi
wipe
wireless-regdb
wireless_tools
wpa_actiond
wpa_supplicant
wv
wxgtk
x264
xcb-proto
xcb-util
xcb-util-image
xcb-util-keysyms
xcb-util-wm
xclip
xextproto
xf86dgaproto
xf86-input-evdev
xf86-input-synaptics
xf86-video-intel
xf86-video-ati
xf86-video-vesa
xf86vidmodeproto
xfsprogs
xineramaproto
xkeyboard-config
xmlrpc-c
xmlto
xorg-bdftopcf
xorg-fonts-alias
xorg-fonts-encodings
@ -535,9 +549,11 @@ xorg-xev
xorg-xinit
xorg-xkbcomp
xorg-xmessage
xorg-xmodmap
xorg-xprop
xorg-xrandr
xorg-xrdb
xorg-xset
xproto
xsel
xvidcore
@ -551,3 +567,4 @@ zathura-ps
zip
zlib
zsh
zziplib

28
.save
View File

@ -141,12 +141,8 @@ do
done
## cmus
# FILELIST=(${FILELIST[*]} "$(ls .cmus/{autosave,*.theme}) ")
FILELIST=(${FILELIST[*]} ".cmus/autosave")
## Conky
FILELIST=(${FILELIST[*]} ".conkyrc")
## Emacs
FILELIST=(${FILELIST[*]} ".emacs")
FILELIST=(${FILELIST[*]} ".emacs.d/plugins")
@ -158,7 +154,7 @@ FILELIST=(${FILELIST[*]} ".gnupg/gpg-agent.conf")
## GTK
FILELIST=(${FILELIST[*]} ".gtkrc-2.0")
FILELIST=(${FILELIST[*]} ".config/gtk-3.0/settings.ini")
# FILELIST=(${FILELIST[*]} ".config/gtk-3.0/settings.ini")
## Git
FILELIST=(${FILELIST[*]} ".gitconfig")
@ -166,18 +162,9 @@ FILELIST=(${FILELIST[*]} ".gitconfig")
## Homeinit
FILELIST=(${FILELIST[*]} ".homeinit")
## Irssi
# FILELIST=(${FILELIST[*]} ".irssi")
## Luakit
FILELIST=(${FILELIST[*]} ".config/luakit/")
## LXTerminal
# FILELIST=(${FILELIST[*]} ".config/lxterminal/lxterminal.conf")
## MPlayer
# FILELIST=(${FILELIST[*]} ".mplayer")
## Mutt
FILELIST=(${FILELIST[*]} ".muttrc")
for i in $(ls -ad --indicator-style=none .mutt.d/* | grep -vi 'cache')
@ -185,9 +172,6 @@ do
FILELIST=(${FILELIST[*]} "$i")
done
## Nano
# FILELIST=(${FILELIST[*]} ".nanorc")
## Netinit
FILELIST=(${FILELIST[*]} ".netinit")
@ -223,25 +207,15 @@ FILELIST=(${FILELIST[*]} ".taskrc")
# FILELIST=(${FILELIST[*]} "$i")
# done
## Urlview
# FILELIST=(${FILELIST[*]} ".urlview")
## Vim
FILELIST=(${FILELIST[*]} ".vimrc")
## WMFS
# FILELIST=(${FILELIST[*]} ".config/wmfs")
## Xinit
FILELIST=(${FILELIST[*]} ".xinitrc")
## Xresource
FILELIST=(${FILELIST[*]} ".Xresources")
## Xscreensaver
# FILELIST=(${FILELIST[*]} ".xscreensaver")
##==============================================================================
## Archiving
##==============================================================================

View File

@ -158,7 +158,6 @@ fi
## TeXlive
if [ -d "/usr/local/texlive" ]; then
alias tli="sudo bash -c 'umask 022 && tlmgr install'"
alias tlu="sudo bash -c 'umask 022 && tlmgr update --self'"
alias tls="tlmgr search --global"
alias tll="tlmgr show --list"

View File

@ -724,8 +724,4 @@ if [ -d "/usr/local/texlive" ]; then
done
}
tls ()
{
tlmgr search --global "$@"
}
fi

View File

@ -10,20 +10,23 @@ umask 027
## Path
export PATH=.:$PATH
export MANPATH=/usr/local/man:$MANPATH
export INFOPATH=/usr/local/info:$INFOPATH
## TeXlive
TEXROOT="/usr/local/texlive"
if [ -d "${TEXROOT}" ]; then
TEXYEAR=$(/bin/ls -1r "${TEXROOT}" | grep -m1 "[0-9]\{4\}")
TEXDISTRO=$(uname | tr "[[:upper:]]" "[[:lower:]]")
TEXFOLDER="/usr/local/texlive/${TEXYEAR}/bin/$(uname -m)-${TEXDISTRO}/"
if [ -d "${TEXFOLDER}" ]; then
export PATH=${TEXFOLDER}:$PATH
fi
unset TEXYEAR
unset TEXDISTRO
unset TEXFOLDER
fi
# TEXDIR="${TEXDIR:-/usr/local/texlive}"
# if [ -d "${TEXDIR}" ]; then
# TEXYEAR=$(/bin/ls -1r "${TEXDIR}" | grep -m1 "[0-9]\{4\}")
# TEXDISTRO=$(uname | tr "[[:upper:]]" "[[:lower:]]")
# TEXFOLDER="${TEXDIR}/${TEXYEAR}/bin/$(uname -m)-${TEXDISTRO}/"
# if [ -d "${TEXFOLDER}" ]; then
# export PATH=${TEXFOLDER}:$PATH
# fi
# unset TEXYEAR
# unset TEXDISTRO
# unset TEXFOLDER
# fi
# unset TEXDIR
## Enable color support of ls.
if [ "$TERM" != "dumb" ]; then

13
README
View File

@ -98,7 +98,7 @@ Custom bindings, file association, tweaked a few options.
Scripts
*******
.network: network setup. Works with wpa_supplicant. May replace any network
.netinit: network setup. Works with wpa_supplicant. May replace any network
manager.
.homeinit: initialize a new home configuration, i.e. get needed files, create
@ -137,11 +137,17 @@ Known issues
Emacs: some colors do not work as intended.
Luakit: adblock makes Luakit crash whenever easylist.txt is not found.
adblock will not always work.
Ranger: if editor is 'emacsclient -t -a""', it will not show up if emacs daemon
is not running.
Shell: some custom functions would need auto-completion.
URxvt: using the paste function from Muennich's clipboard on the same terminal
where text was copied will make xsel crash.
Zathura: app will hang forever sometimes (when document is being regenerated, or
when launched from Ranger).
@ -150,6 +156,7 @@ Complete applist
****************
aalib
aircrack-ng
antiword
asciidoc
astyle
@ -175,6 +182,7 @@ dropbox
dtach
dvtm
emacs
expac
fbpdf
fbv
fdisk
@ -188,6 +196,7 @@ gdb
gimp
gnumeric
gnuplot
gparted
gpicview
graphicsmagick
grep
@ -207,6 +216,7 @@ lrzip
lshw
ltrace
luakit
lynx
mediainfo
mencoder
mercurial
@ -267,6 +277,7 @@ vlock
w3m
weechat
wipe
wireshark
wmfs
wv
x264