dotfiles

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

commit 011a33a9e0f36aafaf293766ccde3c06fe27a364
parent baba2fa25f42b0826f83cdac3916053f05842c51
Author: Willy Goiffon <w.goiffon@gmail.com>
Date:   Mon Aug  5 12:30:06 2013

improved xinitrc to allow multiple server at the same time

Diffstat:
 xinitrc | 50 +++++++++++++++++++++++++++++++++-----------------
 1 file changed, 33 insertions(+), 17 deletions(-)

diff --git a/xinitrc b/xinitrc @@ -3,28 +3,44 @@ # ~/.xinitrc # -# enable RGBA module for GTK -export GTK_MODULES=rgba - # load nvidia config nvidia-settings -l +# default cursor xsetroot -cursor_name left_ptr & -# Load X resources -xrdb -load ~/.Xresources & -# personnal bindings -xbindkeys -#status bar -~/bin/bar/status.sh & +function wm() { + # Load X resources + xrdb -load ~/.Xresources & + + # personnal bindings + xbindkeys + + #status bar + ~/bin/bar/status.sh & + + # Set wallpaper + hsetroot -fill ~/usr/img/bg/shblah.png & + + # Compositing + # enable RGBA module for GTK + export GTK_MODULES=rgba -# Set wallpaper -#feh --bg-fill --no-fehbg ~/usr/img/bg/cubes.jpg & -hsetroot -fill ~/usr/img/bg/shblah.png & + # compton -cCb -t-5 -l-5 -r4.2 -o.4 + compton -cCb -r16 -t-22 -l-22 -o.8 -# Compositing -# compton -cCb -t-5 -l-5 -r4.2 -o.4 -compton -cCb -r16 -t-22 -l-22 -o.8 + # spawn window manager + case $1 in + rat) exec ratpoison;; + cwm) exec cwm;; + esac +} -# Choose WM -exec cwm +case $1 in + cwm) wm cwm;; + rat) wm rat;; + qlp) exec ~/.quakelive/qlprism/qlprism.sh;; + q3a) exec /opt/quake3/iodfengine.x86_64;; + cub) exec sauerbraten-client;; + *) wm cwm;; +esac