make xinitrc run better by removing race conditions I guess

This commit is contained in:
2025-05-19 10:44:59 +02:00
parent d614dbf57b
commit 24591a06c9

View File

@@ -10,16 +10,17 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then
fi fi
#xrandr --setprovideroutputsource modesetting NVIDIA-G0 & # set NVIDIA as primary GPU #xrandr --setprovideroutputsource modesetting NVIDIA-G0 & # set NVIDIA as primary GPU
xrandr --auto --dpi 96 & xrandr --dpi 96
nvidia-settings -l & # apply nvidia-settings nvidia-settings -l # apply nvidia-settings
export __GL_YIELD="USLEEP" # fix for awful diagonal screen tear export __GL_YIELD="USLEEP" # fix for awful diagonal screen tear
numlockx on # ensure numlock is on before setting keymap numlockx on # ensure numlock is on before setting keymap
[[ -f "/etc/xprofile" ]] && source "/etc/xprofile" & # load the system-wide xprofile setxkbmap us -variant altgr-intl -option '' # load the correct keymap which actually has 3rd level shift
[[ -f "$HOME/.xprofile" ]] && source "$HOME/xprofile" & # load the local xprofile configuration [[ -f "/etc/xprofile" ]] && source "/etc/xprofile" # load the system-wide xprofile
[[ -f "$HOME/.Xmodmap" ]] && xmodmap "$HOME/.Xmodmap" & # load local keymap [[ -f "$HOME/.xprofile" ]] && source "$HOME/xprofile" # load the local xprofile configuration
[[ -f "$HOME/.Xmodmap" ]] && xmodmap "$HOME/.Xmodmap" # load local keymap
# unlock the keyring # unlock the keyring
eval "$(/usr/bin/gnome-keyring-daemon --start --components=secrets,ssh,gpg)" eval "$(/usr/bin/gnome-keyring-daemon --start --components=secrets,ssh,gpg)"