Add X config files

This commit is contained in:
ItsDrike 2021-07-14 15:08:47 +02:00
parent 9cade487cb
commit 293840aafa
No known key found for this signature in database
GPG key ID: B5F6B41F708C3ADD
4 changed files with 26 additions and 0 deletions

18
home/.config/x11/xinitrc Normal file
View file

@ -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

View file

@ -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

1
home/.xinitrc Symbolic link
View file

@ -0,0 +1 @@
.config/x11/xinitrc

1
home/.xprofile Symbolic link
View file

@ -0,0 +1 @@
.config/x11/xprofile