diff options
author | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-26 04:08:53 -0300 |
---|---|---|
committer | mono-b <monoblanco@DRAINERDOMAIN.localdomain> | 2022-12-26 04:08:53 -0300 |
commit | 8dc8f2d52338fd87e7763995e6732f5a295300e8 (patch) | |
tree | 56ea8a124b9a81e42251ffa1be92ad6475d7bef3 /X11/.xinitrc |
huh
Diffstat (limited to 'X11/.xinitrc')
-rw-r--r-- | X11/.xinitrc | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/X11/.xinitrc b/X11/.xinitrc new file mode 100644 index 0000000..3c270fd --- /dev/null +++ b/X11/.xinitrc @@ -0,0 +1,36 @@ +#!/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 + +# 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 + +runsvdir $HOME/.config/sv & +exec i3 |