From 4941815a5f00bc0d8d4f9df4b114cb97be9a9933 Mon Sep 17 00:00:00 2001 From: Alexander Hess Date: Fri, 14 Aug 2026 17:14:14 +0200 Subject: [PATCH] tmp fix dark/light toggle --- .config/gnome-settings/misc.ini | 14 +++++++++++++- .config/gnome-settings/shell-extensions.ini | 2 +- .local/bin/dark-theme-toggle | 4 ++++ 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.config/gnome-settings/misc.ini b/.config/gnome-settings/misc.ini index 999c010..a80c3eb 100644 --- a/.config/gnome-settings/misc.ini +++ b/.config/gnome-settings/misc.ini @@ -189,7 +189,19 @@ clock-show-date=true clock-show-seconds=true clock-show-weekday=true -color-scheme='prefer-dark' +# Options are: +# - "default" +# Basically a light theme +# where some of the shell chrome remains dark (e.g., the top bar) +# - "prefer-dark" +# Official dark theme, +# selectable in the `gnome-control-center` +# - "prefer-light" +# Unofficial light theme, +# not selectable in the `gnome-control-center`, +# but usable via the "Dark Style" toggle in the quick settings menu +# with the "Light Style" extension +color-scheme='prefer-light' # document-font-name='Cantarell 11' diff --git a/.config/gnome-settings/shell-extensions.ini b/.config/gnome-settings/shell-extensions.ini index 271619f..87ef721 100644 --- a/.config/gnome-settings/shell-extensions.ini +++ b/.config/gnome-settings/shell-extensions.ini @@ -7,7 +7,7 @@ [org/gnome/shell] -enabled-extensions=['AlphabeticalAppGrid@stuarthayhurst', 'app-hider@lynith.dev', 'appindicator-hider@theophilediot.github.io', 'appindicatorsupport@rgcjonas.gmail.com', 'auto-move-windows@gnome-shell-extensions.gcampax.github.com', 'drive-menu@gnome-shell-extensions.gcampax.github.com', 'forge@jmmaranan.com', 'just-perfection-desktop@just-perfection', 'launch-new-instance@gnome-shell-extensions.gcampax.github.com', 'no-screenshot-box@screenshot', 'panel-date-format@keiii.github.com', 'rounded-window-corners@fxgn', 'space-bar@luchrioh'] +enabled-extensions=['AlphabeticalAppGrid@stuarthayhurst', 'app-hider@lynith.dev', 'appindicator-hider@theophilediot.github.io', 'appindicatorsupport@rgcjonas.gmail.com', 'auto-move-windows@gnome-shell-extensions.gcampax.github.com', 'drive-menu@gnome-shell-extensions.gcampax.github.com', 'forge@jmmaranan.com', 'just-perfection-desktop@just-perfection', 'launch-new-instance@gnome-shell-extensions.gcampax.github.com', 'light-style@gnome-shell-extensions.gcampax.github.com', 'no-screenshot-box@screenshot', 'panel-date-format@keiii.github.com', 'rounded-window-corners@fxgn', 'space-bar@luchrioh'] disabled-extensions=@as [] diff --git a/.local/bin/dark-theme-toggle b/.local/bin/dark-theme-toggle index a38e7ad..99f2523 100755 --- a/.local/bin/dark-theme-toggle +++ b/.local/bin/dark-theme-toggle @@ -18,13 +18,17 @@ LIGHT_COLOR='#DEEDF1' if [ "$(gsettings get $Interface color-scheme)" = "'prefer-dark'" ]; then + # See comments for "color-scheme" under [org/gnome/desktop/interface] + # in ~/.config/gnome-settings/misc.ini gsettings set $Interface color-scheme 'prefer-light' + # gsettings set $Background primary-color "$LIGHT_COLOR" # gsettings set $Background secondary-color "$LIGHT_COLOR" else gsettings set $Interface color-scheme 'prefer-dark' + # gsettings set $Background primary-color "$DARK_COLOR" # gsettings set $Background secondary-color "$DARK_COLOR"