.xinitrc (1989B)
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/.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 xmodmap ~/.xmodmap 18 xcape -e 'Control_L=Escape' 19 20 # add fonts 21 xset +fp /usr/share/fonts/local 22 23 # beep and screen blank off 24 xset b off 25 xset s off -dpms 26 27 if [ -f $sysresources ]; then 28 xrdb -merge $sysresources 29 fi 30 31 if [ -f $sysmodmap ]; then 32 xmodmap $sysmodmap 33 fi 34 35 if [ -f "$userresources" ]; then 36 xrdb -merge "$userresources" 37 fi 38 39 if [ -f "$usermodmap" ]; then 40 xmodmap "$usermodmap" 41 fi 42 43 if [ -d /etc/X11/xinit/xinitrc.d ] ; then 44 for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do 45 [ -x "$f" ] && . "$f" 46 done 47 unset f 48 fi 49 50 # set nice background. 51 xsetroot -solid '#2b2f2e' 52 53 # set nice pointer cursor. 54 xsetroot -cursor_name left_ptr & 55 unclutter -b 56 57 # start clipmenud 58 clipmenud & 59 60 # start light-locker 61 #light-locker & 62 63 # start window manager in the background. If it dies, X still lives. 64 #2bwm & 65 66 # load resources. 67 xrdb -load ~/.config/urxvt/.Xdefaults 68 69 # set up monitors 70 #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 71 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 72 73 # start urxvtd (specify LANG so fonts work correctly - remember â) 74 LANG=en_US.UTF-8 urxvtd -q -o -f 75 76 # start url shortner for mail 77 #lxc-start urlshort 78 79 # finally start wm 80 exec herbstluftwm