Created
May 18, 2025 18:56
-
-
Save C-Loftus/5a60f03005d332634bbaaf4baa7abafd to your computer and use it in GitHub Desktop.
Orca swap capslock for vim
This file contains hidden or 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
| #!/bin/bash | |
| if pgrep -x "orca" > /dev/null; then | |
| echo "Orca is running. Killing Orca and swapping Caps Lock and Escape." | |
| # Kill Orca | |
| pkill -x "orca" | |
| # Swap Caps Lock and Escape | |
| gsettings set org.gnome.desktop.input-sources xkb-options "['caps:swapescape']" | |
| else | |
| echo "Orca is not running. Reverting Caps Lock and Escape to normal and starting Orca." | |
| # Revert Caps Lock and Escape to normal | |
| gsettings reset org.gnome.desktop.input-sources xkb-options | |
| # Start Orca | |
| orca & | |
| fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment