linux-scripts/options/toggle-gnome-macbook-keyboard.sh
billypom on debian d375a04b6c update
2024-11-25 06:40:51 -05: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