From 7ffe4bea49e8736e93f1754e3b528982d09138cb Mon Sep 17 00:00:00 2001 From: ray Date: Sat, 22 Feb 2020 20:24:55 +0000 Subject: [PATCH] initial commit --- xinitrc | 60 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 xinitrc diff --git a/xinitrc b/xinitrc new file mode 100644 index 0000000..35aa3ba --- /dev/null +++ b/xinitrc @@ -0,0 +1,60 @@ +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +# merge in defaults and keymaps + +if [ -f $sysresources ]; then + xrdb -merge $sysresources +fi + +if [ -f $sysmodmap ]; then + xmodmap $sysmodmap +fi + +if [ -f "$userresources" ]; then + xrdb -merge "$userresources" +fi + +if [ -f "$usermodmap" ]; then + xmodmap "$usermodmap" +fi + +if [ -d /etc/X11/xinit/xinitrc.d ] ; then + for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do + [ -x "$f" ] && . "$f" + done + unset f +fi + +if [ -f "$HOME/.xinitrc.extend" ] ; then + . "$HOME/.xinitrc.extend" +fi + +~/.screenlayout/layout.sh + +setxkbmap gb +numlockx on +# keypress repeat rate +xset r rate 200 50 +# mouse acceleration off +xset m 0 0 + +# reassign AltGR to Super_L +xmodmap -e "keycode 108 = Super_L" + +# disable DPMS and screensaving +xset s off -dpms + +unclutter --timeout 1 & + +barrier_run & + +xbindkeys + +~/.fehbg & + +exec ~/.bin/start_dwm