From 24591a06c95154b06c8510cc64f1c88e31c452c5 Mon Sep 17 00:00:00 2001 From: Quinn Date: Mon, 19 May 2025 10:44:59 +0200 Subject: [PATCH] make xinitrc run better by removing race conditions I guess --- .xinitrc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.xinitrc b/.xinitrc index a6265db..d736944 100755 --- a/.xinitrc +++ b/.xinitrc @@ -10,16 +10,17 @@ if [ -d /etc/X11/xinit/xinitrc.d ]; then fi #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 numlockx on # ensure numlock is on before setting keymap -[[ -f "/etc/xprofile" ]] && source "/etc/xprofile" & # load the system-wide xprofile -[[ -f "$HOME/.xprofile" ]] && source "$HOME/xprofile" & # load the local xprofile configuration -[[ -f "$HOME/.Xmodmap" ]] && xmodmap "$HOME/.Xmodmap" & # load local keymap +setxkbmap us -variant altgr-intl -option '' # load the correct keymap which actually has 3rd level shift +[[ -f "/etc/xprofile" ]] && source "/etc/xprofile" # load the system-wide xprofile +[[ -f "$HOME/.xprofile" ]] && source "$HOME/xprofile" # load the local xprofile configuration +[[ -f "$HOME/.Xmodmap" ]] && xmodmap "$HOME/.Xmodmap" # load local keymap # unlock the keyring eval "$(/usr/bin/gnome-keyring-daemon --start --components=secrets,ssh,gpg)"