I wish my /etc/environment file had this when I login into Gnome:
QT_AUTO_SCREEN_SCALE_FACTOR=1 QT_QPA_PLATFORMTHEME=gnome QT_STYLE_OVERRIDE=kvantum
And this, when I Iogin into another window manager:
QT_QPA_PLATFORMTHEME=qt5ct QT_AUTO_SCREEN_SCALE_FACTOR=0
I guess it should be possible to do that using ~/.xinitrc
~/.xinitrc
if [[ "$DESKTOP_SESSION" == gnome ]]; then QT_AUTO_SCREEN_SCALE_FACTOR=1 QT_QPA_PLATFORMTHEME=gnome QT_STYLE_OVERRIDE=kvantum else QT_QPA_PLATFORMTHEME=qt5ct QT_AUTO_SCREEN_SCALE_FACTOR=0 fi
Put it to your xinitrc, bashrc, zshrc or somewhere.
I would think DM might be the best place?
I’ve added it into xprofile. It worked.
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.