From 257737abbfb5758c03daf773e722abce62b83499 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Fri, 21 Jun 2024 17:11:51 -0500 Subject: [PATCH] some additions to gtk --- home/home.nix | 38 ++++++++++++++++++++++++++++++++++++++ modules/desktop.nix | 1 + 2 files changed, 39 insertions(+) diff --git a/home/home.nix b/home/home.nix index d3443e3..2f06b34 100644 --- a/home/home.nix +++ b/home/home.nix @@ -275,6 +275,44 @@ in size = 32; }; + dconf.settings = { + "org/gnome/desktop/interface" = { + color-scheme = "prefer-dark"; + }; + }; + + gtk = { + enable = true; + cursorTheme = { + name = "phinger-cursors-light"; + package = pkgs.phinger-cursors; + size = 32; + }; + font = { + name = "VictorMono Nerd Font"; + size = 11; + }; + iconTheme = { + name = "Papirus-Dark"; + package = pkgs.papirus-icon-theme; + }; + theme.name = "Breeze"; + gtk3.extraConfig = { + gtk-application-prefer-dark-theme = true; + gtk-button-images = true; + gtk-decoration-layout = "icon:minimize,maximize,close"; + gtk-enable-animations = true; + gtk-enable-event-sounds = 1; + gtk-menu-images = true; + gtk-primary-button-warps-slider = true; + gtk-xft-antialias = 1; + gtk-xft-dpi = 98304; + gtk-xft-hinting = 1; + gtk-xft-hintstyle = "hintfull"; + gtk-xft-rgba = "rgb"; + }; + }; + services.cliphist = { enable = true; }; diff --git a/modules/desktop.nix b/modules/desktop.nix index 4b2769e..8d59055 100644 --- a/modules/desktop.nix +++ b/modules/desktop.nix @@ -171,6 +171,7 @@ with lib; WLR_BACKEND = "vulkan"; WLR_RENDERER = "vulkan"; XDG_SESSION_TYPE = "wayland"; + # Remember that this causes issues in some games use "unset SDL_VIDEODRIVER &&" SDL_VIDEODRIVER = "wayland"; CLUTTER_BACKEND = "wayland"; WLR_NO_HARDWARE_CURSORS = "1";