#!/bin/bash

#echo "1 = $1"
#echo "2 = $2"

([ -z $1 ] || [ -z $2 ]) && {
    echo "Empty args"
    echo False
    exit 1
}

gsettings list-recursively | grep "wm.keybindings" | grep -v "switch-input-source" | grep "'$1$2'" 2>&1 > /dev/null ; code=$?
if [ $code -eq 0 ]
    # Combination used
    then echo True
    # Combination free
    else echo False
fi
