dotfiles

configuration files for different softwares
git clone git://z3bra.org/dotfiles
Log | Files | Refs

commit 2199ff6a68399ea8e9189d6d3d7e4d5517d5d83a
parent 7c80f650d09b2ee4bc018c29ff098845afa44651
Author: z3bra <willy@mailoo.org>
Date:   Wed Oct  1 09:58:00 2014

Improved xinitrc/bashrc for portability

Diffstat:
 bashrc  |  2 +-
 xinitrc | 26 +++++++++++++++-----------
 2 files changed, 16 insertions(+), 12 deletions(-)

diff --git a/bashrc b/bashrc @@ -188,7 +188,7 @@ alias rcommit="curl -s 'http://whatthecommit.com/index.txt'" ## TWEAKS {{{ # change tty colors -ttycolors +which ttycolors >/dev/null 2>&1 && ttycolors # }}} # vim: fdm=marker: diff --git a/xinitrc b/xinitrc @@ -4,20 +4,21 @@ # # Set wallpaper -#hsetroot -solid \#333333 +#hsetroot -solid \#1d1d1d +hsetroot -tile ~/usr/img/bg/tile/scotland.gif # girl just wanna have fun #xantfarm -num 4 -air '#2c2c2c' -ant '#cdf318' -sand '#665847' & # Set bindings -sxhkd -c ~/etc/sxhkdrc >/dev/null 2> ~/var/log/sxhkd.log & +sxhkd -c ~/etc/sxhkdrc >/dev/null 2> /dev/null & # default cursor xsetroot -cursor_name left_ptr wm() { # Load X resources - xrdb -load ~/etc/Xresources + xrdb -I$HOME/etc/theme -load ~/etc/Xresources # set WM name xsetroot -name $1 @@ -25,23 +26,26 @@ wm() { # watch mail directory for new mails # wendy -m 256 -f ~/var/mail/INBOX/new/ -t 500 -e beep & - # enable RGBA module for GTK - # export GTK_MODULES=rgba - # get screen size IFS='x' read w h <<< "$(xrandr | awk '/\*/ {print $1}')" - font='-*-stlarch-medium-*-*--10-*-*-*-*-*-*-*' - font="${font},-*-gohufont-medium-*-*--11-*-*-*-*-*-iso10646-1" + icon="-*-stlarch-medium-*-*--10-*-*-*-*-*-*-*" + font="*-gohufont-medium-*-*--11-*-*-*-*-*-iso10646-1" + + export w h icon font + + echo | bar -p -B\#ff1d1d1d -g $((w - 20))x32+10+10 & sleep 0.1 + echo | bar -p -B\#ff4c4c4c -g $((w - 26))x26+13+13 & sleep 0.1 + while :; do ~/bin/mkbar - done | bar -f "$font" -B\#00000000 -b -g $((w - 20))x20+10+2 & + done | bar -f "$icon,$font" -B\#ff1d1d1d -g $((w - 30))x22+15+15 & $@ & exec xcompmgr } -test -z "$@" && wm $@ +test -z "$@" && wm 2bwm -wm 2bwm +wm $@