Move GTK theming to abstract to allow use with hyprland as well

This commit is contained in:
Evie Litherland-Smith 2023-04-11 13:01:23 +01:00
parent 0bdb0321ab
commit 456eaff23a
3 changed files with 24 additions and 6 deletions

14
nixos/home-manager/env/gtk.nix vendored Normal file
View file

@ -0,0 +1,14 @@
{ pkgs, ... }:
{
gtk = {
enable = true;
cursorTheme = {
package = pkgs.catppuccin-cursors.macchiatoDark;
name = "Catppuccin-Macchiato-Dark-Cursors";
};
theme = {
package = pkgs.catppuccin-gtk;
name = "Catppuccin-Frappe-Standard-Blue-Dark";
};
};
}

View file

@ -1,4 +1,4 @@
{ ... }: { pkgs, ... }:
let let
flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz"; flake-compat = builtins.fetchTarball "https://github.com/edolstra/flake-compat/archive/master.tar.gz";
@ -9,8 +9,16 @@ in
{ {
imports = [ imports = [
hyprland.homeManagerModules.default hyprland.homeManagerModules.default
./gtk.nix
./dunst.nix
]; ];
home.packages = with pkgs; [
hyprpaper
wofi
dolphin
swaybg
];
wayland.windowManager.hyprland = { wayland.windowManager.hyprland = {
enable = true; enable = true;
xwayland = { xwayland = {

View file

@ -2,6 +2,7 @@
{ {
imports = [ imports = [
./xresources.nix ./xresources.nix
./gtk.nix
./bspwm.nix ./bspwm.nix
./sxhkd.nix ./sxhkd.nix
./picom.nix ./picom.nix
@ -9,8 +10,6 @@
./polybar.nix ./polybar.nix
]; ];
home.packages = with pkgs; [ home.packages = with pkgs; [
catppuccin-gtk
catppuccin-cursors.macchiatoDark
xfce.thunar xfce.thunar
ranger ranger
flameshot flameshot
@ -22,9 +21,6 @@
"general/LockCommand" = "i3lock-fancy"; "general/LockCommand" = "i3lock-fancy";
}; };
xsettings = { xsettings = {
"Net/ThemeName" = "Catppuccin-Frappe-Standard-Blue-Dark";
"Gtk/CursorThemeName" = "Catppuccin-Macchiato-Dark-Cursors";
"Gtk/FontName" = "Sans 12";
"Gtk/MonospaceFontName" = "FiraCode Nerd Font 12"; "Gtk/MonospaceFontName" = "FiraCode Nerd Font 12";
}; };
}; };