From 7115fc5928798fea4167d96bc0299a9e9eb55cb2 Mon Sep 17 00:00:00 2001 From: Johannes Kresner Date: Sun, 16 Aug 2026 17:06:27 +0200 Subject: [PATCH] fix(theme): remove hyprland GTK_THEME override and inject gtk-application-prefer-dark-theme --- config/ghostty/config | 2 +- config/hypr/hyprland.lua | 2 +- config/nushell/scripts/theme-switch.nu | 8 +++++--- home.nix | 2 ++ mutable_config/btop/btop.conf | 6 +++--- mutable_config/yazi/theme.toml | 2 +- pi/agent/settings.json | 2 +- 7 files changed, 14 insertions(+), 10 deletions(-) diff --git a/config/ghostty/config b/config/ghostty/config index c955d72..231bf9a 100644 --- a/config/ghostty/config +++ b/config/ghostty/config @@ -1,7 +1,7 @@ font-family = JetBrainsMono Nerd Font theme = dark:Catppuccin Mocha,light:Catppuccin Latte window-theme = ghostty -#command = nu +command = nu background-blur = true auto-update = check macos-option-as-alt = left diff --git a/config/hypr/hyprland.lua b/config/hypr/hyprland.lua index eb579be..f6d0925 100644 --- a/config/hypr/hyprland.lua +++ b/config/hypr/hyprland.lua @@ -64,7 +64,7 @@ hl.env("TERM", "ghostty") hl.env("TERMINAL", "ghostty") hl.env("ELECTRON_OZONE_PLATFORM_HINT", "auto") hl.env("QT_QPA_PLATFORM", "wayland") -hl.env("GTK_THEME", "catppuccin-mocha-mauve-standard+default") + hl.env("PROTON_DLSS_UPGRADE", "1") --------------------- diff --git a/config/nushell/scripts/theme-switch.nu b/config/nushell/scripts/theme-switch.nu index 9f3c452..09d7ff5 100755 --- a/config/nushell/scripts/theme-switch.nu +++ b/config/nushell/scripts/theme-switch.nu @@ -86,9 +86,11 @@ def apply-theme [selected: string] { let color_scheme = if $choice == "mocha" { "prefer-dark" } else { "prefer-light" } bash -lc $"gsettings set org.gnome.desktop.interface color-scheme ($color_scheme)" - if ($"($home)/.config/gtk-3.0/settings.ini" | path exists) { - bash -lc $'sed -i "s/^gtk-theme-name=.*/gtk-theme-name=($gtk_theme)/" "$HOME/.config/gtk-3.0/settings.ini"' - } + try { + mkdir $"($home)/.config/gtk-3.0" + } catch {} + let prefer_dark = if $choice == "mocha" { "1" } else { "0" } + $"[Settings]\ngtk-theme-name=($gtk_theme)\ngtk-application-prefer-dark-theme=($prefer_dark)\n" | save -f $"($home)/.config/gtk-3.0/settings.ini" } catch { } diff --git a/home.nix b/home.nix index 07f9de6..e6576a6 100644 --- a/home.nix +++ b/home.nix @@ -45,6 +45,8 @@ owncloud-client wl-clipboard obsidian + htop + btop ]; home.file = { diff --git a/mutable_config/btop/btop.conf b/mutable_config/btop/btop.conf index 7540ed2..d6ced65 100644 --- a/mutable_config/btop/btop.conf +++ b/mutable_config/btop/btop.conf @@ -2,7 +2,7 @@ #* Name of a btop++/bpytop/bashtop formatted ".theme" file, "Default" and "TTY" for builtin themes. #* Themes should be placed in "../share/btop/themes" relative to binary or "$HOME/.config/btop/themes" -color_theme = "/home/johannes/.config/btop/themes/catppuccin_latte.theme" +color_theme = "/home/johannes/.config/btop/themes/catppuccin_mocha.theme" #* If the theme set background should be shown, set to False if you want terminal background transparency. theme_background = false @@ -61,7 +61,7 @@ graph_symbol_net = "default" graph_symbol_proc = "default" #* Manually set which boxes to show. Available values are "cpu mem net proc" and "gpu0" through "gpu5", separate values with whitespace. -shown_boxes = "cpu net proc mem" +shown_boxes = "cpu mem net proc" #* Update time in milliseconds, recommended 2000 ms or above for better sample times for graphs. update_ms = 1000 @@ -265,7 +265,7 @@ rsmi_measure_pcie_speeds = true gpu_mirror_graph = true #* Set which GPU vendors to show. Available values are "nvidia amd intel apple" -shown_gpus = "nvidia amd intel" +shown_gpus = "nvidia amd apple" #* Custom gpu0 model name, empty string to disable. custom_gpu_name0 = "" diff --git a/mutable_config/yazi/theme.toml b/mutable_config/yazi/theme.toml index 00a7314..bf96d08 100644 --- a/mutable_config/yazi/theme.toml +++ b/mutable_config/yazi/theme.toml @@ -1,2 +1,2 @@ [flavor] -use = "catppuccin-latte" +use = "catppuccin-mocha" diff --git a/pi/agent/settings.json b/pi/agent/settings.json index 2bb60f0..2b97829 100644 --- a/pi/agent/settings.json +++ b/pi/agent/settings.json @@ -20,7 +20,7 @@ "npm:@ff-labs/pi-fff", "npm:@juicesharp/rpiv-ask-user-question" ], - "theme": "catppuccin-tui-latte", + "theme": "catppuccin-tui-mocha", "hideThinkingBlock": true, "quietStartup": true, "enableInstallTelemetry": false,