diff --git a/users/teidesu/assets/karabiner.json b/users/teidesu/assets/karabiner.json index 4198e58..c563b4a 100644 --- a/users/teidesu/assets/karabiner.json +++ b/users/teidesu/assets/karabiner.json @@ -67,27 +67,6 @@ "type": "basic" } ] - }, - { - "description": "New Alacritty Window", - "manipulators": [ - { - "from": { - "key_code": "return_or_enter", - "modifiers": { - "mandatory": [ - "command" - ] - } - }, - "to": [ - { - "shell_command": "osascript /Users/teidesu/.config/new-alacritty-window.scpt" - } - ], - "type": "basic" - } - ] } ] }, diff --git a/users/teidesu/assets/new-alacritty-window.scpt b/users/teidesu/assets/new-alacritty-window.scpt deleted file mode 100644 index 7fbb8bf..0000000 --- a/users/teidesu/assets/new-alacritty-window.scpt +++ /dev/null @@ -1,12 +0,0 @@ -on count_windows_on_current_space(process_name) - tell application "System Events" - tell process process_name - return count of windows - end tell - end tell -end count_windows_on_current_space - -if application "Alacritty" is running and count_windows_on_current_space("Alacritty") = 0 then - do shell script "/Applications/Alacritty.app/Contents/MacOS/alacritty msg create-window" -end if -activate application "Alacritty" diff --git a/users/teidesu/darwin.nix b/users/teidesu/darwin.nix index db6f9d4..d209e63 100644 --- a/users/teidesu/darwin.nix +++ b/users/teidesu/darwin.nix @@ -41,7 +41,6 @@ ]; home.file.".config/alacritty/alacritty.toml".source = ./assets/alacritty.toml; - home.file.".config/new-alacritty-window.scpt".source = ./assets/new-alacritty-window.scpt; # todo: reference this directly from store home.file.".config/karabiner/karabiner.json".source = ./assets/karabiner.json; }; } \ No newline at end of file