mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-06 19:08:27 +02:00
Compare commits
67 Commits
feature/Br
...
feature/cm
Author | SHA1 | Date | |
---|---|---|---|
![]() |
1529d90918 | ||
![]() |
56493b4eec | ||
![]() |
974cd13fae | ||
![]() |
d8ad4b874f | ||
![]() |
b532a9891d | ||
![]() |
294ba3b89f | ||
![]() |
c908b00a38 | ||
![]() |
56f4f679e4 | ||
![]() |
ba46c4ff97 | ||
![]() |
980ae6a237 | ||
![]() |
1a57dd9a5e | ||
![]() |
c9810838a1 | ||
![]() |
e60f7cffea | ||
![]() |
c8b169b6a0 | ||
![]() |
81c0c52902 | ||
![]() |
4d697d9cdc | ||
![]() |
307c9bc2d1 | ||
![]() |
7436825c93 | ||
![]() |
d680a58d04 | ||
![]() |
71af27be24 | ||
![]() |
2ce4bbdb82 | ||
![]() |
085485dcfc | ||
![]() |
e7188ca693 | ||
![]() |
4cf795619d | ||
![]() |
588fe1a0dc | ||
![]() |
18ae403188 | ||
![]() |
de8e674027 | ||
![]() |
625f775464 | ||
![]() |
4980c4a35e | ||
![]() |
c09d8b07e4 | ||
![]() |
a34acfb0b5 | ||
![]() |
9f694fd198 | ||
![]() |
4349c4f9dd | ||
![]() |
68395fd91c | ||
![]() |
482de09dcc | ||
![]() |
f075f3a927 | ||
![]() |
00cbd59a4e | ||
![]() |
cbfe1a4141 | ||
![]() |
d44247affb | ||
![]() |
4f1adbc358 | ||
![]() |
a362d704c2 | ||
![]() |
6e2631aa3c | ||
![]() |
4bcdcdea6a | ||
![]() |
f9d7cba452 | ||
![]() |
fb0c476c7f | ||
![]() |
afd7ec47bf | ||
![]() |
06ba71fa67 | ||
![]() |
539d916ae3 | ||
![]() |
6d49644151 | ||
![]() |
4a3877a5fa | ||
![]() |
12efd46dd7 | ||
![]() |
e255cb6727 | ||
![]() |
8e0828aa3b | ||
![]() |
ecbf8a7aed | ||
![]() |
93743cc4c5 | ||
![]() |
34dee0e9ef | ||
![]() |
261befaf7f | ||
![]() |
5410895d0a | ||
![]() |
319b506260 | ||
![]() |
6a8de98bbd | ||
![]() |
9aaac4f356 | ||
![]() |
e9911f3de8 | ||
![]() |
d76dcc9682 | ||
![]() |
6a32f41de4 | ||
![]() |
273d0e2ee4 | ||
![]() |
ce9b137c13 | ||
![]() |
dab65cd8f0 |
95
README.md
95
README.md
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
[](https://github.com/rbreaves/kinto/releases/latest)
|
[](https://github.com/rbreaves/kinto/releases/latest)
|
||||||
|
|
||||||
\- Linux & Windows with Mac-style shortcut keys. \-
|
\- Mac-style shortcut keys for Linux & Windows. \-
|
||||||
|
|
||||||
Seamless copy and paste with all apps and terminals. The zero effort solution.
|
Seamless copy and paste with all apps and terminals. The zero effort solution.
|
||||||
|
|
||||||
@@ -76,12 +76,30 @@ sudo apt install xfce4-appmenu-plugin vala-panel-appmenu-common
|
|||||||
xfconf-query -c xsettings -p /Gtk/Modules -n -t string -s "appmenu-gtk-module"
|
xfconf-query -c xsettings -p /Gtk/Modules -n -t string -s "appmenu-gtk-module"
|
||||||
```
|
```
|
||||||
|
|
||||||
|
**Perfect HiDPI fractional scaling on Ubuntu Budgie 20.04 under x11**
|
||||||
|
|
||||||
|
https://discourse.ubuntubudgie.org/t/ubuntu-budgie-20-04-fractional-hidpi-for-x11/4777
|
||||||
|
|
||||||
## How to Install (Windows)
|
## How to Install (Windows)
|
||||||
|
|
||||||
Video Tutorial: [How to Install Kinto.sh on Windows 10](https://youtu.be/sRk8A8krz40)
|
Video Tutorial: [How to Install Kinto.sh on Windows 10](https://youtu.be/sRk8A8krz40)
|
||||||
|
|
||||||
[Windows 10 Requirements](#Kinto-for-Windows-10-Requirements)
|
[Windows 10 Requirements](#Kinto-for-Windows-10-Requirements)
|
||||||
|
|
||||||
|
### Quick install
|
||||||
|
Open Powershell as Administrator and copy and paste the following. This will download & extract Kinto, install chocolatey, python3 and then install Kinto.
|
||||||
|
|
||||||
|
```
|
||||||
|
Invoke-WebRequest -Uri https://github.com/rbreaves/kinto/archive/refs/heads/master.zip -OutFile $env:USERPROFILE\Downloads\kinto.zip;Expand-Archive -LiteralPath "$env:USERPROFILE\Downloads\kinto.zip" -DestinationPath "$env:USERPROFILE\Downloads" -Force;Set-ExecutionPolicy Bypass -Scope Process -Force; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex; choco install -y python3;cd "$env:USERPROFILE\Downloads\kinto-master";py .\setup.py
|
||||||
|
```
|
||||||
|
|
||||||
|
Update system tray to show Kinto icon at all times (optional)
|
||||||
|
```
|
||||||
|
cmd /c "explorer shell:::{05d7b0f4-2121-4eff-bf6b-ed3f69b894d9}"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Old method
|
||||||
|
|
||||||
1. Open Powershell (Right click and Run as Administrator)
|
1. Open Powershell (Right click and Run as Administrator)
|
||||||
|
|
||||||
2. clone this repo
|
2. clone this repo
|
||||||
@@ -110,17 +128,58 @@ Select Uninstall
|
|||||||
|
|
||||||
## How to use in Remote Desktop Solutions
|
## How to use in Remote Desktop Solutions
|
||||||
|
|
||||||
Currently this may be limited to Windows RDP Clients and Servers on both ends, but in theory any remote desktop solution that properly handles the Windows key should work is what I am finding. The latest version of Kinto may need to be suspended via the system tray on the computer running the Client software of the Remote Desktop solution you are using - or you can add it to the "virtm" group of the Kinto.ahk script for Windows 10. On the linux side a 3rd, but similar "define_conditional_modmap" terminals like group may need to be added to align with virtm.
|
RDP fully works as long as the entire keyboard input is being captured. RDP had been working for awhile with Windows but as of 2/14/2021 Linux & macOS is now supported. VNC & other protocols may work, but is likely most dependent on how the keyboard input is captured on the computer running the client.
|
||||||
|
|
||||||
Note: virtm is just a shortname for virtual machine and remote desktop exceptions - so that remapping can happen within their OS & not on your host machine - if it can be avoided.
|
|Program|Src/Remote Client ⇒|Dst/Remote Server|Works? |Notes|
|
||||||
|
|
||||||
|Program|Host OS|Client OS|Works? |Notes|
|
|
||||||
|---|---|---|---|---|
|
|---|---|---|---|---|
|
||||||
|mstsc.exe (rdp)| Windows | Windows | Yes| |
|
|Official MS RDP (mstsc.exe)| ❖Windows ⇒| ❖Windows | ✅ Yes| |
|
||||||
|Official MS RDP| macOS | Windows | No|Use Windows in VM & RDP from it|
|
|Official MS RDP| ChromeOS 87+⇒| ❖Windows | ✅ Yes|May work on earlier versions as well, if they support Android apps|
|
||||||
|FreeRDP| macOS | Windows | No|Use Windows in VM & RDP from it|
|
|Remmina| 🐧Linux*/ChromeOS 87+⇒| ❖Windows | ✅ Yes|*Use hover menu to enable "Grab all keyboard events"|
|
||||||
|FreeRDP| Linux | Windows | No|Use Windows in VM & RDP from it|
|
|FreeRDP| 🐧Linux/ChromeOS 87+⇒| ❖Windows | ✅ Yes | |
|
||||||
|Official MS RDP| iOS/Android | Windows | No|No workaround atm|
|
|FreeRDP| 🍎macOS⇒| ❖Windows | ✅ Yes| [FreeRDP for macOS](#FreeRDP-for-macOS)|
|
||||||
|
|Remote Desktop Manager Free|🍎iOS⇒| ❖Windows | ✅ Yes| |
|
||||||
|
|Jump Desktop (RDP)| 🍎macOS*/iOS ⇒| ❖Windows | ✅ Yes|*Preferences -> Keyboard -> Disable "Key Conversions", Enabled "Send macOS Shortcuts" under Keyboard shortcuts|
|
||||||
|
|Official MS RDP| 🍎macOS⇒| ❖Windows | ❌ No|Initial Cmd key press not being passed|
|
||||||
|
|Remote Desktop Manager Free| 🍎macOS⇒| ❖Windows | ❌ No|Initial Cmd key press not being passed|
|
||||||
|
|Royal TSX Client| 🍎macOS⇒| ❖Windows | ❌ No|Initial Cmd key press not being passed|
|
||||||
|
|Official MS RDP| 🍎🤖iOS/Android⇒| ❖Windows | ❌ No|No workaround atm|
|
||||||
|
|
||||||
|
## FreeRDP for macOS
|
||||||
|
|
||||||
|
1. Install [brew.sh](https://brew.sh).
|
||||||
|
|
||||||
|
```/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"```
|
||||||
|
|
||||||
|
2. Install XQuartz (x11/xorg)
|
||||||
|
|
||||||
|
```brew install --cask xquartz```
|
||||||
|
|
||||||
|
3. log off and back on.
|
||||||
|
4. Install FreeRDP
|
||||||
|
|
||||||
|
```brew install freerdp```
|
||||||
|
|
||||||
|
5. Disable [NLA](https://kb.parallels.com/en/123661), if it is enabled on the destination.
|
||||||
|
6. Run command to access machine
|
||||||
|
Note: 192.168.x.x = Your IP.
|
||||||
|
|
||||||
|
```xfreerdp /u:your_username /v:192.168.x.x /cert-ignore /auto-reconnect-max-retries:0 /f +clipboard -decorations```
|
||||||
|
|
||||||
|
7. Click on XQuartz -> Preferences and set these checkmarks so that fullscreen can work, may need to quit it and re-run the xfreerdp command from step 6.
|
||||||
|
|
||||||
|
<img src="https://user-images.githubusercontent.com/10969616/108144025-68bfcf80-708e-11eb-96cc-2930b7b1694a.png" width="50%">
|
||||||
|
|
||||||
|
More info here
|
||||||
|
https://medium.com/idomongodb/macos-rdp-to-a-windows-machine-1e0f52f777b
|
||||||
|
|
||||||
|
## Jump Desktop for macOS
|
||||||
|
|
||||||
|
Screenshots of how to configure Jump Desktop for macOS users accessing a Windows PC with Kinto installed. I apologize that it is not a free RDP client - BUT it does work, and at $15 it is reasonable if you plan to use it frequently.
|
||||||
|
|
||||||
|
<img src="https://user-images.githubusercontent.com/10969616/107990246-a2fb7500-6f99-11eb-8c19-0a9b538b996f.png" width="25%">
|
||||||
|
<img src="https://user-images.githubusercontent.com/10969616/107990265-a8f15600-6f99-11eb-9922-bbcfa0b92031.png" width="50%">
|
||||||
|
<img src="https://user-images.githubusercontent.com/10969616/107990256-a68efc00-6f99-11eb-9f31-575ed6016944.png" width="50%">
|
||||||
|
|
||||||
|
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
@@ -201,6 +260,9 @@ Other programs that will be installed when you run ./setup.py
|
|||||||
- Strawberry Perl
|
- Strawberry Perl
|
||||||
|
|
||||||
Note: Sublime Text users should disable screen rotation hotkeys as they will interfere with multi-cursor and possibly other combos. See https://windowsloop.com/disable-screen-rotation-keyboard-shortcut/ for details.
|
Note: Sublime Text users should disable screen rotation hotkeys as they will interfere with multi-cursor and possibly other combos. See https://windowsloop.com/disable-screen-rotation-keyboard-shortcut/ for details.
|
||||||
|
|
||||||
|
You may also want to disable the Xbox Game Bar so that Win+G or other shortcuts will not interfer with any of your remaps. Start menu -> Game bar shortcuts -> toggle Off.
|
||||||
|
|
||||||
## Shortcut Creation
|
## Shortcut Creation
|
||||||
|
|
||||||
[Linux Shortcut Creation (Xkeysnail)](#Linux-Xkeysnail)
|
[Linux Shortcut Creation (Xkeysnail)](#Linux-Xkeysnail)
|
||||||
@@ -385,6 +447,9 @@ I'd appreciate any help from people with non-US based keyboards, to help ensure
|
|||||||
|
|
||||||
Yet another keyboard remapping tool for X environment
|
Yet another keyboard remapping tool for X environment
|
||||||
|
|
||||||
|
[libinput-gestures](https://github.com/bulletmark/libinput-gestures)
|
||||||
|
Three finger gesture or other type of gestures for desktop switching or other features within a Linux distro. More info here for quickly setting it up. Make sure you logoff after setting your user to access input. https://www.reddit.com/r/GalliumOS/comments/5lgrxe/psa_multitouch_gestures_on_galliumos/
|
||||||
|
|
||||||
[Interception](https://gitlab.com/interception/linux/tools)
|
[Interception](https://gitlab.com/interception/linux/tools)
|
||||||
|
|
||||||
Another low level key remapper, not as easily configurable as Xkeysnail, but does not rely on X11.
|
Another low level key remapper, not as easily configurable as Xkeysnail, but does not rely on X11.
|
||||||
@@ -402,6 +467,10 @@ Windows 10 touchpad to precision touchpad driver
|
|||||||
|
|
||||||
macOS cursors for Windows
|
macOS cursors for Windows
|
||||||
|
|
||||||
|
[QuickLook](https://github.com/QL-Win/QuickLook) for Windows by QL-Win
|
||||||
|
|
||||||
|
It allows users to peek into a file content in lightning speed by just pressing the Space key
|
||||||
|
|
||||||
[fusuma](https://github.com/iberianpig/fusuma) by iberianpig
|
[fusuma](https://github.com/iberianpig/fusuma) by iberianpig
|
||||||
|
|
||||||
Multitouch gestures with libinput driver on Linux
|
Multitouch gestures with libinput driver on Linux
|
||||||
@@ -490,11 +559,9 @@ Vala rewrite of SimplePanel - GitHub mirror (Global Menu for XFCE)
|
|||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
|
|
||||||
I welcome any and all contributors who want to contribute something to this project.
|
I welcome any and all contributors who want to add something to this project.
|
||||||
|
|
||||||
If you are specifically wanting to contribute additional custom keymaps to help with aligning Kinto's behavior to that of a mac keyboard then I would strongly recommend that you read Glen Whitney's comment on Superuser (the link is below). You may also look at the .xkb directory, mac_wordwise.sh and xactive.sh files to better understand how Kinto operates so that you can test your own keymaps without having to use the systemd service or running the xactive.sh script.
|
You can read the configuration files and the open issue tickets such as [#44 Shortcut Translation Tables](https://github.com/rbreaves/kinto/issues/44), [#115 Shortcut Creation (xkeysnail)](https://github.com/rbreaves/kinto/issues/115), and [#348 Missing Shortcuts: Post them here](https://github.com/rbreaves/kinto/issues/348) to best understand what's currently happening and how best to contribute.
|
||||||
|
|
||||||
https://superuser.com/questions/385748/binding-superc-superv-to-copy-and-paste
|
|
||||||
|
|
||||||
## More information about Kinto
|
## More information about Kinto
|
||||||
|
|
||||||
|
@@ -1,11 +0,0 @@
|
|||||||
"~/.config/kinto/browsers.sh Left"
|
|
||||||
m:0x8 + c:192
|
|
||||||
Alt + XF86Launch5
|
|
||||||
|
|
||||||
"~/.config/kinto/browsers.sh Right"
|
|
||||||
m:0x8 + c:193
|
|
||||||
Alt + XF86Launch6
|
|
||||||
|
|
||||||
"~/.config/kinto/browsers.sh Undo"
|
|
||||||
m:0x8 + c:194
|
|
||||||
Alt + XF86Launch7
|
|
@@ -1,75 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
action=$1
|
|
||||||
|
|
||||||
saveClipboard=$(xclip -selection clipboard -o)
|
|
||||||
echo "" | xclip -i -selection clipboard
|
|
||||||
|
|
||||||
if [ "$action" == "Left" ] || [ "$action" == "Undo" ];then
|
|
||||||
xdotool getactivewindow key --delay 40 --clearmodifiers Shift+Home ctrl+c Home
|
|
||||||
firstClipboard=$(xclip -selection clipboard -o)
|
|
||||||
if [ "$firstClipboard" == "" ];then
|
|
||||||
xdotool getactivewindow key --delay 40 --clearmodifiers Shift+Right ctrl+c Home
|
|
||||||
firstClipboard=$(xclip -selection clipboard -o)
|
|
||||||
if [ "$firstClipboard" == "" ];then
|
|
||||||
xdotool getactivewindow key --delay 24 --clearmodifiers bar Shift+Left ctrl+x
|
|
||||||
firstClipboard=$(xclip -selection clipboard -o)
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
echo "" | xclip -i -selection clipboard
|
|
||||||
xdotool getactivewindow key --clearmodifiers Shift+Right ctrl+c Home
|
|
||||||
if [ "${firstClipboard:0:1}" == "$(xclip -selection clipboard -o)" ];then
|
|
||||||
echo "" | xclip -i -selection clipboard
|
|
||||||
fi
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$action" == "Right" ];then
|
|
||||||
xdotool getactivewindow key --delay 40 --clearmodifiers Shift+End ctrl+c
|
|
||||||
firstClipboard=$(xclip -selection clipboard -o | tr -d /)
|
|
||||||
if [ "$firstClipboard" == "" ];then
|
|
||||||
xdotool getactivewindow key --delay 40 --clearmodifiers Left Shift+Right ctrl+c
|
|
||||||
firstClipboard=$(xclip -selection clipboard -o | tr -d /)
|
|
||||||
if [ "$firstClipboard" == "" ];then
|
|
||||||
xdotool getactivewindow key --delay 24 --clearmodifiers bar Shift+Left ctrl+x
|
|
||||||
firstClipboard=$(xclip -selection clipboard -o | tr -d /)
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
if [ "$firstClipboard" != "" ];then
|
|
||||||
xdotool getactivewindow key --clearmodifiers Right
|
|
||||||
fi
|
|
||||||
echo "" | xclip -i -selection clipboard
|
|
||||||
xdotool getactivewindow key --clearmodifiers Shift+Left ctrl+c
|
|
||||||
if [ "${firstClipboard: -1}" == "$(xclip -selection clipboard -o)" ];then
|
|
||||||
echo "" | xclip -i -selection clipboard
|
|
||||||
xdotool getactivewindow key --clearmodifiers Right
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
newClipboard=$(xclip -selection clipboard -o)
|
|
||||||
|
|
||||||
# echo ${#firstClipboard}
|
|
||||||
# echo "$firstClipboard""-"
|
|
||||||
# echo "first"
|
|
||||||
# echo ${#newClipboard}
|
|
||||||
# echo "$newClipboard""-"
|
|
||||||
# echo "hello"
|
|
||||||
|
|
||||||
|
|
||||||
if [ "$action" == "Left" ] && ([ "$firstClipboard" == "" ] || [ "$newClipboard" != "" ]);then
|
|
||||||
xdotool getactivewindow key --clearmodifiers alt+Left
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$action" == "Right" ] && ([ "$firstClipboard" == "" ] || [ "$newClipboard" != "" ]);then
|
|
||||||
xdotool getactivewindow key --clearmodifiers alt+Right
|
|
||||||
elif [ "$action" == "Right" ];then
|
|
||||||
xdotool getactivewindow key --clearmodifiers End
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ "$action" == "Undo" ] && ([ "$firstClipboard" != "" ] && [ "$newClipboard" == "" ]);then
|
|
||||||
xdotool getactivewindow key --delay 24 --clearmodifiers ctrl+z
|
|
||||||
elif [ "$action" == "Undo" ];then
|
|
||||||
xdotool getactivewindow key ctrl+Shift+t
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo $saveClipboard | xclip -i -selection clipboard
|
|
@@ -153,6 +153,14 @@ class MyWindow(Gtk.Window):
|
|||||||
menuitem_file = Gtk.MenuItem(label="File")
|
menuitem_file = Gtk.MenuItem(label="File")
|
||||||
menubar.append(menuitem_file)
|
menubar.append(menuitem_file)
|
||||||
submenu_file = Gtk.Menu()
|
submenu_file = Gtk.Menu()
|
||||||
|
|
||||||
|
menuitem_restart = Gtk.MenuItem(label="Restart")
|
||||||
|
menuitem_restart.connect('activate',self.runRestart)
|
||||||
|
submenu_file.append(menuitem_restart)
|
||||||
|
menuitem_stop = Gtk.MenuItem(label="Stop")
|
||||||
|
menuitem_stop.connect('activate',self.runStop)
|
||||||
|
submenu_file.append(menuitem_stop)
|
||||||
|
|
||||||
menuitem_file.set_submenu(submenu_file)
|
menuitem_file.set_submenu(submenu_file)
|
||||||
submenu_file.append(self.menuitem_auto)
|
submenu_file.append(self.menuitem_auto)
|
||||||
kintotray = int(self.queryConfig('ps -aux | grep [k]intotray >/dev/null 2>&1 && echo "1" || echo "0"'))
|
kintotray = int(self.queryConfig('ps -aux | grep [k]intotray >/dev/null 2>&1 && echo "1" || echo "0"'))
|
||||||
@@ -164,12 +172,6 @@ class MyWindow(Gtk.Window):
|
|||||||
self.menuitem_systray.signal_id = self.menuitem_systray.connect('activate',self.checkTray,True)
|
self.menuitem_systray.signal_id = self.menuitem_systray.connect('activate',self.checkTray,True)
|
||||||
menuitem_file.connect('activate',self.refreshFile)
|
menuitem_file.connect('activate',self.refreshFile)
|
||||||
submenu_file.append(self.menuitem_systray)
|
submenu_file.append(self.menuitem_systray)
|
||||||
menuitem_restart = Gtk.MenuItem(label="Restart")
|
|
||||||
menuitem_restart.connect('activate',self.runRestart)
|
|
||||||
submenu_file.append(menuitem_restart)
|
|
||||||
menuitem_stop = Gtk.MenuItem(label="Stop")
|
|
||||||
menuitem_stop.connect('activate',self.runStop)
|
|
||||||
submenu_file.append(menuitem_stop)
|
|
||||||
|
|
||||||
menuitem_quit = Gtk.MenuItem(label="Quit")
|
menuitem_quit = Gtk.MenuItem(label="Quit")
|
||||||
submenu_file.append(menuitem_quit)
|
submenu_file.append(menuitem_quit)
|
||||||
|
122
linux/kinto.py
122
linux/kinto.py
@@ -7,16 +7,65 @@ from xkeysnail.transform import *
|
|||||||
# Use the following for testing terminal keymaps
|
# Use the following for testing terminal keymaps
|
||||||
# terminals = [ "", ... ]
|
# terminals = [ "", ... ]
|
||||||
# xbindkeys -mk
|
# xbindkeys -mk
|
||||||
terminals = ["kinto-gui.py","gnome-terminal","konsole","io.elementary.terminal","terminator","sakura","guake","tilda","xterm","eterm","kitty","alacritty","mate-terminal","tilix","xfce4-terminal","hyper"]
|
terminals = [
|
||||||
|
"alacritty",
|
||||||
|
"eterm",
|
||||||
|
"gnome-terminal",
|
||||||
|
"guake",
|
||||||
|
"hyper",
|
||||||
|
"io.elementary.terminal",
|
||||||
|
"kinto-gui.py",
|
||||||
|
"kitty",
|
||||||
|
"konsole",
|
||||||
|
"mate-terminal",
|
||||||
|
"qterminal",
|
||||||
|
"sakura",
|
||||||
|
"terminator",
|
||||||
|
"tilda",
|
||||||
|
"tilix",
|
||||||
|
"xfce4-terminal",
|
||||||
|
"xterm",
|
||||||
|
]
|
||||||
terminals = [term.casefold() for term in terminals]
|
terminals = [term.casefold() for term in terminals]
|
||||||
termStr = "|".join(str(x) for x in terminals)
|
termStr = "|".join(str(x) for x in terminals)
|
||||||
|
|
||||||
|
mscodes = ["code","vscodium"]
|
||||||
|
codeStr = "|".join(str(x) for x in mscodes)
|
||||||
|
|
||||||
|
# Add remote desktop clients & VM software here
|
||||||
|
# Ideally we'd only exclude the client window,
|
||||||
|
# but that may not be easily done.
|
||||||
|
remotes = [
|
||||||
|
"org.remmina.Remmina",
|
||||||
|
"xfreerdp",
|
||||||
|
]
|
||||||
|
remotes = [client.casefold() for client in remotes]
|
||||||
|
|
||||||
|
# Add remote desktop clients & VMs for no remapping
|
||||||
|
terminals.extend(remotes)
|
||||||
|
mscodes.extend(remotes)
|
||||||
|
|
||||||
# Use for browser specific hotkeys
|
# Use for browser specific hotkeys
|
||||||
browsers = ["Chromium","Chromium-browser","Google-chrome","microsoft-edge-dev","microsoft-edge","Epiphany","Firefox","Discord"]
|
browsers = [
|
||||||
|
"Chromium",
|
||||||
|
"Chromium-browser",
|
||||||
|
"Discord",
|
||||||
|
"Epiphany",
|
||||||
|
"Firefox",
|
||||||
|
"Google-chrome",
|
||||||
|
"microsoft-edge",
|
||||||
|
"microsoft-edge-dev",
|
||||||
|
]
|
||||||
browsers = [browser.casefold() for browser in browsers]
|
browsers = [browser.casefold() for browser in browsers]
|
||||||
browserStr = "|".join(str(x) for x in browsers)
|
browserStr = "|".join(str(x) for x in browsers)
|
||||||
|
|
||||||
chromes = ["Chromium","Chromium-browser","Google-chrome","microsoft-edge-dev","microsoft-edge"]
|
chromes = [
|
||||||
|
"Chromium",
|
||||||
|
"Chromium-browser",
|
||||||
|
"Google-chrome",
|
||||||
|
"microsoft-edge",
|
||||||
|
"microsoft-edge-dev",
|
||||||
|
]
|
||||||
chromes = [chrome.casefold() for chrome in chromes]
|
chromes = [chrome.casefold() for chrome in chromes]
|
||||||
chromeStr = "|".join(str(x) for x in chromes)
|
chromeStr = "|".join(str(x) for x in chromes)
|
||||||
|
|
||||||
@@ -24,9 +73,6 @@ chromeStr = "|".join(str(x) for x in chromes)
|
|||||||
# edges = [edge.casefold() for edge in edges]
|
# edges = [edge.casefold() for edge in edges]
|
||||||
# edgeStr = "|".join(str(x) for x in edges)
|
# edgeStr = "|".join(str(x) for x in edges)
|
||||||
|
|
||||||
mscodes = ["code","vscodium"]
|
|
||||||
codeStr = "|".join(str(x) for x in mscodes)
|
|
||||||
|
|
||||||
define_multipurpose_modmap(
|
define_multipurpose_modmap(
|
||||||
# {Key.ENTER: [Key.ENTER, Key.RIGHT_CTRL] # Enter2Cmd
|
# {Key.ENTER: [Key.ENTER, Key.RIGHT_CTRL] # Enter2Cmd
|
||||||
# {Key.CAPSLOCK: [Key.ESC, Key.RIGHT_CTRL] # Caps2Esc
|
# {Key.CAPSLOCK: [Key.ESC, Key.RIGHT_CTRL] # Caps2Esc
|
||||||
@@ -34,6 +80,12 @@ define_multipurpose_modmap(
|
|||||||
{ # Placeholder
|
{ # Placeholder
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# Fix for avoiding modmapping when using Synergy keyboard/mouse sharing.
|
||||||
|
# Synergy doesn't set a wm_class, so this may cause issues with other
|
||||||
|
# applications that also don't set the wm_class.
|
||||||
|
# Enable only if you use Synergy.
|
||||||
|
# define_conditional_modmap(lambda wm_class: wm_class == '', {})
|
||||||
|
|
||||||
# [Global modemap] Change modifier keys as in xmodmap
|
# [Global modemap] Change modifier keys as in xmodmap
|
||||||
define_conditional_modmap(lambda wm_class: wm_class.casefold() not in terminals,{
|
define_conditional_modmap(lambda wm_class: wm_class.casefold() not in terminals,{
|
||||||
|
|
||||||
@@ -194,7 +246,7 @@ define_keymap(re.compile("^jetbrains-(?!.*toolbox).*$", re.IGNORECASE),{
|
|||||||
# VCS/Local History
|
# VCS/Local History
|
||||||
K("Super-v"): K("M-Grave"), # VCS quick popup
|
K("Super-v"): K("M-Grave"), # VCS quick popup
|
||||||
K("Super-c"): K("LC-c"), # Sigints - interrupt
|
K("Super-c"): K("LC-c"), # Sigints - interrupt
|
||||||
})
|
},"Jetbrains")
|
||||||
|
|
||||||
# Keybindings for Nautilus
|
# Keybindings for Nautilus
|
||||||
define_keymap(re.compile("org.gnome.nautilus", re.IGNORECASE),{
|
define_keymap(re.compile("org.gnome.nautilus", re.IGNORECASE),{
|
||||||
@@ -202,16 +254,13 @@ define_keymap(re.compile("org.gnome.nautilus", re.IGNORECASE),{
|
|||||||
K("RC-Down"): K("M-Down"), # Go Down dir
|
K("RC-Down"): K("M-Down"), # Go Down dir
|
||||||
K("RC-Left"): K("M-Left"), # Go Back
|
K("RC-Left"): K("M-Left"), # Go Back
|
||||||
K("RC-Right"): K("M-Right"), # Go Forward
|
K("RC-Right"): K("M-Right"), # Go Forward
|
||||||
})
|
},"Nautilus - Finder")
|
||||||
|
|
||||||
# Keybindings for Browsers
|
# Keybindings for Browsers
|
||||||
define_keymap(re.compile(browserStr, re.IGNORECASE),{
|
define_keymap(re.compile(browserStr, re.IGNORECASE),{
|
||||||
K("RC-Q"): K("RC-Q"), # Close all browsers Instances
|
K("RC-Q"): K("RC-Q"), # Close all browsers Instances
|
||||||
K("M-RC-I"): K("RC-Shift-I"), # Dev tools
|
K("M-RC-I"): K("RC-Shift-I"), # Dev tools
|
||||||
K("M-RC-J"): K("RC-Shift-J"), # Dev tools
|
K("M-RC-J"): K("RC-Shift-J"), # Dev tools
|
||||||
K("RC-Left"): K("M-F14"), # Back
|
|
||||||
K("RC-Right"): K("M-F15"), # Forward
|
|
||||||
K("RC-Z"): K("M-F16"), # Undo Text/Closed Tab
|
|
||||||
K("RC-Key_1"): K("M-Key_1"), # Jump to Tab #1-#8
|
K("RC-Key_1"): K("M-Key_1"), # Jump to Tab #1-#8
|
||||||
K("RC-Key_2"): K("M-Key_2"),
|
K("RC-Key_2"): K("M-Key_2"),
|
||||||
K("RC-Key_3"): K("M-Key_3"),
|
K("RC-Key_3"): K("M-Key_3"),
|
||||||
@@ -221,21 +270,35 @@ define_keymap(re.compile(browserStr, re.IGNORECASE),{
|
|||||||
K("RC-Key_7"): K("M-Key_7"),
|
K("RC-Key_7"): K("M-Key_7"),
|
||||||
K("RC-Key_8"): K("M-Key_8"),
|
K("RC-Key_8"): K("M-Key_8"),
|
||||||
K("RC-Key_9"): K("M-Key_9"), # Jump to last tab
|
K("RC-Key_9"): K("M-Key_9"), # Jump to last tab
|
||||||
|
K("C-Left_Brace"): K("C-Page_Up"),
|
||||||
|
K("C-Right_Brace"): K("C-Page_Down"),
|
||||||
})
|
})
|
||||||
|
|
||||||
# Open preferences in browsers
|
# Open preferences in browsers
|
||||||
define_keymap(re.compile("Firefox", re.IGNORECASE),{
|
define_keymap(re.compile("Firefox", re.IGNORECASE),{
|
||||||
K("C-comma"): [K("C-T"),K("a"),K("b"),K("o"),K("u"),K("t"),K("Shift-SEMICOLON"),K("p"),K("r"),K("e"),K("f"),K("e"),K("r"),K("e"),K("n"),K("c"),K("e"),K("s"),K("Enter")],
|
K("C-comma"): [
|
||||||
|
K("C-T"),K("a"),K("b"),K("o"),K("u"),K("t"),
|
||||||
|
K("Shift-SEMICOLON"),K("p"),K("r"),K("e"),K("f"),
|
||||||
|
K("e"),K("r"),K("e"),K("n"),K("c"),K("e"),K("s"),K("Enter")
|
||||||
|
],
|
||||||
})
|
})
|
||||||
define_keymap(re.compile(chromeStr, re.IGNORECASE),{
|
define_keymap(re.compile(chromeStr, re.IGNORECASE),{
|
||||||
K("C-comma"): [K("M-e"), K("s"),K("Enter")],
|
K("C-comma"): [K("M-e"), K("s"),K("Enter")],
|
||||||
})
|
}, "Browsers")
|
||||||
# Opera C-F12
|
# Opera C-F12
|
||||||
|
|
||||||
define_keymap(None,{
|
# Note: terminals extends to remotes as well
|
||||||
|
define_keymap(lambda wm_class: wm_class.casefold() not in terminals,{
|
||||||
|
K("RC-Dot"): K("Esc"), # Mimic macOS Cmd+dot = Escape key (not in terminals)
|
||||||
|
})
|
||||||
|
|
||||||
|
# None referenced here originally
|
||||||
|
# - but remote clients and VM software ought to be set here
|
||||||
|
# These are the typical remaps for ALL GUI based apps
|
||||||
|
define_keymap(lambda wm_class: wm_class.casefold() not in remotes,{
|
||||||
K("RC-Space"): K("Alt-F1"), # Default SL - Launch Application Menu (gnome/kde)
|
K("RC-Space"): K("Alt-F1"), # Default SL - Launch Application Menu (gnome/kde)
|
||||||
K("RC-F3"):K("Super-d"), # Default SL - Show Desktop (gnome/kde,eos)
|
K("RC-F3"):K("Super-d"), # Default SL - Show Desktop (gnome/kde,eos)
|
||||||
K("RC-LC-f"):K("M-F10"), # Default SL - Maximize app (gnome/kde)
|
K("RC-Super-f"):K("M-F10"), # Default SL - Maximize app (gnome/kde)
|
||||||
# K("Super-Right"):K("C-M-Right"), # Default SL - Change workspace (budgie)
|
# K("Super-Right"):K("C-M-Right"), # Default SL - Change workspace (budgie)
|
||||||
# K("Super-Left"):K("C-M-Left"), # Default SL - Change workspace (budgie)
|
# K("Super-Left"):K("C-M-Left"), # Default SL - Change workspace (budgie)
|
||||||
K("RC-Q"): K("M-F4"), # Default SL - not-popos
|
K("RC-Q"): K("M-F4"), # Default SL - not-popos
|
||||||
@@ -284,6 +347,8 @@ define_keymap(None,{
|
|||||||
K("Super-k"): [K("Shift-End"), K("Backspace")],
|
K("Super-k"): [K("Shift-End"), K("Backspace")],
|
||||||
K("Super-d"): K("Delete"),
|
K("Super-d"): K("Delete"),
|
||||||
|
|
||||||
|
# K("M-RC-Space"): K(""), # Open Finder - Placeholder
|
||||||
|
|
||||||
# Wordwise
|
# Wordwise
|
||||||
K("RC-Left"): K("Home"), # Beginning of Line
|
K("RC-Left"): K("Home"), # Beginning of Line
|
||||||
K("RC-Shift-Left"): K("Shift-Home"), # Select all to Beginning of Line
|
K("RC-Shift-Left"): K("Shift-Home"), # Select all to Beginning of Line
|
||||||
@@ -297,14 +362,16 @@ define_keymap(None,{
|
|||||||
K("RC-Shift-Up"): K("C-Shift-Home"), # Select all to Beginning of File
|
K("RC-Shift-Up"): K("C-Shift-Home"), # Select all to Beginning of File
|
||||||
K("RC-Down"): K("C-End"), # End of File
|
K("RC-Down"): K("C-End"), # End of File
|
||||||
K("RC-Shift-Down"): K("C-Shift-End"), # Select all to End of File
|
K("RC-Shift-Down"): K("C-Shift-End"), # Select all to End of File
|
||||||
# K("M-Backspace"): K("Delete"), # Chromebook/IBM - Delete
|
# K("RM-Backspace"): K("Delete"), # Chromebook/IBM - Delete
|
||||||
K("Super-Backspace"): K("C-Backspace"), # Default not-chromebook - Delete Left Word of Cursor
|
K("Super-Backspace"): K("C-Backspace"), # Delete Left Word of Cursor
|
||||||
K("Super-Delete"): K("C-Delete"), # Default not-chromebook - Delete Right Word of Cursor
|
K("Super-Delete"): K("C-Delete"), # Delete Right Word of Cursor
|
||||||
K("Alt-Backspace"): K("C-Backspace"), # Default not-chromebook - Delete Left Word of Cursor
|
# K("LM-Backspace"): K("C-Backspace"), # Chromebook/IBM - Delete Left Word of Cursor
|
||||||
K("Alt-Delete"): K("C-Delete"), # Default not-chromebook - Delete Right Word of Cursor
|
K("M-Backspace"): K("C-Backspace"), # Default not-chromebook
|
||||||
|
K("RC-Backspace"): K("C-Shift-Backspace"), # Delete Entire Line Left of Cursor
|
||||||
|
K("Alt-Delete"): K("C-Delete"), # Delete Right Word of Cursor
|
||||||
# K(""): pass_through_key, # cancel
|
# K(""): pass_through_key, # cancel
|
||||||
# K(""): K(""), #
|
# K(""): K(""), #
|
||||||
})
|
}, "General GUI")
|
||||||
|
|
||||||
define_keymap(lambda wm_class: wm_class.casefold() not in mscodes,{
|
define_keymap(lambda wm_class: wm_class.casefold() not in mscodes,{
|
||||||
# Wordwise remaining - for Everything but VS Code
|
# Wordwise remaining - for Everything but VS Code
|
||||||
@@ -327,7 +394,7 @@ define_keymap(lambda wm_class: wm_class.casefold() not in mscodes,{
|
|||||||
# https://superuser.com/questions/770301/pentadactyl-how-to-disable-menu-bar-toggle-by-alt
|
# https://superuser.com/questions/770301/pentadactyl-how-to-disable-menu-bar-toggle-by-alt
|
||||||
# **
|
# **
|
||||||
#
|
#
|
||||||
})
|
}, "Wordwise - not vscode")
|
||||||
|
|
||||||
# Keybindings for VS Code
|
# Keybindings for VS Code
|
||||||
define_keymap(re.compile(codeStr, re.IGNORECASE),{
|
define_keymap(re.compile(codeStr, re.IGNORECASE),{
|
||||||
@@ -356,8 +423,8 @@ define_keymap(re.compile(codeStr, re.IGNORECASE),{
|
|||||||
K("C-g"): K("f3"), # find_next
|
K("C-g"): K("f3"), # find_next
|
||||||
K("Shift-f3"): pass_through_key, # cancel find_prev
|
K("Shift-f3"): pass_through_key, # cancel find_prev
|
||||||
K("C-Shift-g"): K("Shift-f3"), # find_prev
|
K("C-Shift-g"): K("Shift-f3"), # find_prev
|
||||||
# K("Super-c"): K("LC-c"), # Default - Terminal - Sigint
|
# K("Super-c"): K("LC-c"), # Default - Terminal - Sigint
|
||||||
# K("Super-x"): K("LC-x"), # Default - Terminal - Exit nano
|
# K("Super-x"): K("LC-x"), # Default - Terminal - Exit nano
|
||||||
# K("M-c"): K("LC-c"), # Chromebook/IBM - Terminal - Sigint
|
# K("M-c"): K("LC-c"), # Chromebook/IBM - Terminal - Sigint
|
||||||
# K("M-x"): K("LC-x"), # Chromebook/IBM - Terminal - Exit nano
|
# K("M-x"): K("LC-x"), # Chromebook/IBM - Terminal - Exit nano
|
||||||
# K("Super-C-g"): K("C-f2"), # Default - Sublime - find_all_under
|
# K("Super-C-g"): K("C-f2"), # Default - Sublime - find_all_under
|
||||||
@@ -370,8 +437,8 @@ define_keymap(re.compile(codeStr, re.IGNORECASE),{
|
|||||||
|
|
||||||
# Keybindings for Sublime Text
|
# Keybindings for Sublime Text
|
||||||
define_keymap(re.compile("Sublime_text", re.IGNORECASE),{
|
define_keymap(re.compile("Sublime_text", re.IGNORECASE),{
|
||||||
# K("Super-c"): K("LC-c"), # Default - Terminal - Sigint
|
# K("Super-c"): K("LC-c"), # Default - Terminal - Sigint
|
||||||
# K("Super-x"): K("LC-x"), # Default - Terminal - Exit nano
|
# K("Super-x"): K("LC-x"), # Default - Terminal - Exit nano
|
||||||
# K("M-c"): K("LC-c"), # Chromebook/IBM - Terminal - Sigint
|
# K("M-c"): K("LC-c"), # Chromebook/IBM - Terminal - Sigint
|
||||||
# K("M-x"): K("LC-x"), # Chromebook/IBM - Terminal - Exit nano
|
# K("M-x"): K("LC-x"), # Chromebook/IBM - Terminal - Exit nano
|
||||||
K("Super-Space"): K("C-Space"), # Basic code completion
|
K("Super-Space"): K("C-Space"), # Basic code completion
|
||||||
@@ -477,7 +544,6 @@ define_keymap(re.compile(termStr, re.IGNORECASE),{
|
|||||||
# K("RC-Shift-Tab"): K("RC-Shift-backslash"), # xfce4
|
# K("RC-Shift-Tab"): K("RC-Shift-backslash"), # xfce4
|
||||||
# K("RC-Grave"): K("RC-Shift-backslash"), # xfce4
|
# K("RC-Grave"): K("RC-Shift-backslash"), # xfce4
|
||||||
# Converts Cmd to use Ctrl-Shift
|
# Converts Cmd to use Ctrl-Shift
|
||||||
K("RC-V"): K("C-Shift-V"),
|
|
||||||
K("RC-MINUS"): K("C-Shift-MINUS"),
|
K("RC-MINUS"): K("C-Shift-MINUS"),
|
||||||
K("RC-EQUAL"): K("C-Shift-EQUAL"),
|
K("RC-EQUAL"): K("C-Shift-EQUAL"),
|
||||||
K("RC-BACKSPACE"): K("C-Shift-BACKSPACE"),
|
K("RC-BACKSPACE"): K("C-Shift-BACKSPACE"),
|
||||||
@@ -513,7 +579,7 @@ define_keymap(re.compile(termStr, re.IGNORECASE),{
|
|||||||
K("RC-N"): K("C-Shift-N"),
|
K("RC-N"): K("C-Shift-N"),
|
||||||
K("RC-M"): K("C-Shift-M"),
|
K("RC-M"): K("C-Shift-M"),
|
||||||
K("RC-COMMA"): K("C-Shift-COMMA"),
|
K("RC-COMMA"): K("C-Shift-COMMA"),
|
||||||
K("RC-DOT"): K("C-Shift-DOT"),
|
K("RC-Dot"): K("LC-c"),
|
||||||
K("RC-SLASH"): K("C-Shift-SLASH"),
|
K("RC-SLASH"): K("C-Shift-SLASH"),
|
||||||
K("RC-KPASTERISK"): K("C-Shift-KPASTERISK"),
|
K("RC-KPASTERISK"): K("C-Shift-KPASTERISK"),
|
||||||
}, "terminals")
|
}, "terminals")
|
||||||
|
8
setup.py
8
setup.py
@@ -55,14 +55,14 @@ def windows_setup():
|
|||||||
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; Chromebook)/$2$3/g" .\\windows\\kinto-new.ahk')
|
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; Chromebook)/$2$3/g" .\\windows\\kinto-new.ahk')
|
||||||
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; WinModifiers/CB)/$2$3/g" .\\windows\\kinto-new.ahk')
|
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; WinModifiers/CB)/$2$3/g" .\\windows\\kinto-new.ahk')
|
||||||
if default == 3 or default == 4:
|
if default == 3 or default == 4:
|
||||||
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; CB/IBM)/$2$3/g" .\\windows\\kinto-new.ahk')
|
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; CB\/IBM)/$2$3/g" .\\windows\\kinto-new.ahk')
|
||||||
|
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; WinModifiers\/CB\/IBM)/$2$3/g" .\\windows\\kinto-new.ahk')
|
||||||
if default == 4:
|
if default == 4:
|
||||||
kbtype = "ibm"
|
kbtype = "ibm"
|
||||||
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; IBM)/$2$3/g" .\\windows\\kinto-new.ahk')
|
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; IBM)/$2$3/g" .\\windows\\kinto-new.ahk')
|
||||||
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/(; )(.*)(; WinModifiers/CB/IBM)/$2$3/g" .\\windows\\kinto-new.ahk')
|
|
||||||
if default > 0 and default < 5:
|
if default > 0 and default < 5:
|
||||||
stvscode = yn_choice(bcolors.CYELLOW2 + "Would you like to use Sublime Text 3 keymaps in VS Code?\n" + bcolors.ENDC)
|
stvscode = yn_choice(bcolors.CYELLOW2 + "Would you like to use Sublime Text 3 keymaps in VS Code?\n" + bcolors.ENDC)
|
||||||
print("\nWill now install Ubuntu Termimnal Theme as default...")
|
print("\nWill now install Ubuntu Terminal Theme as default...")
|
||||||
os.system('regedit "' + path + '\\windows\\theme_ubuntu.reg"')
|
os.system('regedit "' + path + '\\windows\\theme_ubuntu.reg"')
|
||||||
os.system('robocopy "'+ path + '\\assets" "%userprofile%\\.kinto\\assets" /E')
|
os.system('robocopy "'+ path + '\\assets" "%userprofile%\\.kinto\\assets" /E')
|
||||||
if (stvscode and (default > 0 or default < 3)):
|
if (stvscode and (default > 0 or default < 3)):
|
||||||
@@ -73,7 +73,7 @@ def windows_setup():
|
|||||||
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/{kbtype}/' + kbtype + '/g" "%userprofile%\\.kinto\\kinto-start.vbs"')
|
os.system('C:\\Strawberry\\perl\\bin\\perl.exe -pi -e "s/{kbtype}/' + kbtype + '/g" "%userprofile%\\.kinto\\kinto-start.vbs"')
|
||||||
os.system('copy /Y "' + path + '\\windows\\usb.vbs" "%userprofile%\\.kinto\\usb.vbs"')
|
os.system('copy /Y "' + path + '\\windows\\usb.vbs" "%userprofile%\\.kinto\\usb.vbs"')
|
||||||
os.system('copy /Y "' + path + '\\windows\\detectUSB.ahk" "%userprofile%\\.kinto\\detectUSB.ahk"')
|
os.system('copy /Y "' + path + '\\windows\\detectUSB.ahk" "%userprofile%\\.kinto\\detectUSB.ahk"')
|
||||||
os.system('mklink "%userprofile%\\Start Menu\\Programs\\Startup\\kinto-start.vbs" "%userprofile%\\.kinto\\kinto-start.vbs"')
|
os.system('mklink "%userprofile%\\AppData\\Roaming\\Microsoft\\Windows\\STARTM~1\\Programs\\Startup\\kinto-start.vbs" "%userprofile%\\.kinto\\kinto-start.vbs"')
|
||||||
os.system('copy /Y "'+ path + '\\windows\\NoShell.vbs" "%userprofile%\\.kinto\\NoShell.vbs"')
|
os.system('copy /Y "'+ path + '\\windows\\NoShell.vbs" "%userprofile%\\.kinto\\NoShell.vbs"')
|
||||||
os.system('copy /Y "'+ path + '\\windows\\toggle_kb.bat" "%userprofile%\\.kinto\\toggle_kb.bat"')
|
os.system('copy /Y "'+ path + '\\windows\\toggle_kb.bat" "%userprofile%\\.kinto\\toggle_kb.bat"')
|
||||||
os.system('copy /Y "'+ path + '\\windows\\kinto-new.ahk" "%userprofile%\\.kinto\\kinto.ahk"')
|
os.system('copy /Y "'+ path + '\\windows\\kinto-new.ahk" "%userprofile%\\.kinto\\kinto.ahk"')
|
||||||
|
@@ -131,6 +131,7 @@ Exit() {
|
|||||||
SetTitleMatchMode, 2
|
SetTitleMatchMode, 2
|
||||||
|
|
||||||
GroupAdd, terminals, ahk_exe ubuntu.exe
|
GroupAdd, terminals, ahk_exe ubuntu.exe
|
||||||
|
GroupAdd, terminals, ahk_exe ubuntu2004.exe
|
||||||
GroupAdd, terminals, ahk_exe ConEmu.exe
|
GroupAdd, terminals, ahk_exe ConEmu.exe
|
||||||
GroupAdd, terminals, ahk_exe ConEmu64.exe
|
GroupAdd, terminals, ahk_exe ConEmu64.exe
|
||||||
GroupAdd, terminals, ahk_exe powershell.exe
|
GroupAdd, terminals, ahk_exe powershell.exe
|
||||||
@@ -144,6 +145,7 @@ GroupAdd, terminals, Fluent Terminal ahk_class ApplicationFrameWindow
|
|||||||
GroupAdd, terminals, ahk_class Console_2_Main
|
GroupAdd, terminals, ahk_class Console_2_Main
|
||||||
|
|
||||||
GroupAdd, posix, ahk_exe ubuntu.exe
|
GroupAdd, posix, ahk_exe ubuntu.exe
|
||||||
|
GroupAdd, posix, ahk_exe ubuntu2004.exe
|
||||||
GroupAdd, posix, ahk_exe ConEmu.exe
|
GroupAdd, posix, ahk_exe ConEmu.exe
|
||||||
GroupAdd, posix, ahk_exe ConEmu64.exe
|
GroupAdd, posix, ahk_exe ConEmu64.exe
|
||||||
GroupAdd, posix, ahk_exe Hyper.exe
|
GroupAdd, posix, ahk_exe Hyper.exe
|
||||||
@@ -244,7 +246,7 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
; Tertiary::LWin
|
; Tertiary::LWin
|
||||||
|
|
||||||
; $LAlt::LCtrl ; CB/IBM
|
; $LAlt::LCtrl ; CB/IBM
|
||||||
; $RAlt::RCtrl ; CB/IBM
|
; $RAlt::RCtrl ; IBM
|
||||||
; $RCtrl::RAlt ; CB/IBM
|
; $RCtrl::RAlt ; CB/IBM
|
||||||
; $CapsLock::LWin ; IBM
|
; $CapsLock::LWin ; IBM
|
||||||
; $LCtrl::LAlt ; CB/IBM
|
; $LCtrl::LAlt ; CB/IBM
|
||||||
@@ -260,8 +262,11 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
; $LCtrl::LWin ; MacModifiers
|
; $LCtrl::LWin ; MacModifiers
|
||||||
|
|
||||||
; Hack to disable start menu on winkey
|
; Hack to disable start menu on winkey
|
||||||
; Static
|
; Static - Does not apply to IBM or Chromebooks
|
||||||
$LCtrl up::Send {Ctrl down}{LWin up}{Ctrl up}
|
; $LCtrl up::Send {Ctrl down}{LWin up}{Ctrl up} ; Default
|
||||||
|
; LWin::return ; Chromebook
|
||||||
|
; RWin::return ; Chromebook
|
||||||
|
; RAlt::return ; Chromebook
|
||||||
|
|
||||||
; Disable Win-Up/Down - interferes with Sublime text 3 multi-cursors
|
; Disable Win-Up/Down - interferes with Sublime text 3 multi-cursors
|
||||||
#Down::return
|
#Down::return
|
||||||
@@ -334,7 +339,8 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
^F3::Send #d
|
^F3::Send #d
|
||||||
|
|
||||||
; Emoji Panel
|
; Emoji Panel
|
||||||
#^Space::Send {LWin down};{LWin up}
|
; #^Space::Send {LWin down};{LWin up} ; Default
|
||||||
|
; !^Space::Send {LWin down};{LWin up} ; CB/IBM
|
||||||
|
|
||||||
; Full Screenshot
|
; Full Screenshot
|
||||||
^+3::Send {PrintScreen}
|
^+3::Send {PrintScreen}
|
||||||
@@ -342,31 +348,11 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
; Region Screenshot
|
; Region Screenshot
|
||||||
^+4::Send #+{S}
|
^+4::Send #+{S}
|
||||||
|
|
||||||
|
; Open File Browser
|
||||||
|
; !^space::Send #e ; Default
|
||||||
|
; #^space::Send #e ; CB/IBM
|
||||||
|
|
||||||
; wordwise support
|
; wordwise support
|
||||||
#if !winactive("ahk_group browsers")
|
|
||||||
$^Left::Send {Home}
|
|
||||||
$^Right::Send {End}
|
|
||||||
#if
|
|
||||||
#if winactive("ahk_group browsers")
|
|
||||||
$^Left::
|
|
||||||
if(blinking()){
|
|
||||||
Send, {Home}
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
Send, !{Left}
|
|
||||||
}
|
|
||||||
Return
|
|
||||||
$^Right::
|
|
||||||
if(blinking()){
|
|
||||||
Send, {End}
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
Send, !{Right}
|
|
||||||
}
|
|
||||||
Return
|
|
||||||
#if
|
|
||||||
$^+Left::Send +{Home}
|
|
||||||
$^+Right::Send +{End}
|
|
||||||
^Up::Send ^{Home}
|
^Up::Send ^{Home}
|
||||||
^+Up::Send ^+{Home}
|
^+Up::Send ^+{Home}
|
||||||
^Down::Send ^{End}
|
^Down::Send ^{End}
|
||||||
@@ -377,8 +363,57 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
!+Left::Send ^+{Left}
|
!+Left::Send ^+{Left}
|
||||||
!Right::Send ^{Right}
|
!Right::Send ^{Right}
|
||||||
!+Right::Send ^+{Right}
|
!+Right::Send ^+{Right}
|
||||||
|
$^Left::Send {Home}
|
||||||
|
$^+Left::Send +{Home}
|
||||||
|
$^Right::Send {End}
|
||||||
|
$^+Right::Send +{End}
|
||||||
|
|
||||||
|
; #if GetKeyState("LWin", "P") || GetKeyState("RAlt", "P") ; Chromebook
|
||||||
|
; Space::Send ^{Esc} ; Chromebook
|
||||||
|
; 0::Send #0 ; Chromebook
|
||||||
|
; 1::Send #1 ; Chromebook
|
||||||
|
; 2::Send #2 ; Chromebook
|
||||||
|
; 3::Send #3 ; Chromebook
|
||||||
|
; 4::Send #4 ; Chromebook
|
||||||
|
; 5::Send #5 ; Chromebook
|
||||||
|
; 6::Send #6 ; Chromebook
|
||||||
|
; 7::Send #7 ; Chromebook
|
||||||
|
; 8::Send #8 ; Chromebook
|
||||||
|
; 9::Send #9 ; Chromebook
|
||||||
|
; -::Send #- ; Chromebook
|
||||||
|
; =::Send #= ; Chromebook
|
||||||
|
; `::Send #` ; Chromebook
|
||||||
|
; `;::Send #; ; Chromebook
|
||||||
|
; a::Send #a ; Chromebook
|
||||||
|
; b::Send #b ; Chromebook
|
||||||
|
; c::Send #c ; Chromebook
|
||||||
|
; d::Send #d ; Chromebook
|
||||||
|
; e::Send #e ; Chromebook
|
||||||
|
; f::Send #f ; Chromebook
|
||||||
|
; g::Send #g ; Chromebook
|
||||||
|
; h::Send #h ; Chromebook
|
||||||
|
; i::Send #i ; Chromebook
|
||||||
|
; j::Send #j ; Chromebook
|
||||||
|
; k::Send #k ; Chromebook
|
||||||
|
; l::Send #l ; Chromebook
|
||||||
|
; m::Send #m ; Chromebook
|
||||||
|
; n::Send #n ; Chromebook
|
||||||
|
; o::Send #o ; Chromebook
|
||||||
|
; p::Send #p ; Chromebook
|
||||||
|
; q::Send #q ; Chromebook
|
||||||
|
; r::Send #r ; Chromebook
|
||||||
|
; s::Send #s ; Chromebook
|
||||||
|
; t::Send #t ; Chromebook
|
||||||
|
; u::Send #u ; Chromebook
|
||||||
|
; v::Send #v ; Chromebook
|
||||||
|
; w::Send #w ; Chromebook
|
||||||
|
; x::Send #x ; Chromebook
|
||||||
|
; y::Send #y ; Chromebook
|
||||||
|
; z::Send #z ; Chromebook
|
||||||
|
; #If ; Chromebook
|
||||||
|
|
||||||
#IfWinNotActive ahk_group terminals
|
#IfWinNotActive ahk_group terminals
|
||||||
|
^.::Send {Esc}
|
||||||
; emacs style
|
; emacs style
|
||||||
#n::Send {Down}
|
#n::Send {Down}
|
||||||
#p::Send {Up}
|
#p::Send {Up}
|
||||||
@@ -394,6 +429,8 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
$^Space::Send ^{Esc}
|
$^Space::Send ^{Esc}
|
||||||
|
|
||||||
#IfWinActive ahk_group intellij
|
#IfWinActive ahk_group intellij
|
||||||
|
; $#c::Send ^{c} ; Default - Sigints interrupt
|
||||||
|
; $!c::Send ^{c} ; CB/IBM
|
||||||
; General
|
; General
|
||||||
^0::Send !{0} ;Open corresponding tool window
|
^0::Send !{0} ;Open corresponding tool window
|
||||||
^1::Send !{1} ;Open corresponding tool window
|
^1::Send !{1} ;Open corresponding tool window
|
||||||
@@ -489,18 +526,9 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
; Dev Tools
|
; Dev Tools
|
||||||
!^i::send {Ctrl Down}{Shift Down}i{Shift Up}{Ctrl Up}
|
!^i::send {Ctrl Down}{Shift Down}i{Shift Up}{Ctrl Up}
|
||||||
!^j::send {Ctrl Down}{Shift Down}j{Shift Up}{Ctrl Up}
|
!^j::send {Ctrl Down}{Shift Down}j{Shift Up}{Ctrl Up}
|
||||||
; Reopen closed tab or Undo text field
|
|
||||||
$^z::
|
|
||||||
if(blinking()){
|
|
||||||
Send ^z
|
|
||||||
}
|
|
||||||
else{
|
|
||||||
Send ^+t
|
|
||||||
}
|
|
||||||
Return
|
|
||||||
; Open preferences
|
; Open preferences
|
||||||
#IfWinActive ahk_exe firefox.exe
|
#IfWinActive ahk_exe firefox.exe
|
||||||
^,::send {Ctrl Down}t{Ctrl Up}about:preferences{Enter}
|
^,::send, {Ctrl Down}t{Ctrl Up}about:preferences{Enter}
|
||||||
#If
|
#If
|
||||||
#IfWinActive ahk_exe chrome.exe
|
#IfWinActive ahk_exe chrome.exe
|
||||||
^,::send {Alt Down}e{Alt Up}s{Enter}
|
^,::send {Alt Down}e{Alt Up}s{Enter}
|
||||||
@@ -553,8 +581,8 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
^!Down::send ^{Down} ; scroll_lines down
|
^!Down::send ^{Down} ; scroll_lines down
|
||||||
; #+Up::send {shift up}^!{Up} ; Default - multi-cursor up
|
; #+Up::send {shift up}^!{Up} ; Default - multi-cursor up
|
||||||
; #+Down::send {shift up}^!{Down} ; Default - multi-cursor down
|
; #+Down::send {shift up}^!{Down} ; Default - multi-cursor down
|
||||||
; #+Up::send {shift up}^!{Up} ; CB/IBM - multi-cursor up
|
; !+Up::send {shift up}^!{Up} ; CB/IBM - multi-cursor up
|
||||||
; #+Down::send {shift up}^!{Down} ; CB/IBM - multi-cursor down
|
; !+Down::send {shift up}^!{Down} ; CB/IBM - multi-cursor down
|
||||||
^PgDn::Return ; cancel next_view
|
^PgDn::Return ; cancel next_view
|
||||||
^PgUp::Return ; cancel prev_view
|
^PgUp::Return ; cancel prev_view
|
||||||
^+{::send ^{PgDn} ; next_view
|
^+{::send ^{PgDn} ; next_view
|
||||||
@@ -563,7 +591,8 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
^!Left::send ^{PgUp} ; prev_view
|
^!Left::send ^{PgUp} ; prev_view
|
||||||
Insert::Return ; cancel toggle_overwrite
|
Insert::Return ; cancel toggle_overwrite
|
||||||
^!O::send {Insert} ; toggle_overwrite
|
^!O::send {Insert} ; toggle_overwrite
|
||||||
!c::Return ; cancel toggle_case_sensitive
|
; !c::Return ; Default - cancel toggle_case_sensitive
|
||||||
|
; $!c::send ^{c} ; CB/IBM - Sigint
|
||||||
^!c::send !{c} ; toggle_case_sensitive
|
^!c::send !{c} ; toggle_case_sensitive
|
||||||
; ^h::Return ; cancel replace
|
; ^h::Return ; cancel replace
|
||||||
^!f::send ^{h} ; replace
|
^!f::send ^{h} ; replace
|
||||||
@@ -582,6 +611,7 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
^+Down::Return ; cancel swap_line_down
|
^+Down::Return ; cancel swap_line_down
|
||||||
#!Down::send ^+{Down} ; swap_line_down
|
#!Down::send ^+{Down} ; swap_line_down
|
||||||
^Pause::Return ; cancel cancel_build
|
^Pause::Return ; cancel cancel_build
|
||||||
|
; #c::send ^{Pause} ; cancel_build
|
||||||
F9::Return ; cancel sort_lines case_s false
|
F9::Return ; cancel sort_lines case_s false
|
||||||
F5::send {F9} ; sort_lines case_s false
|
F5::send {F9} ; sort_lines case_s false
|
||||||
#F9::Return ; cancel sort_lines case_s true
|
#F9::Return ; cancel sort_lines case_s true
|
||||||
@@ -645,6 +675,7 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
; Sigints - interrupt
|
; Sigints - interrupt
|
||||||
; $#c::Send {Ctrl down}c{Ctrl up} ; Default
|
; $#c::Send {Ctrl down}c{Ctrl up} ; Default
|
||||||
; $!c::Send {Ctrl down}c{Ctrl up} ; CB/IBM
|
; $!c::Send {Ctrl down}c{Ctrl up} ; CB/IBM
|
||||||
|
$^.::Send {Ctrl down}c{Ctrl up}
|
||||||
|
|
||||||
; Windows Terminal
|
; Windows Terminal
|
||||||
; Ctrl+Shift+C should do nothing
|
; Ctrl+Shift+C should do nothing
|
||||||
@@ -789,21 +820,3 @@ Send {LWin up}
|
|||||||
Send {RShift up}
|
Send {RShift up}
|
||||||
Send {LShift up}
|
Send {LShift up}
|
||||||
return
|
return
|
||||||
|
|
||||||
blinking(){
|
|
||||||
ClipSaved := ClipboardAll
|
|
||||||
clipboard := ""
|
|
||||||
status := False
|
|
||||||
Send, {Left}{Left}{Right}
|
|
||||||
Send, +{Right}
|
|
||||||
Send, ^c
|
|
||||||
Send, {Left}
|
|
||||||
ClipWait, 0.2
|
|
||||||
if(clipboard != "" ){
|
|
||||||
status := True
|
|
||||||
}
|
|
||||||
Sleep, 100
|
|
||||||
clipboard := ClipSaved
|
|
||||||
ClipSaved := ""
|
|
||||||
return status
|
|
||||||
}
|
|
Reference in New Issue
Block a user