dotfiles

*nix config files
git clone git://git.pyratebeard.net/dotfiles.git
Log | Files | Refs | README

.xinitrc (1986B)


      1 #!/bin/sh
      2 # ░█░█░▀█▀░█▀█░▀█▀░▀█▀░░
      3 # ░▄▀▄░░█░░█░█░░█░░░█░░░
      4 # ░▀░▀░▀▀▀░▀░▀░▀▀▀░░▀░░░
      5 
      6 # stop raidsync from hogging system
      7 sudo sysctl -w dev.raid.speed_limit_max=1000
      8 
      9 # merge in defaults and keymaps
     10 userresources=$HOME/.Xresources
     11 usermodmap=$HOME/.config/xmodmap/.xmodmap
     12 sysresources=/etc/X11/xinit/.Xresources
     13 sysmodmap=/etc/X11/xinit/.Xmodmap
     14 
     15 # set caps to escape
     16 setxkbmap -option ctrl:nocaps colemak-ctrl
     17 
     18 # add fonts
     19 xset +fp /usr/share/fonts/local
     20 
     21 # beep and screen blank off
     22 xset b off
     23 xset s off -dpms
     24 
     25 if [ -f $sysresources ]; then
     26     xrdb -merge $sysresources
     27 fi
     28 
     29 if [ -f $sysmodmap ]; then
     30     xmodmap $sysmodmap
     31 fi
     32 
     33 if [ -f "$userresources" ]; then
     34     xrdb -merge "$userresources"
     35 fi
     36 
     37 if [ -f "$usermodmap" ]; then
     38     xmodmap "$usermodmap"
     39 fi
     40 xcape -e 'Control_L=Escape'
     41 
     42 if [ -d /etc/X11/xinit/xinitrc.d ] ; then
     43  for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
     44   [ -x "$f" ] && . "$f"
     45  done
     46  unset f
     47 fi
     48 
     49 # set nice background.
     50 xsetroot -solid '#2b2f2e'
     51 
     52 # set nice pointer cursor.
     53 xsetroot -cursor_name left_ptr &
     54 unclutter -b
     55 
     56 # start clipmenud
     57 clipmenud &
     58 
     59 # start light-locker
     60 #light-locker &
     61 
     62 # start window manager in the background. If it dies, X still lives.
     63 #2bwm &
     64 
     65 # load resources.
     66 xrdb -load ~/.config/urxvt/.Xdefaults
     67 
     68 # set up monitors
     69 #xrandr --output DP-1 --off --output DP-2 --off --output HDMI-1 --off --output HDMI-2 --mode 1920x1080 --pos 1920x0 --rotate left --output DVI-D-1 --primary --mode 1920x1080 --pos 0x336 --rotate normal
     70 xrandr --output DP-1 --off --output DP-2 --off --output HDMI-1 --off --output HDMI-2 --mode 1920x1080 --pos 1920x0 --rotate normal --output DVI-D-1 --primary --mode 1920x1080  --rotate normal
     71 
     72 # start urxvtd (specify LANG so fonts work correctly - remember â)
     73 LANG=en_US.UTF-8 urxvtd -q -o -f
     74 
     75 # start url shortner for mail
     76 #lxc-start urlshort
     77 
     78 # finally start wm
     79 exec herbstluftwm