Compare commits
27 Commits
Author | SHA1 | Date | |
---|---|---|---|
46aa095d1d | |||
|
ebd7bdfb79 | ||
|
4bd8795ea8 | ||
|
948c3a4a69 | ||
|
531d46007d | ||
|
117baa6dfb | ||
|
e1439fd0fa | ||
|
c9cdf226df | ||
|
a657ca62a3 | ||
|
9b6c828337 | ||
|
df441f4930 | ||
|
2dcd77cb38 | ||
|
d44fe4c1ab | ||
|
3ee7effb80 | ||
|
9100b299f9 | ||
|
afe5dd7ed7 | ||
|
fda4660a5e | ||
|
44fcc80c0f | ||
|
9da14c3307 | ||
|
c1bdf3b8f9 | ||
|
79da1f66d5 | ||
|
697b735052 | ||
|
d701077ea1 | ||
|
5c3fca2273 | ||
|
0c465dc030 | ||
|
a033f3e3cb | ||
|
50e1bc528f |
25
README.md
25
README.md
@ -11,10 +11,11 @@ For Windows, you just have to follow the following steps for installation and us
|
||||
|
||||
* **Installation and Use:**
|
||||
|
||||
* Download the package [ansi-gli-2.2.zip](https://github.com/q3aql/ansi-gli/releases/download/v2.2/ansi-gli-2.2.zip).
|
||||
* Download the package [ansi-gli-2.7.zip](https://drive.proton.me/urls/A0BF0XCXHR#5zvMXkiswOZf).
|
||||
* Unzip the package.
|
||||
* 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))
|
||||
* 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))
|
||||
* You can now use the key combinations.
|
||||
|
||||
List of combinations:
|
||||
@ -25,6 +26,14 @@ 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:
|
||||
|
||||
@ -51,7 +60,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.2.zip](https://github.com/q3aql/ansi-gli/releases/download/v2.2/ansi-gli-2.2.zip).
|
||||
* Download the package [ansi-gli-2.7.zip](https://drive.proton.me/urls/A0BF0XCXHR#5zvMXkiswOZf).
|
||||
* 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).
|
||||
@ -63,6 +72,12 @@ 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:
|
||||
|
||||
@ -73,7 +88,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](https://github.com/q3aql/ansi-gli/blob/master/images/ansi-gli-compile.png))
|
||||
* Choose `Compile Script`. ([Image](images/ansi-gli-compile.png))
|
||||
|
||||
### External links:
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
# Contact: q3aql@protonmail.ch #
|
||||
# License: GPL v2.0 #
|
||||
################################################
|
||||
Version v2.2
|
||||
Version v2.7
|
||||
|
||||
* Installation steps:
|
||||
|
||||
@ -15,3 +15,21 @@ Version v2.2
|
||||
3 - Inside the 'linux' folder, open a terminal and type the command:
|
||||
$ make install
|
||||
4 - Run autokey (It is recommended to configure it to start on login).
|
||||
|
||||
* Additional steps (Map AltGr on Win-Key):
|
||||
|
||||
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:
|
||||
$ chmod +x win-to-altgr_xmodmap.sh
|
||||
$ ./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.
|
||||
|
30
linux/ansi-60-keyboard/.alt-c.json
Normal file
30
linux/ansi-60-keyboard/.alt-c.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"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": {}
|
||||
}
|
30
linux/ansi-60-keyboard/.alt-less.json
Normal file
30
linux/ansi-60-keyboard/.alt-less.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"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": {}
|
||||
}
|
30
linux/ansi-60-keyboard/.alt-plus.json
Normal file
30
linux/ansi-60-keyboard/.alt-plus.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"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": {}
|
||||
}
|
30
linux/ansi-60-keyboard/.alt-v.json
Normal file
30
linux/ansi-60-keyboard/.alt-v.json
Normal file
@ -0,0 +1,30 @@
|
||||
{
|
||||
"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": {}
|
||||
}
|
2
linux/ansi-60-keyboard/alt-c.py
Normal file
2
linux/ansi-60-keyboard/alt-c.py
Normal file
@ -0,0 +1,2 @@
|
||||
# Enter script code
|
||||
keyboard.send_keys("?")
|
2
linux/ansi-60-keyboard/alt-less.py
Normal file
2
linux/ansi-60-keyboard/alt-less.py
Normal file
@ -0,0 +1,2 @@
|
||||
# Enter script code
|
||||
keyboard.send_keys("?")
|
2
linux/ansi-60-keyboard/alt-plus.py
Normal file
2
linux/ansi-60-keyboard/alt-plus.py
Normal file
@ -0,0 +1,2 @@
|
||||
# Enter script code
|
||||
keyboard.send_keys("¿")
|
2
linux/ansi-60-keyboard/alt-v.py
Normal file
2
linux/ansi-60-keyboard/alt-v.py
Normal file
@ -0,0 +1,2 @@
|
||||
# Enter script code
|
||||
keyboard.send_keys("¿")
|
29
linux/disable-caplock_xmodmap.sh
Executable file
29
linux/disable-caplock_xmodmap.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/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
|
29
linux/win-to-altgr_xmodmap.sh
Executable file
29
linux/win-to-altgr_xmodmap.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
######################################
|
||||
# Script to map Win key to AltGr key #
|
||||
# #
|
||||
# Author: q3aql@protonmail.ch #
|
||||
######################################
|
||||
|
||||
# Variables
|
||||
xmodmap_config_dir=/tmp/.win-altgr
|
||||
xmodmap_config_file=${xmodmap_config_dir}/super-key.key
|
||||
|
||||
# Check dir and create/restore config
|
||||
mkdir -p ${xmodmap_config_dir}
|
||||
if [ -f ${xmodmap_config_file} ] ; then
|
||||
echo "* Restoring original function of Win-Key..."
|
||||
sleep 2
|
||||
restore_key=$(cat ${xmodmap_config_file})
|
||||
xmodmap -e "keycode ${restore_key} = Super_L"
|
||||
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)
|
||||
echo ${win_key_detect} > ${xmodmap_config_file}
|
||||
xmodmap -e "keycode ${win_key_detect} = ISO_Level3_Shift"
|
||||
echo "* Created!"
|
||||
fi
|
133
src/ansi-gli-nocapslock.ahk
Normal file
133
src/ansi-gli-nocapslock.ahk
Normal file
@ -0,0 +1,133 @@
|
||||
;
|
||||
; ################################################
|
||||
; # 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
|
||||
;
|
||||
|
@ -6,7 +6,7 @@
|
||||
; # Contact: q3aql@protonmail.ch #
|
||||
; # License: GPL v2.0 #
|
||||
; ################################################
|
||||
; Version v2.2
|
||||
; 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
|
||||
@ -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,3 +91,37 @@ return
|
||||
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
|
||||
;
|
||||
|
Loading…
x
Reference in New Issue
Block a user