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/sh | |
set -e | |
# Function to check if key 118 is enabled (used as a state indicator) | |
is_windows_mode() { | |
current_state=$(defaults read com.apple.symbolichotkeys AppleSymbolicHotKeys | grep -A5 '"118" =' | grep "enabled" | grep -c "0") | |
[ "$current_state" -eq 1 ] | |
} | |
# Function to toggle between Mac and Windows keyboard settings |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.