dots-of-war/files/nix-stuff/nixpkgs/modules/desktop/gtk.nix

47 lines
1.2 KiB
Nix
Raw Normal View History

2020-08-16 21:05:10 +00:00
{ config, lib, pkgs, ... }:
let
cfg = config.elkowar.desktop.gtk;
in
{
options.elkowar.desktop.gtk = {
enable = lib.mkEnableOption "Enable gtk configuration";
};
config = lib.mkIf cfg.enable {
gtk = {
enable = true;
2020-08-30 17:00:09 +00:00
theme.name = "my_phocus";
iconTheme.name = "oomox-materia-dark";
#iconTheme.name = "Numix";
2020-08-16 21:05:10 +00:00
#font.name = "Terminus (TTF) 12";
font.name = "xos4 Terminus 12";
gtk2.extraConfig = ''gtk-theme-name = "Adwaita-dark"'';
gtk3.extraConfig = {
gtk-menu-images = 1;
gtk-xft-hinting = 1;
gtk-xft-rgba = "rgb";
gtk-application-prefer-dark-theme = 1;
gtk-decoration-layout = ":";
gtk-toolbar-style = "GTK_TOOLBAR_ICONS";
gtk-toolbar-icon-size = "GTK_ICON_SIZE_LARGE_TOOLBAR";
2020-09-20 08:29:51 +00:00
#gtk-enable-even-sounds = 0;
2020-08-16 21:05:10 +00:00
gtk-enable-input-feedback-sounds = 0;
gtk-button-images = 1;
2020-09-20 08:29:51 +00:00
#ctk-cursor-theme-name = "capitaine-cursors-light";
2020-08-16 21:05:10 +00:00
gtk-cursor-theme-size = 0;
};
gtk3.extraCss = ''
.termite {
padding: 15px;
}
vte-terminal {
padding: 10px;
}
'';
};
};
}