zaphyra's git: nixfiles

zaphyra and void's nixfiles

commit 35868581c59e695ff7f816ef389c4ecdf2f4b7cd
parent b69ff90dc5437a53ef2e5b8a7c94109b360a29b5
Author: Katja (zaphyra) <git@ctu.cx>
Date: Sun, 15 Jun 2025 12:44:08 +0200

config/home/zaphyra/configure/gnome: add keybinding for the cccda-buzzer
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/config/home/zaphyra/configure/gnome.nix b/config/home/zaphyra/configure/gnome.nix
@@ -140,12 +140,22 @@ in
 
       "org/gnome/settings-daemon/plugins/media-keys"."custom-keybindings" = [
         "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0/"
+        "/org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1/"
       ];
       "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom0" = {
         name = "Start Terminal";
         command = "ghostty";
         binding = "<Super>Return";
       };
+      "org/gnome/settings-daemon/plugins/media-keys/custom-keybindings/custom1" = {
+        name = "CCCDA Buzzer";
+        command = "${pkgs.writeShellScript "cccda-buzzer" ''
+          export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
+
+          ${pkgs.libnotify}/bin/notify-send CCCDA-Door "$(${pkgs.chaosctl}/bin/chaosctl door buzzer)"
+        ''}";
+        binding = "<Super><Shift>d";
+      };
 
       "org/gnome/settings-daemon/plugins/color".night-light-enabled = true;
       "org/gnome/settings-daemon/plugins/power".sleep-inactive-ac-type = "nothing";