Compare commits

..

No commits in common. "master" and "v2.3" have entirely different histories.
master ... v2.3

14 changed files with 27 additions and 367 deletions

View File

@ -10,12 +10,11 @@ You've probably noticed that when you switch from an ISO keyboard to an ANSI key
For Windows, you just have to follow the following steps for installation and use.
* **Installation and Use:**
* Download the package [ansi-gli-2.7.zip](https://drive.proton.me/urls/A0BF0XCXHR#5zvMXkiswOZf).
* Download the package [ansi-gli-2.3.zip](https://github.com/q3aql/ansi-gli/releases/download/v2.3/ansi-gli-2.3.zip).
* Unzip the package.
* Run `ansi-gli_x86.exe` (for Windows 32-bits) or `ansi-gli_x86_64.exe` (for Windows 64-bits).
* **Optional**: If you want CapsLock disabled, run `ansi-gli-nocapslock_x86.exe` or `ansi-gli-nocapslock_x86_64.exe`.
* You will see the app icon on the tray. ([Image](images/ansi-gli-tray.png))
* Run `ansi-gli_86.exe` (for Windows 32-bits) or `ansi-gli_86_64.exe` (for Windows 64-bits).
* You will see the app icon on the tray. ([Image](https://github.com/q3aql/ansi-gli/blob/master/images/ansi-gli-tray.png))
* You can now use the key combinations.
List of combinations:
@ -26,15 +25,8 @@ List of combinations:
- AltGr + Shift (Left) + x = >
- AltGr + z = <
- AltGr + x = >
- Alt + - = ?
- Alt + + = ¿
- Alt + c = ?
- Alt + v = ¿
- Alt + ' = \
- Win + Esc = \
- Win + Alt = AltGr (for keyboards without AltGr key as SK71/SK64)
- CapsLock = Shift (with nocapslock version)
German/French configuration extra key combinations:
- Alt + y = <
@ -60,7 +52,7 @@ If you want to add more combinations or the ones mentioned do not work for you,
* Install `autokey` for Linux ([from here](https://github.com/autokey/autokey/releases)).
* Install `Python3` (Installed by default on many Linux distributions).
* Install the command `make` (`sudo apt-get install make` on Ubuntu/Debian).
* Download the package [ansi-gli-2.7.zip](https://drive.proton.me/urls/A0BF0XCXHR#5zvMXkiswOZf).
* Download the package [ansi-gli-2.3.zip](https://github.com/q3aql/ansi-gli/releases/download/v2.3/ansi-gli-2.3.zip).
* Unzip the package.
* Inside the `linux` folder, open a terminal and type the command: `make install`.
* Run `autokey` (It is recommended to configure it to start on login).
@ -72,12 +64,7 @@ Now, you can use the following additional key combinations:
- Alt + w = <
- Alt + y = <
- Alt + Esc = \
- Alt + - = ?
- Alt + + = ¿
- Alt + c = ?
- Alt + v = ¿
- Win = AltGr (with win-to-altgr_xmodmap.sh script)
- CapsLock = Shift (with disable-caplock_xmodmap.sh script)
### How to fix on Mac:
@ -88,7 +75,7 @@ I don't know and I don't care.
* First, install [AutoHoyKey](https://www.autohotkey.com/).
* Then, download the source from here.
* In the directory `src`, you have `ansi-gli.ahk`. Right click.
* Choose `Compile Script`. ([Image](images/ansi-gli-compile.png))
* Choose `Compile Script`. ([Image](https://github.com/q3aql/ansi-gli/blob/master/images/ansi-gli-compile.png))
### External links:

View File

@ -6,7 +6,7 @@
# Contact: q3aql@protonmail.ch #
# License: GPL v2.0 #
################################################
Version v2.7
Version v2.2
* Installation steps:
@ -16,7 +16,7 @@ Version v2.7
$ make install
4 - Run autokey (It is recommended to configure it to start on login).
* Additional steps (Map AltGr on Win-Key):
* Additional steps:
1 - If you use a keyboard without AltGr key (as SK71/SK64), you can use with
the 'win-to-altgr_xmodmap.sh' script running the following commands:
@ -24,12 +24,3 @@ Version v2.7
$ ./win-to-altgr_xmodmap.sh
2 - If you want restore the config, run again the same script.
3 - If you want the permanent config, load the script to auto-startup apps.
* Additional steps (Disable CapsLock):
1 - If you prefer use the keyboard without CapsLock (only Shift), you can use
the 'disable-caplock_xmodmap.sh' script running the following commands:
$ chmod +x disable-caplock_xmodmap.sh
$ ./disable-caplock_xmodmap.sh
2 - If you want restore the config, run again the same script.
3 - If you want the permanent config, load the script to auto-startup apps.

View File

@ -1,30 +0,0 @@
{
"usageCount": 0,
"omitTrigger": false,
"prompt": false,
"description": "alt-c",
"abbreviation": {
"wordChars": "[\\w]",
"abbreviations": [],
"immediate": false,
"ignoreCase": false,
"backspace": true,
"triggerInside": false
},
"hotkey": {
"hotKey": "c",
"modifiers": [
"<alt>"
]
},
"modes": [
3
],
"showInTrayMenu": false,
"filter": {
"regex": null,
"isRecursive": false
},
"type": "script",
"store": {}
}

View File

@ -1,30 +0,0 @@
{
"usageCount": 0,
"omitTrigger": false,
"prompt": false,
"description": "alt-less",
"abbreviation": {
"wordChars": "[\\w]",
"abbreviations": [],
"immediate": false,
"ignoreCase": false,
"backspace": true,
"triggerInside": false
},
"hotkey": {
"hotKey": "-",
"modifiers": [
"<alt>"
]
},
"modes": [
3
],
"showInTrayMenu": false,
"filter": {
"regex": null,
"isRecursive": false
},
"type": "script",
"store": {}
}

View File

@ -1,30 +0,0 @@
{
"usageCount": 0,
"omitTrigger": false,
"prompt": false,
"description": "alt-plus",
"abbreviation": {
"wordChars": "[\\w]",
"abbreviations": [],
"immediate": false,
"ignoreCase": false,
"backspace": true,
"triggerInside": false
},
"hotkey": {
"hotKey": "+",
"modifiers": [
"<alt>"
]
},
"modes": [
3
],
"showInTrayMenu": false,
"filter": {
"regex": null,
"isRecursive": false
},
"type": "script",
"store": {}
}

View File

@ -1,30 +0,0 @@
{
"usageCount": 0,
"omitTrigger": false,
"prompt": false,
"description": "alt-v",
"abbreviation": {
"wordChars": "[\\w]",
"abbreviations": [],
"immediate": false,
"ignoreCase": false,
"backspace": true,
"triggerInside": false
},
"hotkey": {
"hotKey": "v",
"modifiers": [
"<alt>"
]
},
"modes": [
3
],
"showInTrayMenu": false,
"filter": {
"regex": null,
"isRecursive": false
},
"type": "script",
"store": {}
}

View File

@ -1,2 +0,0 @@
# Enter script code
keyboard.send_keys("?")

View File

@ -1,2 +0,0 @@
# Enter script code
keyboard.send_keys("?")

View File

@ -1,2 +0,0 @@
# Enter script code
keyboard.send_keys("¿")

View File

@ -1,2 +0,0 @@
# Enter script code
keyboard.send_keys("¿")

View File

@ -1,29 +0,0 @@
#!/bin/bash
##################################
# Script to disable CapsLock #
# #
# Author: q3aql@protonmail.ch #
##################################
# Variables
xmodmap_config_dir=/tmp/.disable-capslock
xmodmap_config_file=${xmodmap_config_dir}/capslock.key
# Check dir and create/restore config
mkdir -p ${xmodmap_config_dir}
if [ -f ${xmodmap_config_file} ] ; then
echo "* Restoring original function of CapsLock..."
sleep 2
restore_key=$(cat ${xmodmap_config_file})
xmodmap -e "keycode ${restore_key} = Caps_Lock"
rm -rf ${xmodmap_config_file}
echo "* Restored!"
else
echo "* Creating mapping of CapsLock to Shift..."
sleep 2
capslock_key_detect=$(xmodmap -pke | grep Caps_Lock | tr -s " " | grep keycode | head -1 | cut -d " " -f 2)
echo ${capslock_key_detect} > ${xmodmap_config_file}
xmodmap -e "keycode ${capslock_key_detect} = Shift_L"
echo "* Created!"
fi

View File

@ -17,13 +17,15 @@ if [ -f ${xmodmap_config_file} ] ; then
sleep 2
restore_key=$(cat ${xmodmap_config_file})
xmodmap -e "keycode ${restore_key} = Super_L"
rm -rf ${HOME}/.Xmodmap
rm -rf ${xmodmap_config_file}
echo "* Restored!"
else
echo "* Creating mapping of Win-Key to AltGr-Key..."
sleep 2
win_key_detect=$(xmodmap -pke | grep Super_L | tr -s " " | grep keycode | head -1 | cut -d " " -f 2)
win_key_detect=$(xmodmap -pke | grep Super_L | grep keycode | head -1 | cut -d " " -f 2)
echo ${win_key_detect} > ${xmodmap_config_file}
xmodmap -e "keycode ${win_key_detect} = ISO_Level3_Shift"
echo "keycode ${win_key_detect} = ISO_Level3_Shift" > ${HOME}/.Xmodmap
echo "* Created!"
fi

View File

@ -1,133 +0,0 @@
;
; ################################################
; # ANSI-GLI - ANSI Greater & Less in ISO #
; # #
; # Author: q3aql #
; # Contact: q3aql@protonmail.ch #
; # License: GPL v2.0 #
; ################################################
; Version v2.7
;
; You've probably noticed that when you switch from an ISO keyboard
; to an ANSI keyboard, the "<" and ">" keys are missing. When you
; configure an ANSI keyboard as ISO (for example in Spanish), you can
; use it in the same way as before, but those symbols are the only ones
; that you cannot type, so this script will solve the problem.
;
; Map the Alt + Z keys to show the "<" symbol
!z::
Send, <
return
;
; Map the Alt + X keys to show the ">" symbol
!x::
Send, >
return
;
; Map the AltGr + Shift (Left) + Z keys to show the "<" symbol
<^>!+z::
Send, <
return
;
; Map the AltGr + Shift (Left) + X keys to show the ">" symbol
<^>!+x::
Send, >
return
;
; Map the AltGr + Z keys to show the "<" symbol
<^>!z::
Send, <
return
;
; Map the AltGr + Z keys to show the ">" symbol
<^>!x::
Send, >
return
;
; If you use a 60% Keyboard, maybe need the following combinations:
;
; Map the AltGr + ' keys to show the "\" symbol (Spanish & Italian ISO config)
<^>!'::
Send, \
return
;
; Map the AltGr + ¡ keys to show the "~" symbol (Spanish ISO config)
;<^>!¡::
;Send, ~
;return
;
; Map the AltGr + - keys to show the "\" symbol (ANSI & UK ISO config)
<^>!-::
Send, \
return
;
; Map the AltGr + Esc keys to show the "\" symbol
<^>!*Escape::
Send, \
return
;
; German and French configuration extra key combinations
<^>!+w::
Send, <
return
;
<^>!w::
Send, <
return
;
!w::
Send, <
return
;
!y::
Send, <
return
;
<^>!+y::
Send, <
return
;
<^>!y::
Send, <
return
;
; Map Win + Alt to send AltGr command (for SK71 and SK64 keyboards)
LWin & LAlt::RAlt
return
;
; Map Alt + - to show ? simbol (for SK71 keyboard)
!-::
Send, ?
return
;
; Map Alt + '+' to show ¿ simbol (for SK71 keyboard)
LAlt & +::
Send, ¿
return
;
; Map Alt + c to show ? simbol (for SK71 keyboard)
!c::
Send, ?
return
;
; Map Alt + v to show ¿ simbol (for SK71 keyboard)
!v::
Send, ¿
return
;
; Map Alt + ' to show blacklash
!'::
Send, \
return
;
; Map Win + Esc to show blacklash
LWin & Escape::
Send, \
return
;
; Disable CapsLock (map CapsLock to Shift)
SetCapsLockState, AlwaysOff
CapsLock::LShift
return
;

View File

@ -6,7 +6,7 @@
; # Contact: q3aql@protonmail.ch #
; # License: GPL v2.0 #
; ################################################
; Version v2.7
; Version v2.3
;
; You've probably noticed that when you switch from an ISO keyboard
; to an ANSI keyboard, the "<" and ">" keys are missing. When you
@ -19,54 +19,54 @@
Send, <
return
;
; Map the Alt + X keys to show the ">" symbol
;Map the Alt + X keys to show the ">" symbol
!x::
Send, >
return
;
; Map the AltGr + Shift (Left) + Z keys to show the "<" symbol
;Map the AltGr + Shift (Left) + Z keys to show the "<" symbol
<^>!+z::
Send, <
return
;
; Map the AltGr + Shift (Left) + X keys to show the ">" symbol
;Map the AltGr + Shift (Left) + X keys to show the ">" symbol
<^>!+x::
Send, >
return
;
; Map the AltGr + Z keys to show the "<" symbol
;Map the AltGr + Z keys to show the "<" symbol
<^>!z::
Send, <
return
;
; Map the AltGr + Z keys to show the ">" symbol
;Map the AltGr + Z keys to show the ">" symbol
<^>!x::
Send, >
return
;
; If you use a 60% Keyboard, maybe need the following combinations:
;
; Map the AltGr + ' keys to show the "\" symbol (Spanish & Italian ISO config)
;Map the AltGr + ' keys to show the "\" symbol (Spanish & Italian ISO config)
<^>!'::
Send, \
return
;
; Map the AltGr + ¡ keys to show the "~" symbol (Spanish ISO config)
;<^>!¡::
;Send, ~
;return
;Map the AltGr + ¡ keys to show the "~" symbol (Spanish ISO config)
<^>!¡::
Send, ~
return
;
; Map the AltGr + - keys to show the "\" symbol (ANSI & UK ISO config)
;Map the AltGr + - keys to show the "\" symbol (ANSI & UK ISO config)
<^>!-::
Send, \
return
;
; Map the AltGr + Esc keys to show the "\" symbol
;Map the AltGr + Esc keys to show the "\" symbol
<^>!*Escape::
Send, \
return
;
; German and French configuration extra key combinations
;German and French configuration extra key combinations
<^>!+w::
Send, <
return
@ -91,37 +91,7 @@ return
Send, <
return
;
; Map Win + Alt to send AltGr command (for SK71 and SK64 keyboards)
;Map Win + Alt to send AltGr command (for SK71 and SK64 keyboards)
LWin & LAlt::RAlt
return
;
; Map Alt + - to show ? simbol (for SK71 keyboard)
!-::
Send, ?
return
;
; Map Alt + '+' to show ¿ simbol (for SK71 keyboard)
LAlt & +::
Send, ¿
return
;
; Map Alt + c to show ? simbol (for SK71 keyboard)
!c::
Send, ?
return
;
; Map Alt + v to show ¿ simbol (for SK71 keyboard)
!v::
Send, ¿
return
;
; Map Alt + ' to show blacklash
!'::
Send, \
return
;
; Map Win + Esc to show blacklash
LWin & Escape::
Send, \
return
;