mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-06 02:48:26 +02:00
- Added proper mac_only check in toggle script
This commit is contained in:
@@ -22,7 +22,9 @@ elif [[ "$swapbehavior" == "none" ]]; then
|
|||||||
swapcmd_gui="setxkbmap -option;xkbcomp -w0 -I$HOME/.xkb ~/.xkb/keymap/kbd.chromebook.gui $DISPLAY"
|
swapcmd_gui="setxkbmap -option;xkbcomp -w0 -I$HOME/.xkb ~/.xkb/keymap/kbd.chromebook.gui $DISPLAY"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$swapbehavior" == "both_win" ]]; then
|
if [[ "$systemtype" == "mac_only" ]]; then
|
||||||
|
check=`setxkbmap -query | grep -c 'alt_super_win'`
|
||||||
|
elif [[ "$swapbehavior" == "both_win" ]]; then
|
||||||
check=`setxkbmap -query | grep -q 'ctrl_alt_win'; echo $?`
|
check=`setxkbmap -query | grep -q 'ctrl_alt_win'; echo $?`
|
||||||
else
|
else
|
||||||
check=`setxkbmap -query | grep -c 'swap_alt_win'`
|
check=`setxkbmap -query | grep -c 'swap_alt_win'`
|
||||||
|
Reference in New Issue
Block a user