mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-25 04:21:53 -05:00
mako: migrate to font modules
This commit is contained in:
parent
f04298cdd4
commit
d0e5071b4a
|
@ -3,25 +3,27 @@
|
||||||
lib,
|
lib,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
config = lib.mkIf config.ar.home.services.mako.enable {
|
cfg = config.ar.home;
|
||||||
|
in {
|
||||||
|
config = lib.mkIf cfg.services.mako.enable {
|
||||||
services.mako = {
|
services.mako = {
|
||||||
actions = true;
|
actions = true;
|
||||||
anchor = "top-center";
|
anchor = "top-center";
|
||||||
backgroundColor = "${config.ar.home.theme.colors.background}CC";
|
backgroundColor = "${cfg.theme.colors.background}CC";
|
||||||
borderColor = "${config.ar.home.theme.colors.primary}EE";
|
borderColor = "${cfg.theme.colors.primary}EE";
|
||||||
borderRadius = 10;
|
borderRadius = 10;
|
||||||
borderSize = 2;
|
borderSize = 2;
|
||||||
defaultTimeout = 10000;
|
defaultTimeout = 10000;
|
||||||
enable = true;
|
enable = true;
|
||||||
font = "${config.gtk.font.name} Regular ${toString config.gtk.font.size}";
|
font = "${cfg.theme.sansFont.name} Regular ${toString cfg.theme.sansFont.size}";
|
||||||
height = 300;
|
height = 300;
|
||||||
iconPath = "${pkgs.papirus-icon-theme}/share/icons/Papirus/";
|
iconPath = "${pkgs.papirus-icon-theme}/share/icons/Papirus/";
|
||||||
icons = true;
|
icons = true;
|
||||||
layer = "top";
|
layer = "top";
|
||||||
margin = "20,0";
|
margin = "20,0";
|
||||||
padding = "15";
|
padding = "15";
|
||||||
textColor = "${config.ar.home.theme.colors.text}";
|
textColor = "${cfg.theme.colors.text}";
|
||||||
width = 400;
|
width = 400;
|
||||||
|
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
|
|
Loading…
Reference in a new issue