-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disable aerospace key binds when emacs is in front
There are just too many bindings I really want to have in emacs. The binding mode is also switched back to main when any other app's window is in front. This is my work-around for nikitabobko/AeroSpace#412
- Loading branch information
Showing
3 changed files
with
182 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/zsh | ||
focused=$(aerospace list-windows --focused --format "%{app-bundle-id}") | ||
if [[ "$focused" == "org.gnu.Emacs" ]]; then | ||
aerospace mode emacs | ||
else | ||
aerospace mode main | ||
fi | ||
echo "" >> $LOG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters