Compare commits

...

27 Commits
2.2 ... master

Author SHA1 Message Date
46aa095d1d README.md (Update links) 2022-10-14 23:25:57 +02:00
q3aql
ebd7bdfb79 Bump up version to 2.7 2021-05-04 12:36:09 +02:00
q3aql
4bd8795ea8 Update README.md (v2.7) 2021-05-04 12:34:34 +02:00
q3aql
948c3a4a69 Map Win + Esc to show blacklash 2021-05-04 12:31:48 +02:00
q3aql
531d46007d Map Alt + ' to show blacklash 2021-05-04 12:24:04 +02:00
q3aql
117baa6dfb Update README.md (v2.6) 2020-11-12 18:42:16 +01:00
q3aql
e1439fd0fa Installation.txt (v2.6) 2020-11-12 18:38:10 +01:00
q3aql
c9cdf226df Map Alt + c or v for ? or ¿ symbols for SK71 keyboard (ISO) (for Linux) 2020-11-12 18:36:45 +01:00
q3aql
a657ca62a3
Map Alt + c or v for ? or ¿ symbols for SK71 keyboard (ISO) 2020-11-12 18:33:30 +01:00
q3aql
9b6c828337
Map Alt + c or v for ? or ¿ symbols for SK71 keyboard (ISO) 2020-11-12 17:51:07 +01:00
q3aql
df441f4930 Update README.md (v2.5) 2020-11-10 19:29:20 +01:00
q3aql
2dcd77cb38 Map Alt + - or + for ? or ¿ symbols for SK71 keyboard (ISO) (for Linux) 2020-11-10 19:24:51 +01:00
q3aql
d44fe4c1ab Map Alt + - or + for ? or ¿ symbols for SK71 keyboard (ISO) (for Linux) 2020-11-10 19:22:58 +01:00
q3aql
3ee7effb80 Update version to v2.5 (ansi-gli-nocapslock.ahk) 2020-11-10 19:12:26 +01:00
q3aql
9100b299f9 Map Alt + - or + for ? or ¿ symbols for SK71 keyboard (ISO) 2020-11-10 19:10:41 +01:00
q3aql
afe5dd7ed7 Updated README.md (v2.4) 2020-11-05 15:45:58 +01:00
q3aql
fda4660a5e Added version with CapsLock disabled 2020-11-05 15:22:02 +01:00
q3aql
44fcc80c0f
Update ansi-gli.ahk 2020-11-05 15:07:06 +01:00
q3aql
9da14c3307
Update version (Installation.txt) 2020-11-05 15:06:32 +01:00
q3aql
c1bdf3b8f9
Fix bug to compile (ansi-gli.ahk) 2020-11-05 14:57:01 +01:00
q3aql
79da1f66d5 Update Installation.txt (for Linux) 2020-11-05 14:50:14 +01:00
q3aql
697b735052 Add script to disable CapsLock (Linux) 2020-11-05 14:44:35 +01:00
q3aql
d701077ea1 Fix and remove unnecessary items (win-to-altgr_xmodmap.sh) 2020-11-05 14:41:32 +01:00
q3aql
5c3fca2273 Updated README.md 2020-11-04 17:24:20 +01:00
q3aql
0c465dc030 Updated Linux installation instructions 2020-11-04 17:17:48 +01:00
q3aql
a033f3e3cb Added Script to map Win key to AltGr key (for SK71/SK64) 2020-11-04 17:08:41 +01:00
q3aql
50e1bc528f
Map Win + Alt to send AltGr key on Windows
Map Win + Alt to send AltGr key (for SK71 and SK64 keyboards) on Windows
2020-11-04 14:23:41 +01:00
14 changed files with 408 additions and 22 deletions

View File

@ -10,11 +10,12 @@ 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. For Windows, you just have to follow the following steps for installation and use.
* **Installation and Use:** * **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. * Unzip the package.
* Run `ansi-gli_86.exe` (for Windows 32-bits) or `ansi-gli_86_64.exe` (for Windows 64-bits). * Run `ansi-gli_x86.exe` (for Windows 32-bits) or `ansi-gli_x86_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)) * **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. * You can now use the key combinations.
List of combinations: List of combinations:
@ -25,7 +26,15 @@ List of combinations:
- AltGr + Shift (Left) + x = > - AltGr + Shift (Left) + x = >
- AltGr + z = < - AltGr + z = <
- AltGr + x = > - 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: German/French configuration extra key combinations:
- Alt + y = < - Alt + y = <
@ -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 `autokey` for Linux ([from here](https://github.com/autokey/autokey/releases)).
* Install `Python3` (Installed by default on many Linux distributions). * Install `Python3` (Installed by default on many Linux distributions).
* Install the command `make` (`sudo apt-get install make` on Ubuntu/Debian). * 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. * Unzip the package.
* Inside the `linux` folder, open a terminal and type the command: `make install`. * 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). * 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 + w = <
- Alt + y = < - Alt + y = <
- Alt + Esc = \ - 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: ### 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/). * First, install [AutoHoyKey](https://www.autohotkey.com/).
* Then, download the source from here. * Then, download the source from here.
* In the directory `src`, you have `ansi-gli.ahk`. Right click. * 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: ### External links:

View File

@ -6,7 +6,7 @@
# Contact: q3aql@protonmail.ch # # Contact: q3aql@protonmail.ch #
# License: GPL v2.0 # # License: GPL v2.0 #
################################################ ################################################
Version v2.2 Version v2.7
* Installation steps: * Installation steps:
@ -15,3 +15,21 @@ Version v2.2
3 - Inside the 'linux' folder, open a terminal and type the command: 3 - Inside the 'linux' folder, open a terminal and type the command:
$ make install $ make install
4 - Run autokey (It is recommended to configure it to start on login). 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.

View 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": {}
}

View 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": {}
}

View 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": {}
}

View 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": {}
}

View File

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

View File

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

View File

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

View File

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

View 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
View 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
View 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
;

View File

@ -6,7 +6,7 @@
; # Contact: q3aql@protonmail.ch # ; # Contact: q3aql@protonmail.ch #
; # License: GPL v2.0 # ; # License: GPL v2.0 #
; ################################################ ; ################################################
; Version v2.2 ; Version v2.7
; ;
; You've probably noticed that when you switch from an ISO keyboard ; You've probably noticed that when you switch from an ISO keyboard
; to an ANSI keyboard, the "<" and ">" keys are missing. When you ; to an ANSI keyboard, the "<" and ">" keys are missing. When you
@ -19,54 +19,54 @@
Send, < Send, <
return return
; ;
;Map the Alt + X keys to show the ">" symbol ; Map the Alt + X keys to show the ">" symbol
!x:: !x::
Send, > Send, >
return return
; ;
;Map the AltGr + Shift (Left) + Z keys to show the "<" symbol ; Map the AltGr + Shift (Left) + Z keys to show the "<" symbol
<^>!+z:: <^>!+z::
Send, < Send, <
return return
; ;
;Map the AltGr + Shift (Left) + X keys to show the ">" symbol ; Map the AltGr + Shift (Left) + X keys to show the ">" symbol
<^>!+x:: <^>!+x::
Send, > Send, >
return return
; ;
;Map the AltGr + Z keys to show the "<" symbol ; Map the AltGr + Z keys to show the "<" symbol
<^>!z:: <^>!z::
Send, < Send, <
return return
; ;
;Map the AltGr + Z keys to show the ">" symbol ; Map the AltGr + Z keys to show the ">" symbol
<^>!x:: <^>!x::
Send, > Send, >
return return
; ;
; If you use a 60% Keyboard, maybe need the following combinations: ; 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, \ Send, \
return return
; ;
;Map the AltGr + ¡ keys to show the "~" symbol (Spanish ISO config) ; Map the AltGr + ¡ keys to show the "~" symbol (Spanish ISO config)
<^>!¡:: ;<^>!¡::
Send, ~ ;Send, ~
return ;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, \ Send, \
return return
; ;
;Map the AltGr + Esc keys to show the "\" symbol ; Map the AltGr + Esc keys to show the "\" symbol
<^>!*Escape:: <^>!*Escape::
Send, \ Send, \
return return
; ;
;German and French configuration extra key combinations ; German and French configuration extra key combinations
<^>!+w:: <^>!+w::
Send, < Send, <
return return
@ -91,3 +91,37 @@ return
Send, < Send, <
return 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
;