dotfiles

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

.xinitrc (1786B)


      1 #!/bin/sh
      2 # ░█░█░▀█▀░█▀█░▀█▀░▀█▀░░
      3 # ░▄▀▄░░█░░█░█░░█░░░█░░░
      4 # ░▀░▀░▀▀▀░▀░▀░▀▀▀░░▀░░░
      5 
      6 # merge in defaults and keymaps
      7 userresources=$HOME/.Xresources
      8 sysresources=/etc/X11/xinit/.Xresources
      9 sysmodmap=/etc/X11/xinit/.Xmodmap
     10 
     11 # beep and screen blank off
     12 xset b off
     13 xset s off -dpms
     14 
     15 if [ -f $sysresources ]; then
     16     xrdb -merge $sysresources
     17 fi
     18 
     19 if [ -f $sysmodmap ]; then
     20     xmodmap $sysmodmap
     21 fi
     22 
     23 if [ -f "$userresources" ]; then
     24     xrdb -merge "$userresources"
     25 fi
     26 
     27 if [ -d /etc/X11/xinit/xinitrc.d ] ; then
     28  for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
     29   [ -x "$f" ] && . "$f"
     30  done
     31  unset f
     32 fi
     33 
     34 # set nice background.
     35 xsetroot -solid '#2b2f2e'
     36 feh --bg-tile ~/.local/share/wallpaper/coil-green.png
     37 
     38 # set nice pointer cursor.
     39 xsetroot -cursor_name left_ptr &
     40 unclutter -b
     41 
     42 # start clipmenud
     43 clipmenud &
     44 
     45 # start light-locker
     46 #light-locker &
     47 
     48 # start window manager in the background. If it dies, X still lives.
     49 #2bwm &
     50 
     51 # load resources.
     52 xrdb -load ~/.config/urxvt/.Xdefaults
     53 export RXVT_SOCKET="/home/pyratebeard/.config/urxvt/urxvtd-socket"
     54 
     55 # set up monitors
     56 #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
     57 #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
     58 
     59 # start urxvtd (specify LANG so fonts work correctly - remember â)
     60 LANG=en_US.UTF-8 urxvtd -q -o -f
     61 
     62 # start url shortner for mail
     63 #lxc-start urlshort
     64 
     65 # finally start wm
     66 exec herbstluftwm