linux-scripts/gnome-toggle-macbook-keyboard.sh
2024-10-14 12:03:29 -04:00

12 lines
328 B
Bash
Executable File

#!/bin/sh
# No argument = normal keyboard
# With argument = macbook keyboard
if [ $# -eq 0 ]; then
gsettings set org.gnome.desktop.input-sources xkb-options "[]"
echo "Normal keyboard mode"
else
gsettings set org.gnome.desktop.input-sources xkb-options "['ctrl:swap_lwin_lctl']"
echo "Macbook keyboard mode"
fi