From 7516dfa2f508231f88c83f967938be6a14b927e4 Mon Sep 17 00:00:00 2001 From: "git@cspark.dev" Date: Fri, 17 Apr 2026 20:13:08 +0100 Subject: [PATCH] QT theming, gruvbox light for EWM --- modules/nixos/cspark-desktop-ewm/home.nix | 2 ++ modules/nixos/cspark-desktop-ewm/module.nix | 9 ++++-- .../.config/qt5ct/colors/Gruvbox Light.conf | 4 +++ .../home-manager/.config/qt5ct/qt5ct.conf | 32 +++++++++++++++++++ .../.config/qt6ct/colors/Gruvbox Light.conf | 4 +++ .../home-manager/.config/qt6ct/qt6ct.conf | 32 +++++++++++++++++++ 6 files changed, 80 insertions(+), 3 deletions(-) create mode 100644 modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt5ct/colors/Gruvbox Light.conf create mode 100644 modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt5ct/qt5ct.conf create mode 100644 modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt6ct/colors/Gruvbox Light.conf create mode 100644 modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt6ct/qt6ct.conf diff --git a/modules/nixos/cspark-desktop-ewm/home.nix b/modules/nixos/cspark-desktop-ewm/home.nix index b4d56cfc..67784bd9 100644 --- a/modules/nixos/cspark-desktop-ewm/home.nix +++ b/modules/nixos/cspark-desktop-ewm/home.nix @@ -20,6 +20,8 @@ in "vesktop/themes".source = ./resources/home-manager/.config/vesktop/themes; "gtk-4.0".source = ./resources/home-manager/.config/gtk-4.0; "gtk-3.0".source = ./resources/home-manager/.config/gtk-3.0; + "qt5ct".source = ./resources/home-manager/.config/qt5ct; + "qt6ct".source = ./resources/home-manager/.config/qt6ct; }; home.file = { diff --git a/modules/nixos/cspark-desktop-ewm/module.nix b/modules/nixos/cspark-desktop-ewm/module.nix index 61bfd2dc..ccdbc4b7 100644 --- a/modules/nixos/cspark-desktop-ewm/module.nix +++ b/modules/nixos/cspark-desktop-ewm/module.nix @@ -99,13 +99,16 @@ in #lxqt.pcmanfm-qt # File Manager nautilus # File Manager lxqt.lxqt-archiver # Archiver - qt6Packages.qt6ct # Manage QT6 Themes - libsForQt5.qt5ct # Manage QT5 Themes - themechanger # Manage GTK Themes kdePackages.polkit-kde-agent-1 # Polkit Prompt for password prompts etc lxqt.lxqt-openssh-askpass # GUI to query passwords on behalf of SSH agents pavucontrol # Audio control + qt6Packages.qt6ct # Manage QT6 Themes + libsForQt5.qt5ct # Manage QT5 Themes + themechanger # Manage GTK Themes + darkly + darkly-qt5 + (pkgs.writeShellScriptBin "wl-kbptr-ewm" '' DATA=$(wl-kbptr --only-print) diff --git a/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt5ct/colors/Gruvbox Light.conf b/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt5ct/colors/Gruvbox Light.conf new file mode 100644 index 00000000..57d12d2e --- /dev/null +++ b/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt5ct/colors/Gruvbox Light.conf @@ -0,0 +1,4 @@ +[ColorScheme] +active_colors=#ff3c3836, #fffbf1c7, #ffebdbb2, #ffd5c4a1, #ffbdae93, #ffa89984, #ff3c3836, #ffffffff, #ff3c3836, #fffbf1c7, #ffebdbb2, #ffebdbb2, #ff458588, #fffbf1c7, #ff076678, #ffaf3a03, #ffbdae93, #fffbf1c7, #ff3c3836, #fffbf1c7, #803c3836 +disabled_colors=#ff928374, #fffbf1c7, #ffebdbb2, #ffd5c4a1, #ffbdae93, #ffa89984, #ff928374, #ffffffff, #ff928374, #fffbf1c7, #ffebdbb2, #ffebdbb2, #ff458588, #fffbf1c7, #ff076678, #ffaf3a03, #ffbdae93, #fffbf1c7, #ff3c3836, #fffbf1c7, #803c3836 +inactive_colors=#ff3c3836, #fffbf1c7, #ffebdbb2, #ffd5c4a1, #ffbdae93, #ffa89984, #ff3c3836, #ffffffff, #ff3c3836, #fffbf1c7, #ffebdbb2, #ffebdbb2, #ff458588, #fffbf1c7, #ff076678, #ffaf3a03, #ffbdae93, #fffbf1c7, #ff3c3836, #fffbf1c7, #803c3836 diff --git a/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt5ct/qt5ct.conf b/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt5ct/qt5ct.conf new file mode 100644 index 00000000..8c89cf69 --- /dev/null +++ b/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt5ct/qt5ct.conf @@ -0,0 +1,32 @@ +[Appearance] +color_scheme_path=/home/cspark/.config/qt5ct/colors/Gruvbox Light.conf +custom_palette=true +icon_theme=oomox-Gruvbox-Light +standard_dialogs=default +style=Darkly + +[Fonts] +fixed="MesloLGL Nerd Font,14,-1,5,50,0,0,0,0,0,Regular" +general="MesloLGL Nerd Font,14,-1,5,50,0,0,0,0,0,Regular" + +[Interface] +activate_item_on_single_click=1 +buttonbox_layout=0 +cursor_flash_time=1000 +dialog_buttons_have_icons=1 +double_click_interval=400 +gui_effects=@Invalid() +keyboard_scheme=2 +menus_have_icons=true +show_shortcuts_in_context_menus=true +stylesheets=@Invalid() +toolbutton_style=4 +underline_shortcut=1 +wheel_scroll_lines=3 + +[SettingsWindow] +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\xff\xff\xff\xfd\xff\xff\xff\xe2\0\0\a|\0\0\x3\xb1\0\0\0\0\0\0\0\x14\0\0\x5/\0\0\x5\xf\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\ay\0\0\x3\xae) + +[Troubleshooting] +force_raster_widgets=1 +ignored_applications=@Invalid() diff --git a/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt6ct/colors/Gruvbox Light.conf b/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt6ct/colors/Gruvbox Light.conf new file mode 100644 index 00000000..b83d7d39 --- /dev/null +++ b/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt6ct/colors/Gruvbox Light.conf @@ -0,0 +1,4 @@ +[ColorScheme] +active_colors=#ff3c3836, #fffbf1c7, #ffebdbb2, #ffd5c4a1, #ffbdae93, #ffa89984, #ff3c3836, #ffffffff, #ff3c3836, #fffbf1c7, #ffebdbb2, #ffebdbb2, #ff458588, #fffbf1c7, #ff076678, #ffaf3a03, #ffbdae93, #fffbf1c7, #ff3c3836, #fffbf1c7, #803c3836 +disabled_colors=#ff928374, #fffbf1c7, #ffebdbb2, #ffd5c4a1, #ffbdae93, #ffa89984, #ff928374, #ffffffff, #ff928374, #fffbf1c7, #ffebdbb2, #ffebdbb2, #ff458588, #fffbf1c7, #ff076678, #ffaf3a03, #ffbdae93, #fffbf1c7, #ff3c3836, #fffbf1c7, #803c3836 +inactive_colors=#ff3c3836, #fffbf1c7, #ffebdbb2, #ffd5c4a1, #ffbdae93, #ffa89984, #ff3c3836, #ffffffff, #ff3c3836, #fffbf1c7, #ffebdbb2, #ffebdbb2, #ff458588, #fffbf1c7, #ff076678, #ffaf3a03, #ffbdae93, #fffbf1c7, #ff3c3836, #fffbf1c7, #803c3836 \ No newline at end of file diff --git a/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt6ct/qt6ct.conf b/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt6ct/qt6ct.conf new file mode 100644 index 00000000..5d3165ce --- /dev/null +++ b/modules/nixos/cspark-desktop-ewm/resources/home-manager/.config/qt6ct/qt6ct.conf @@ -0,0 +1,32 @@ +[Appearance] +color_scheme_path=/home/cspark/.config/qt6ct/colors/Gruvbox Light.conf +custom_palette=true +icon_theme=oomox-Gruvbox-Light +standard_dialogs=xdgdesktopportal +style=Darkly + +[Fonts] +fixed="MesloLGL Nerd Font,14,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" +general="MesloLGL Nerd Font,14,-1,5,400,0,0,0,0,0,0,0,0,0,0,1,Regular" + +[Interface] +activate_item_on_single_click=1 +buttonbox_layout=0 +cursor_flash_time=1000 +dialog_buttons_have_icons=1 +double_click_interval=400 +gui_effects=@Invalid() +keyboard_scheme=2 +menus_have_icons=true +show_shortcuts_in_context_menus=true +stylesheets=@Invalid() +toolbutton_style=4 +underline_shortcut=1 +wheel_scroll_lines=3 + +[SettingsWindow] +geometry=@ByteArray(\x1\xd9\xd0\xcb\0\x3\0\0\xff\xff\xff\xfd\xff\xff\xff\xe2\0\0\a|\0\0\x3\x98\0\0\0\x1\0\0\0\x19\0\0\az\0\0\x3\xae\0\0\0\0\x2\0\0\0\a\x80\0\0\0\0\0\0\0\0\0\0\ay\0\0\x3\x95) + +[Troubleshooting] +force_raster_widgets=1 +ignored_applications=@Invalid()