ctucx.git: nixfiles

ctucx' nixfiles

commit f42b9a12e929cc6a811a59f42bcdd5c5739b1317
parent d3a55a9f7b0805db5fc0b68acde7bae3c3af6450
Author: Leah (ctucx) <git@ctu.cx>
Date: Sat, 24 Dec 2022 14:07:35 +0100

configurations/darwin: disable yabai
2 files changed, 2 insertions(+), 13 deletions(-)
diff --git a/configurations/darwin/default.nix b/configurations/darwin/default.nix
@@ -10,7 +10,7 @@
     ./homebrew.nix
     ./finder.nix
     ./skhd.nix
-    ./yabai.nix
+#    ./yabai.nix
     ./syncthing.nix
     ./dock.nix
 
diff --git a/configurations/darwin/skhd.nix b/configurations/darwin/skhd.nix
@@ -7,7 +7,7 @@ let
 
     # Detects if iTerm2 is running
     if ! pgrep -f "iTerm" > /dev/null; then
-      open -a "$HOME/Applications/iTerm.app"
+      open -a "/Applications/iTerm.app"
     else
       # Create a new window
       if ! osascript -e 'tell application "iTerm2" to create window with default profile' > /dev/null; then

@@ -37,17 +37,6 @@ in {
       lalt - z : pmset sleepnow
       lalt - s : pmset displaysleepnow
 
-      # switch between workspaces
-      lalt - 1 : ${pkgs.skhd}/bin/skhd -k "ctrl - 1"
-      lalt - 2 : ${pkgs.skhd}/bin/skhd -k "ctrl - 2"
-      lalt - 3 : ${pkgs.skhd}/bin/skhd -k "ctrl - 3"
-      lalt - 4 : ${pkgs.skhd}/bin/skhd -k "ctrl - 4"
-      lalt - 5 : ${pkgs.skhd}/bin/skhd -k "ctrl - 5"
-      lalt - 6 : ${pkgs.skhd}/bin/skhd -k "ctrl - 6"
-      lalt - 7 : ${pkgs.skhd}/bin/skhd -k "ctrl - 7"
-      lalt - 8 : ${pkgs.skhd}/bin/skhd -k "ctrl - 8"
-      lalt - 9 : ${pkgs.skhd}/bin/skhd -k "ctrl - 9"
-
       #firefox: map cmd+{pageup,pagedown} to ctrl+{pageup,pagedown}
       cmd - pageup [
         "firefox" : ${pkgs.skhd}/bin/skhd -k "ctrl - pageup"