dotfiles

$HOME is where the <3 is
git clone git://git.alexkarle.com/dotfiles.git
Log | Files | Refs | Submodules | README

.xinitrc (1056B) [raw]


      1 # This is the config I use for dwm + startx
      2 setxkbmap -option caps:ctrl_modifier
      3 slstatus &
      4 
      5 if [ -e ~/background.png ]; then
      6     feh --bg-fill ~/background.png
      7 else
      8     xsetroot -solid black
      9 fi
     10 
     11 if [ $(uname) = "OpenBSD" ]; then
     12     # On my thinkpad, I seem to need these xinput calls to get
     13     # middle click scroll to work on OpenBSD. Linux is fine
     14     xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation" 1
     15     xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Button" 2
     16     xinput set-prop "/dev/wsmouse" "WS Pointer Wheel Emulation Axes" 6 7 4 5
     17 
     18     # since xenodm is run as root, we need to export ENV
     19     # ~/.shrc otherwise the interactive shells spawned in st
     20     # won't have the right profile. Sourcing .profile should do it
     21     # and get local aliases, etc
     22     . $HOME/.profile
     23 
     24     # Prefer UTF-8 in X for unicode character support
     25     export LC_CTYPE="en_US.UTF-8"
     26 
     27     # Lock on 5m idle
     28     xidle -program "/usr/X11R6/bin/xlock" -timeout 300 &
     29 
     30     # xenodm handles ssh-agent for us
     31     exec cwm
     32 else
     33     ssh-agent dwm
     34 fi