- Merged hotfix branch with dev

This commit is contained in:
Ben Reaves
2020-03-09 18:13:56 -05:00
3 changed files with 47 additions and 6 deletions

View File

@@ -28,6 +28,11 @@
// RedirectKey(key=<KEY>,modifiers=NewMod,clearmods=Control+Mod1) // RedirectKey(key=<KEY>,modifiers=NewMod,clearmods=Control+Mod1)
// ] // ]
// }; // };
hidden partial modifier_keys
xkb_symbols "swapescape" {
key <CAPS> { [ Escape ] };
key <ESC> { [ Caps_Lock ] };
};
default partial xkb_symbols "mac_levelssym" { default partial xkb_symbols "mac_levelssym" {
// // Minimize window Cmd + H = Alt + F9 // // Minimize window Cmd + H = Alt + F9
// // 2 caveats // // 2 caveats

View File

@@ -57,8 +57,39 @@ sudo apt install python3
./setup.py ./setup.py
``` ```
To Uninstall Kinto
```
./uninstall.sh
```
## How to Add Setxkbmap Option inside Kinto
To summarize you'll need to pull the partial out of the symbols file the option resides in and then add that to the mac_gui file and lastly reference it in the keymap file(s) you want it in.
symbols directory
```
/usr/share/X11/xkb/symbols/
```
symbols file
```
~/.xkb/symbols/mac_gui
```
keymap files
```
~/.xkb/keymap/kbd.mac.gui
~/.xkb/keymap/kbd.mac.term
```
A more detailed explaination is here.
https://github.com/rbreaves/kinto/issues/50#issuecomment-595953373
## How to Add or Change keymaps for Applications ## How to Add or Change keymaps for Applications
Note: All of the following is already done in Kinto (but may also change as improvements are made). The following is purely for documentation and example sake as they are real examples of how to leverage the json config to support additional keymaps.
**First it is important to understand how Kinto operates.** **First it is important to understand how Kinto operates.**
1. It listens for any focus/active window changes 1. It listens for any focus/active window changes

View File

@@ -141,21 +141,22 @@ if len(check_x11) == 0:
check_xbind = cmdline("which xbindkeys 2>/dev/null").strip() check_xbind = cmdline("which xbindkeys 2>/dev/null").strip()
check_xdotool = cmdline("which xdotool 2>/dev/null").strip() check_xdotool = cmdline("which xdotool 2>/dev/null").strip()
check_ibus = cmdline("which ibus-setup 2>/dev/null").strip()
pkgm = cmdline("which apt 2>/dev/null").strip() pkgm = cmdline("which apt-get 2>/dev/null").strip()
if len(pkgm) == 0: if len(pkgm) == 0:
pkgm = cmdline("which dnf 2>/dev/null").strip() pkgm = cmdline("which dnf 2>/dev/null").strip()
if len(pkgm) > 0: if len(pkgm) > 0:
pkgm += " install -y " pkgm += " check-update;sudo dnf install -y "
else: else:
pkgm += " install -y " pkgm += " install -y "
pkgm = "apt-get update && sudo " + pkgm pkgm += " update; sudo apt-get install -y "
if len(pkgm) == 0: if len(pkgm) == 0:
pkgm = cmdline("which pacman 2>/dev/null").strip() pkgm = cmdline("which pacman 2>/dev/null").strip()
if len(pkgm) > 0: if len(pkgm) > 0:
pkgm += " -S " pkgm += " -Syy; sudo pacman -S "
if len(pkgm) == 0: if len(pkgm) == 0:
@@ -166,14 +167,18 @@ if len(pkgm) == 0:
runpkg = 0 runpkg = 0
run_pkg = "" run_pkg = ""
if len(check_xbind) > 0 and len(check_xdotool) > 0: if len(check_xbind) > 0 and len(check_xdotool) > 0 and len(check_ibus) > 0:
print("Xbindkeys, and xdotool requirement is installed.") print("Xbindkeys, xdotool and IBus requirement is installed.")
if len(check_xbind) == 0: if len(check_xbind) == 0:
run_pkg = "xbindkeys" run_pkg = "xbindkeys"
runpkg = 1 runpkg = 1
if len(check_xdotool) == 0: if len(check_xdotool) == 0:
run_pkg += " xdotool" run_pkg += " xdotool"
runpkg = 1 runpkg = 1
if len(check_ibus) == 0:
# may differ with distro, but for now
run_pkg += " ibus"
runpkg = 1
if runpkg != 0: if runpkg != 0:
requirements(pkgm) requirements(pkgm)