Skip to content

Instantly share code, notes, and snippets.

@Vaisakhkm2625
Last active March 2, 2023 04:50
Show Gist options
  • Save Vaisakhkm2625/765e66586a1520cd063e6307e9917da5 to your computer and use it in GitHub Desktop.
Save Vaisakhkm2625/765e66586a1520cd063e6307e9917da5 to your computer and use it in GitHub Desktop.
Trying to fix THEME nightmare of linux

env vaiables for wayland can stored in /etc/environment

dolphin

QT_QPA_PLATFORMTHEME=qt5ct dolphin

https://wiki.archlinux.org/title/qt (topic 3.5)

GTK_THEME=Adwaita:dark libreoffice

so GTK_THEME=Adwaita:dark as env variable will make libreoffice and other gtk applications to use proper gtk theme https://wiki.archlinux.org/title/GTK#Themes

https://wiki.archlinux.org/title/Uniform_look_for_Qt_and_GTK_applications#Qt_applications_run_on_GNOME_Wayland_have_a_non-matching_window_decoration_look,_even_after_setting_a_Qt_theme In order to have a matching window decoration look, you have to install qgnomeplatform-qt5, and set the following environment variable: QT_QPA_PLATFORMTHEME='gnome' This fix is guaranteed to work with Adwaita or Adwaita-dark.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment