.xinitrc (1732B)
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 37 # set nice pointer cursor. 38 xsetroot -cursor_name left_ptr & 39 unclutter -b 40 41 # start clipmenud 42 clipmenud & 43 44 # start light-locker 45 #light-locker & 46 47 # start window manager in the background. If it dies, X still lives. 48 #2bwm & 49 50 # load resources. 51 xrdb -load ~/.config/urxvt/.Xdefaults 52 export RXVT_SOCKET="/home/pyratebeard/.config/urxvt/urxvtd-socket" 53 54 # set up monitors 55 #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 56 #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 57 58 # start urxvtd (specify LANG so fonts work correctly - remember â) 59 LANG=en_US.UTF-8 urxvtd -q -o -f 60 61 # start url shortner for mail 62 #lxc-start urlshort 63 64 # finally start wm 65 exec herbstluftwm