From fdcb3e3ca393f0f91dc52f730552daa169d7177f Mon Sep 17 00:00:00 2001 From: Cristian Miranda Date: Wed, 3 Jul 2024 10:49:21 -0300 Subject: [PATCH] :lipstick: gtk[theme]: set GTK_THEME env --- docs/Linux_Post_Install.md | 5 +++-- home/.config/gtk-3.0/settings.ini | 1 + home/dots/personal/.exports | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/Linux_Post_Install.md b/docs/Linux_Post_Install.md index bbdaf3ce..062e79e4 100644 --- a/docs/Linux_Post_Install.md +++ b/docs/Linux_Post_Install.md @@ -8,7 +8,7 @@ - [🛜 Bluetooth](#-bluetooth) - [💅 Cosmetics](#-cosmetics) - [🖼 Lock Screen](#-lock-screen) - - [💄 Qt5](#-qt5) + - [💄 Qt5 \& GTK](#-qt5--gtk) - [👋 SDDM greeter](#-sddm-greeter) - [☢️ GRUB Theme](#️-grub-theme) - [📦 Pacman](#-pacman) @@ -122,7 +122,7 @@ KernelExperimental = true betterlockscreen -u ~/wallpapers/dual/pacman.jpg --display 1 --span ``` -### 💄 Qt5 +### 💄 Qt5 & GTK ```bash sudo vim /etc/environment @@ -130,6 +130,7 @@ sudo vim /etc/environment ```bash QT_QPA_PLATFORMTHEME=qt5ct +GTK_THEME=Matcha-dark-azul # Change if GTK theme is different ``` ### 👋 SDDM greeter diff --git a/home/.config/gtk-3.0/settings.ini b/home/.config/gtk-3.0/settings.ini index e89053b7..24b1cf93 100644 --- a/home/.config/gtk-3.0/settings.ini +++ b/home/.config/gtk-3.0/settings.ini @@ -1,4 +1,5 @@ [Settings] +gtk-application-prefer-dark-theme=1 gtk-icon-theme-name=Papirus-Dark gtk-theme-name=Matcha-dark-azul gtk-cursor-theme-name=Breeze_Light diff --git a/home/dots/personal/.exports b/home/dots/personal/.exports index d5763ecd..aff58f27 100755 --- a/home/dots/personal/.exports +++ b/home/dots/personal/.exports @@ -7,6 +7,9 @@ export TERMINAL=alacritty # export GDK_DPI_SCALE=0.5 export QT_AUTO_SCREEN_SCALE_FACTOR=1 +# Set GTK Theme env variable from settings +export GTK_THEME=$(grep "gtk-theme-name" ~/.config/gtk-3.0/settings.ini | awk -F "=" '{print $2}') + export PATH=~/.local/bin:$PATH export PATH=~/bin:$PATH