ctucx.git: nixfiles

ctucx' nixfiles

commit 072e89ceaac96deda0eabeecf21efa572906dd8a
parent 565dd3b22268243fe5e13e0c54ec49092dd19dd6
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