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

50 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;
2021-04-22 07:24:56 +00:00
theme.name = "elkowars_phocus";
2020-08-30 17:00:09 +00:00
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;
}
2020-11-14 22:32:12 +00:00
/*#Emacs > box {
2020-11-08 18:36:33 +00:00
padding: 20px;
2020-11-14 22:32:12 +00:00
}*/
2020-08-16 21:05:10 +00:00
'';
};
};
}