dotfiles

custom dotfiles
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

.xinitrc (1319B)


      1 #!/bin/sh
      2 # ░█░█░▀█▀░█▀█░▀█▀░▀█▀░░
      3 # ░▄▀▄░░█░░█░█░░█░░░█░░░
      4 # ░▀░▀░▀▀▀░▀░▀░▀▀▀░░▀░░░
      5 
      6 # merge in defaults and keymaps
      7 userresources=$HOME/.Xresources
      8 usermodmap=$HOME/.Xmodmap
      9 sysresources=/etc/X11/xinit/.Xresources
     10 sysmodmap=/etc/X11/xinit/.Xmodmap
     11 
     12 # set caps to escape
     13 setxkbmap -option ctrl:nocaps
     14 xcape -e 'Control_L=Escape'
     15 
     16 # add fonts
     17 xset +fp /usr/share/fonts/local
     18 
     19 # beep and screen blank off
     20 xset b off
     21 xset s off -dpms
     22 
     23 if [ -f $sysresources ]; then
     24     xrdb -merge $sysresources
     25 fi
     26 
     27 if [ -f $sysmodmap ]; then
     28     xmodmap $sysmodmap
     29 fi
     30 
     31 if [ -f "$userresources" ]; then
     32     xrdb -merge "$userresources"
     33 fi
     34 
     35 if [ -f "$usermodmap" ]; then
     36     xmodmap "$usermodmap"
     37 fi
     38 
     39 if [ -d /etc/X11/xinit/xinitrc.d ] ; then
     40  for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
     41   [ -x "$f" ] && . "$f"
     42  done
     43  unset f
     44 fi
     45 
     46 # set nice background.
     47 xsetroot -solid '#1e1b1c'
     48 
     49 # set nice pointer cursor.
     50 xsetroot -cursor_name left_ptr &
     51 unclutter &
     52 
     53 # start light-locker
     54 light-locker &
     55 
     56 # start window manager in the background. If it dies, X still lives.
     57 2bwm &
     58 
     59 # load resources.
     60 xrdb -load ~/.Xdefaults
     61 
     62 # Start a terminal in the foreground. If this dies, X dies.
     63 urxvtd &
     64 exec urxvt -T controlterm