From 56bfd291369f96dd852fdcdc0083f12e5b12f28f Mon Sep 17 00:00:00 2001 From: Jack Foltz Date: Sat, 1 Dec 2018 13:32:58 -0500 Subject: [PATCH] Add xinitrc --- lain/.xinitrc | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 lain/.xinitrc diff --git a/lain/.xinitrc b/lain/.xinitrc new file mode 100644 index 0000000..c69f4a3 --- /dev/null +++ b/lain/.xinitrc @@ -0,0 +1,36 @@ +#!/bin/sh + +userresources=$HOME/.Xresources +usermodmap=$HOME/.Xmodmap +sysresources=/etc/X11/xinit/.Xresources +sysmodmap=/etc/X11/xinit/.Xmodmap + +xrdb $userresources + +# 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 + +# start some nice programs + +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 + +exec i3 >~/.config/i3/log