ctucx.git: nixfiles

ctucx' nixfiles

commit d3f8c88989fb5c515f611d3a587a4edab2b40276
parent 3ab86cc95affa1a641310aa6c4ac225c8d6a9fb8
Author: Leah (ctucx) <git@ctu.cx>
Date: Thu, 10 Oct 2024 12:17:17 +0200

configurations/darwin/skhd: remove terminal-keybinding
1 file changed, 1 insertion(+), 22 deletions(-)
M
configurations/darwin/skhd.nix
|
23
+----------------------
diff --git a/configurations/darwin/skhd.nix b/configurations/darwin/skhd.nix
@@ -1,33 +1,12 @@
 { config, pkgs, ... }:
 
-let
-  newTerminal = pkgs.writeScript "newTerminalWindow.sh" ''
-    #!/usr/bin/env bash
-    # Open iTerm2 with single instance
-
-    # Detects if iTerm2 is running
-    if ! pgrep -f "iTerm" > /dev/null; then
-      open -a "${pkgs.iterm2}/Applications/iTerm2.app"
-    else
-      # Create a new window
-      if ! osascript -e 'tell application "iTerm2" to create window with default profile' > /dev/null; then
-        # Get pids for any app with "iTerm" and kill
-        for i in $(pgrep -f "iTerm"); do kill -15 "$i"; done
-        open  -a "${pkgs.iterm2}/Applications/iTerm2.app"
-      fi
-    fi
-  '';
-
-in {
+{
 
   home-manager.users.leah.home.packages = [ pkgs.skhd ];
 
   services.ctucx.skhd = {
     enable     = true;
     skhdConfig = ''
-      # spawn new terminal window
-      lalt - return : ${newTerminal}
-
       # sleep
       lalt - z : pmset sleepnow
       lalt - s : pmset displaysleepnow