From a6dcac8edb7a101af760c0e0e3649c6a5f93476c Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Mon, 27 Dec 2021 18:22:48 +0100 Subject: machines/profpatsch: fix dunst for new dunst versions They changed all config options and a bunch of defaults. I am angery. ES BLEIBT ALLES SO, WIE ES IST --- machines/profpatsch/shiki.nix | 14 ++++++++++---- modules/user/profpatsch/services/dunst.nix | 10 +++++++++- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix index a3770764..3b145f63 100644 --- a/machines/profpatsch/shiki.nix +++ b/machines/profpatsch/shiki.nix @@ -428,13 +428,19 @@ in { # User services vuizvui.user.profpatsch.services.dunst = { enable = true; + # verbosity = "debug"; settings = { global = { - verbosity = "info"; - font = "Sans 14"; + width = "(5000, 10000)"; + format = "%s %b"; + origin = "top-left"; + font = "Sans 18"; markup = "full"; - padding = 3; - horizontal_padding = 3; + padding = 5; + horizontal_padding = 5; + # please just at the top of the screen for easy access + offset = "0x0"; + frame_width = 0; # follow keyboard focus follow = "keyboard"; max_icon_size = 45; diff --git a/modules/user/profpatsch/services/dunst.nix b/modules/user/profpatsch/services/dunst.nix index 55bc315b..0c4871b2 100644 --- a/modules/user/profpatsch/services/dunst.nix +++ b/modules/user/profpatsch/services/dunst.nix @@ -56,6 +56,14 @@ in { ''; }; + verbosity = lib.mkOption { + type = lib.types.enum [ "crit" "warn" "mesg" "info" "debug"]; + default = "mesg"; + description = '' + Verbosity of the dunst daemon on stderr. + ''; + }; + iconTheme = lib.mkOption { type = themeType; description = "Set the icon theme."; @@ -68,7 +76,7 @@ in { serviceConfig = { Type = "dbus"; BusName = "org.freedesktop.Notifications"; - ExecStart = "${lib.getBin pkgs.dunst}/bin/dunst -config ${pkgs.writeText "dunst.conf" (toDunstINI cfg.settings)}"; + ExecStart = "${lib.getBin pkgs.dunst}/bin/dunst -verbosity ${cfg.verbosity} -config ${pkgs.writeText "dunst.conf" (toDunstINI cfg.settings)}"; Restart = "on-failure"; RestartSec = "1"; }; -- cgit 1.4.1