dotfiles

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

commit 7c80f650d09b2ee4bc018c29ff098845afa44651
parent 94a98cde01ae80639bcd9e23ed704c6573c6088f
Author: z3bra <willy@mailoo.org>
Date:   Tue Sep 30 17:54:11 2014

Merge branch 'master' of git://z3bra.org/dotfiles

Conflicts:
	Xresources

Diffstat:
 bashrc  | 12 +++++++-----
 xinitrc | 17 ++---------------
 2 files changed, 9 insertions(+), 20 deletions(-)

diff --git a/bashrc b/bashrc @@ -14,15 +14,17 @@ fg=('\[\e[0;30m\]' '\[\e[0;31m\]' '\[\e[0;32m\]' '\[\e[0;33m\]' '\[\e[1;34m\]' '\[\e[1;35m\]' '\[\e[1;36m\]' '\[\e[1;37m\]') nofg='\[\e[0m\]' -#MIN=1 +PS1='' + +#MIN=8 #MAX=15 #RANDOM_COLOR=$(( $MIN+(`od -An -N2 -i /dev/random` )%($MAX-$MIN+1) )) #fd=${fg[$RANDOM_COLOR]} -fd=${fg[15]} -PS1='' -test -n "$SSH_CLIENT" && PS1="${fg[8]} $(hostname|cut -b-1) ${fd}" -export PS1="${fd}─$PS1──${nofg} " +test -n "$SSH_CLIENT" && PS1="${fg[8]}$(hostname|cut -b 1-3)" + +fd=${fg[15]} +export PS1="${PS1}${fd}_ ${nofg}" # use auto-completion after those words complete -cf sudo diff --git a/xinitrc b/xinitrc @@ -5,13 +5,11 @@ # Set wallpaper #hsetroot -solid \#333333 -~/bin/setwall ~/usr/img/bg/default.jpg # girl just wanna have fun #xantfarm -num 4 -air '#2c2c2c' -ant '#cdf318' -sand '#665847' & # Set bindings -#xbindkeys sxhkd -c ~/etc/sxhkdrc >/dev/null 2> ~/var/log/sxhkd.log & # default cursor @@ -44,17 +42,6 @@ wm() { exec xcompmgr } -function run() { - # start specified app - exec $@ -} - -test -z $1 && wm 2bwm +test -z "$@" && wm $@ -case $1 in - steam) run steam;; - defrag) run ioquake3;; - teeworlds) run teeworlds;; - sauerbraten) run sauerbraten-client;; - *) wm $1;; -esac +wm 2bwm