- Fix syntax error in install script, fixed bug in xactive where keyswap may not be trigger if process id was not exactly 7 integers long, it now accepts integers of any length.

This commit is contained in:
Ben Reaves
2019-07-30 13:49:44 -05:00
parent e72ced64ef
commit 2385d4e635
2 changed files with 4 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ echo "$systemtype $swapbehavior"
echo "$swapcmd_gui"
# regex for extracting hex id's
grep_id='0[xX][a-zA-Z0-9]\{7\}'
grep_id='0[xX][a-zA-Z0-9]\+'
#Storing timestamp and will use timediff to prevent xprop duplicates
timestp=$(date +%s)
@@ -53,6 +53,7 @@ while read -r id; do
# Set keymap for terminal, Alt is Super, Ctrl is Ctrl, Super is Alt
if [[ $internalid -gt 0 ]]; then
eval "$check_gt"
echo $?
if [ $? -eq 0 ]; then
echo "internal gui to term"
eval "$swapcmd_term"
@@ -70,6 +71,7 @@ while read -r id; do
# Set keymap for gui, Alt is Ctrl,Super is Alt, Ctrl is Super
if [[ $internalid -gt 0 ]]; then
eval "$check_tg"
echo $?
if [ $? -eq 0 ]; then
echo "internal term to gui"
eval "$swapcmd_gui"