Centurion / .xinitrc

# -------------------------------------------------
# file:     ~/.xinitrc
# author:   jason ryan http://jasonwryan.com/
# vim:fenc=utf-8:nu:ai:si:et:ts=4:sw=4:ft=sh:
# -------------------------------------------------

# Source scripts in /etc/X11/xinit/xinitrc.d/
if [ -d /etc/X11/xinit/xinitrc.d ]; then
    for f in /etc/X11/xinit/xinitrc.d/*; do
        [ -x "$f" ] && . "$f"
    unset f

# load .Xresources
xrdb -merge $HOME/.Xresources

# enable restart X
setxkbmap -option terminate:ctrl_alt_bksp 

# disable CapsLock & map to Escape
setxkbmap -option caps:escape 

# compose key
setxkbmap -option compose:ralt

# numlock
numlockx &

# set wallpaper
sh $HOME/.fehbg &

# set cursor
xsetroot -cursor_name left_ptr &

# hide cursor
unclutter -noevents -idle 5 &

# start terminal emulation daemon
/usr/bin/urxvtd -q -o -f 

# clipboard synching
/usr/bin/autocutsel -fork &
/usr/bin/autocutsel -selection CLIPBOARD -fork &

# Check if mpd & other scripts are running
# and start them if they are not…
$HOME/Scripts/proc-check &

# automounting
udiskie -s &

# ---- window manager ----
# launch dwm
exec $HOME/Scripts/dwm-start

# openbox
#exec openbox-session
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.