ctucx.git: nixfiles

ctucx' nixfiles

commit 482596e1fe828fe2bf7cff6208f5eb4a842db0bb
parent 826931c1081a92046c3e33d6647f965bb95c62d2
Author: Leah (ctucx) <git@ctu.cx>
Date: Mon, 7 Aug 2023 11:41:45 +0200

configurations/darwin/programs/firefox: remap keybindings for tab-switching
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/configurations/darwin/programs/firefox.nix b/configurations/darwin/programs/firefox.nix
@@ -2,6 +2,16 @@
 
 {
 
+  services.skhd.skhdConfig = ''
+      #firefox: map cmd+{pageup,pagedown} to ctrl+{pageup,pagedown}
+      cmd - home [
+        "firefox" : ${pkgs.skhd}/bin/skhd -k "ctrl - pageup"
+      ]
+      cmd - end [
+        "firefox" : ${pkgs.skhd}/bin/skhd -k "ctrl - pagedown"
+      ]
+  '';
+
   homebrew = {
     enable  = true;