From 09568737d247f43c9c7f12d7bb3724ad26215aca Mon Sep 17 00:00:00 2001 From: Dor dicke Gind Date: Sat, 16 Jul 2022 12:46:35 +0200 Subject: [PATCH] [TASK] add comments + try to fix gtk4 darkmode for root --- .xprofile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.xprofile b/.xprofile index 27d9c58..2a46775 100644 --- a/.xprofile +++ b/.xprofile @@ -12,19 +12,26 @@ # # More in https://wiki.archlinux.org/index.php/Autostarting +# use kavantum via gt5ct to style qt apps export QT_QPA_PLATFORMTHEME=qt5ct +# include the Scripts dir into PATH export PATH="$HOME/Scripts:$PATH" +# forces 1080p resultion before session inits via xfce4-session xrandr -s 1920x1080 +# execute this stuff only one time scriptExecutedOne=$(cat $HOME/.xprofile | tail -n 1) if [ "$scriptExecutedOne" != "#scriptExecuted" ]; then + # execute script to replace the user and hostname in some config files sh $HOME/Scripts/renameHomeDirInConfigs.sh + # set dark theme for gkt4 apps, userspace + gsettings set org.gnome.desktop.interface color-scheme prefer-dark + # set dark theme for root user, u have to be in group wheel for this to work + sudo dbus-launch gsettings set org.gnome.desktop.interface color-scheme prefer-dark 2&1> /dev/null + # writes #scriptExecuted at the end of this files echo "#scriptExecuted" >> $HOME/.xprofile fi -# set dark theme for gkt3 -gsettings set org.gnome.desktop.interface color-scheme prefer-dark - # workaround compiz issue half vblank refresh rate export vblank_mode=0 /usr/bin/compiz --replace &