feat: add global theme mode and Yazi shortcut
- Added theme.mode to config.nix for global dark/light mode control. - Updated Matugen to apply GTK dark mode preferences based on the global theme. - Added a Hyprland bind (SUPER+X) to launch Yazi via uwsm.
This commit is contained in:
@@ -352,6 +352,15 @@
|
|||||||
platformTheme.name = "gtk";
|
platformTheme.name = "gtk";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
dconf.settings = {
|
||||||
|
"org/gnome/desktop/interface" = {
|
||||||
|
color-scheme =
|
||||||
|
if myConfig.theme.mode == "dark"
|
||||||
|
then "prefer-dark"
|
||||||
|
else "prefer-light";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
# GTK theming with adw-gtk3 and Matugen colors
|
# GTK theming with adw-gtk3 and Matugen colors
|
||||||
gtk = {
|
gtk = {
|
||||||
enable = true;
|
enable = true;
|
||||||
@@ -364,7 +373,19 @@
|
|||||||
package = pkgs.papirus-icon-theme;
|
package = pkgs.papirus-icon-theme;
|
||||||
};
|
};
|
||||||
gtk3.extraCss = ''@import url("colors.css");'';
|
gtk3.extraCss = ''@import url("colors.css");'';
|
||||||
|
gtk3.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme =
|
||||||
|
if myConfig.theme.mode == "dark"
|
||||||
|
then 1
|
||||||
|
else 0;
|
||||||
|
};
|
||||||
gtk4.extraCss = ''@import url("colors.css");'';
|
gtk4.extraCss = ''@import url("colors.css");'';
|
||||||
|
gtk4.extraConfig = {
|
||||||
|
gtk-application-prefer-dark-theme =
|
||||||
|
if myConfig.theme.mode == "dark"
|
||||||
|
then 1
|
||||||
|
else 0;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.ghostty.settings.theme = "matugen";
|
programs.ghostty.settings.theme = "matugen";
|
||||||
|
|||||||
@@ -71,6 +71,12 @@
|
|||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
wayland.windowManager.hyprland.settings = {
|
||||||
|
bindd = [
|
||||||
|
"SUPER, X, Open File Manager, exec, uwsm app -- yazi"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
programs.yazi = {
|
programs.yazi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
|
|||||||
@@ -16,6 +16,9 @@
|
|||||||
email = "kenji@hakase";
|
email = "kenji@hakase";
|
||||||
defaultBranch = "master";
|
defaultBranch = "master";
|
||||||
};
|
};
|
||||||
|
theme = {
|
||||||
|
mode = "dark";
|
||||||
|
};
|
||||||
terminal = {
|
terminal = {
|
||||||
default = "ghostty";
|
default = "ghostty";
|
||||||
font = "MonoLisa";
|
font = "MonoLisa";
|
||||||
@@ -74,6 +77,9 @@
|
|||||||
email = "kenji@macbook";
|
email = "kenji@macbook";
|
||||||
defaultBranch = "master";
|
defaultBranch = "master";
|
||||||
};
|
};
|
||||||
|
theme = {
|
||||||
|
mode = "dark";
|
||||||
|
};
|
||||||
terminal = {
|
terminal = {
|
||||||
default = "ghostty";
|
default = "ghostty";
|
||||||
font = "MonoLisa";
|
font = "MonoLisa";
|
||||||
|
|||||||
Reference in New Issue
Block a user