about summary refs log tree commit diff
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2021-03-05 22:31:54 +0100
committerProfpatsch <mail@profpatsch.de>2021-03-05 22:56:29 +0100
commit6e80c6cfeb9930f83f6d109a5b76cc839e38de23 (patch)
tree3b0dbb7f1632a0d74a8dcc6ab3159fa6b75d26a4
parentfe262baf4d2f3085caa3bb45e1d3ef7150bd70a0 (diff)
machines/shiki: make dunst follow keyboard focus
-rw-r--r--machines/profpatsch/shiki.nix3
-rw-r--r--modules/user/profpatsch/services/dunst.nix1
2 files changed, 4 insertions, 0 deletions
diff --git a/machines/profpatsch/shiki.nix b/machines/profpatsch/shiki.nix
index 53ee4765..88505105 100644
--- a/machines/profpatsch/shiki.nix
+++ b/machines/profpatsch/shiki.nix
@@ -372,10 +372,13 @@ in {
       enable = true;
       settings = {
         global = {
+          verbosity = "info";
           font = "Sans 14";
           markup = "full";
           padding = 3;
           horizontal_padding = 3;
+          # follow keyboard focus
+          follow = "keyboard";
         };
       };
       iconTheme = {
diff --git a/modules/user/profpatsch/services/dunst.nix b/modules/user/profpatsch/services/dunst.nix
index a43c24d0..53758f20 100644
--- a/modules/user/profpatsch/services/dunst.nix
+++ b/modules/user/profpatsch/services/dunst.nix
@@ -70,6 +70,7 @@ in {
         BusName = "org.freedesktop.Notifications";
         ExecStart = "${lib.getBin pkgs.dunst}/bin/dunst -config ${pkgs.writeText "dunst.conf" (toDunstINI cfg.settings)}";
         Restart = "on-failure";
+        RestartSec = "1";
       };
       partOf = [ "graphical-session.target" ];
       wantedBy = [ "graphical-session.target" ];