diff --git a/home/.config/x11/xinitrc b/home/.config/x11/xinitrc new file mode 100644 index 0000000..9199d49 --- /dev/null +++ b/home/.config/x11/xinitrc @@ -0,0 +1,18 @@ +#!/bin/sh + +# xinitrc runs automatically when startx is ran + +# There are some important commands that need to be executed when we start +# the graphical environment. There is a link to this file in ~/.xprofile +# because that file is ran automatically if someone uses a display manager +# (login screen) and so they are needed there. To prevent doubling up commands +# I source them here with the line below. + +if [ -f "${XDG_CONFIG_HOME:-$HOME/config}/x11/xprofile" ]; then + source "${XDG_CONFIG_HOME:-$HOME/.config}/x11/xprofile" +else + source "$HOME/.xprofile" +fi + +exec xmonad + diff --git a/home/.config/x11/xprofile b/home/.config/x11/xprofile new file mode 100644 index 0000000..85946fc --- /dev/null +++ b/home/.config/x11/xprofile @@ -0,0 +1,6 @@ +#!/bin/bash + +# This file runs when a DM logs you into a graphical session +# if you use startx/xinit this file should also be soruced. + +xrandr --output eDP-1 --auto --output HDMI-1 --auto --left-of eDP-1 diff --git a/home/.xinitrc b/home/.xinitrc new file mode 120000 index 0000000..518bb5d --- /dev/null +++ b/home/.xinitrc @@ -0,0 +1 @@ +.config/x11/xinitrc \ No newline at end of file diff --git a/home/.xprofile b/home/.xprofile new file mode 120000 index 0000000..61f87a7 --- /dev/null +++ b/home/.xprofile @@ -0,0 +1 @@ +.config/x11/xprofile \ No newline at end of file