mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-06 19:08:27 +02:00
Compare commits
41 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
c4b30587dd | ||
![]() |
81581c547b | ||
![]() |
bd9ecd123f | ||
![]() |
14ac2c8349 | ||
![]() |
a91bbec93c | ||
![]() |
df43fb363d | ||
![]() |
0dd5baca34 | ||
![]() |
896ab30e57 | ||
![]() |
f9aaae3038 | ||
![]() |
94b018aa48 | ||
![]() |
6b3ea9afab | ||
![]() |
1ee92339c0 | ||
![]() |
4e1331f9bb | ||
![]() |
f44182cefd | ||
![]() |
d15972dcae | ||
![]() |
65f48ce2f1 | ||
![]() |
589807bad9 | ||
![]() |
55a6d132c7 | ||
![]() |
eebf4d61eb | ||
![]() |
b364902db0 | ||
![]() |
035b9e2d85 | ||
![]() |
db68031eb4 | ||
![]() |
30f4c1285b | ||
![]() |
f858ae9614 | ||
![]() |
75dbe611b3 | ||
![]() |
6cdedf41e3 | ||
![]() |
df8d46e1c1 | ||
![]() |
b9f15950b2 | ||
![]() |
2f8ae2380f | ||
![]() |
77d52ec176 | ||
![]() |
13a98ce8cc | ||
![]() |
8f333dec20 | ||
![]() |
f7ff8d1728 | ||
![]() |
5b2a2c88c2 | ||
![]() |
48b5699aed | ||
![]() |
eec325024d | ||
![]() |
a5087b0f95 | ||
![]() |
36f189e434 | ||
![]() |
50b31abba9 | ||
![]() |
aa53c83c61 | ||
![]() |
5f795328c9 |
34
.github/workflows/01-ubuntu-budgie.yml
vendored
Normal file
34
.github/workflows/01-ubuntu-budgie.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
# This is a basic workflow to help you get started with Actions
|
||||||
|
|
||||||
|
name: CI
|
||||||
|
|
||||||
|
# Controls when the workflow will run
|
||||||
|
on:
|
||||||
|
# Triggers the workflow on push or pull request events but only for the master branch
|
||||||
|
push:
|
||||||
|
branches: [ staging ]
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
|
||||||
|
jobs:
|
||||||
|
# This workflow contains a single job called "build"
|
||||||
|
build:
|
||||||
|
# The type of runner that the job will run on
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
# Steps represent a sequence of tasks that will be executed as part of the job
|
||||||
|
steps:
|
||||||
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# Runs a single command using the runners shell
|
||||||
|
- name: Run a one-line script
|
||||||
|
run: echo Hello, world!
|
||||||
|
|
||||||
|
# Runs a set of commands using the runners shell
|
||||||
|
- name: Run a multi-line script
|
||||||
|
run: |
|
||||||
|
echo Add other actions to build,
|
||||||
|
echo test, and deploy your project.
|
11
README.md
11
README.md
@@ -26,7 +26,9 @@ If you like or appreciate this project then please consider donating.
|
|||||||
|**Wishlists**|[Amazon](https://smile.amazon.com/hz/wishlist/ls/3EVXR21VFKD9Z?ref_=wl_share)|[Adafruit](https://www.adafruit.com/wishlists/515932)|[eBay](https://www.ebay.com/mye/myebay/WatchList?custom_list_id=636668138019)|
|
|**Wishlists**|[Amazon](https://smile.amazon.com/hz/wishlist/ls/3EVXR21VFKD9Z?ref_=wl_share)|[Adafruit](https://www.adafruit.com/wishlists/515932)|[eBay](https://www.ebay.com/mye/myebay/WatchList?custom_list_id=636668138019)|
|
||||||
|---|---|---|---|
|
|---|---|---|---|
|
||||||
|
|
||||||
If you would like to send me a keyboard directly then please reach out to me over [twitter](https://twitter.com/gbit86) and send me a DM.
|
I have received some really great letters with donations & email. I've also posted some of them with redacted first names to kinto.sh.
|
||||||
|
|
||||||
|
Also if you would like to send me a keyboard directly then please reach out to me over [twitter](https://twitter.com/gbit86) and send me a DM.
|
||||||
|
|
||||||
## How to install (Linux)
|
## How to install (Linux)
|
||||||
|
|
||||||
@@ -84,9 +86,12 @@ sudo apt install xfce4-appmenu-plugin vala-panel-appmenu-common appmenu-gtk2-mod
|
|||||||
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**
|
**Fractional HiDPI Scaling for Gnome/Budgie w/ x11**
|
||||||
|
|
||||||
|
https://github.com/rbreaves/betterScale
|
||||||
|
|
||||||
|
Use this with autorandr to save your settings as a profile that will auto re-apply when needed.
|
||||||
|
|
||||||
https://discourse.ubuntubudgie.org/t/ubuntu-budgie-20-04-fractional-hidpi-for-x11/4777
|
|
||||||
|
|
||||||
## How to Install (Windows)
|
## How to Install (Windows)
|
||||||
|
|
||||||
|
0
linux/config.d/app-general-browsers.yaml
Normal file
0
linux/config.d/app-general-browsers.yaml
Normal file
50
linux/config.d/conditional-modmap-gui.yaml
Normal file
50
linux/config.d/conditional-modmap-gui.yaml
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
# Keyboard options
|
||||||
|
# - "IBM", "Chromebook","WinMac", "Mac"
|
||||||
|
keyboard: ""
|
||||||
|
# Possible options
|
||||||
|
# - ["altgr","caps2cmd"]
|
||||||
|
options: []
|
||||||
|
Any:
|
||||||
|
default: []
|
||||||
|
altgr: []
|
||||||
|
caps2cmd: ["Key.CAPSLOCK: Key.RIGHT_CTRL,"]
|
||||||
|
IBM:
|
||||||
|
default: [
|
||||||
|
"Key.LEFT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.LEFT_CTRL: Key.LEFT_ALT,",
|
||||||
|
"Key.CAPSLOCK: Key.LEFT_META,"
|
||||||
|
]
|
||||||
|
altgr: [
|
||||||
|
"Key.RIGHT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.RIGHT_CTRL: Key.RIGHT_ALT,"
|
||||||
|
]
|
||||||
|
Chromebook:
|
||||||
|
default: [
|
||||||
|
"Key.LEFT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.LEFT_CTRL: Key.LEFT_ALT,"
|
||||||
|
]
|
||||||
|
altgr: [
|
||||||
|
"Key.RIGHT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.RIGHT_CTRL: Key.RIGHT_ALT,"
|
||||||
|
]
|
||||||
|
caps2cmd: ["Key.LEFT_META: Key.RIGHT_CTRL,"]
|
||||||
|
WinMac:
|
||||||
|
default: [
|
||||||
|
"Key.LEFT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.LEFT_META: Key.LEFT_ALT,",
|
||||||
|
"Key.LEFT_CTRL: Key.LEFT_META,"
|
||||||
|
]
|
||||||
|
altgr: [
|
||||||
|
"Key.RIGHT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.RIGHT_META: Key.RIGHT_ALT,",
|
||||||
|
"Key.RIGHT_CTRL: Key.RIGHT_META,"
|
||||||
|
]
|
||||||
|
Mac:
|
||||||
|
default: [
|
||||||
|
"Key.LEFT_META: Key.RIGHT_CTRL,",
|
||||||
|
"Key.LEFT_CTRL: Key.LEFT_META,"
|
||||||
|
]
|
||||||
|
altgr: [
|
||||||
|
"Key.RIGHT_META: Key.RIGHT_CTRL,",
|
||||||
|
"Key.RIGHT_CTRL: Key.RIGHT_META,"
|
||||||
|
]
|
49
linux/config.d/conditional-modmap-terminal.yaml
Normal file
49
linux/config.d/conditional-modmap-terminal.yaml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
# Keyboard options
|
||||||
|
# - "IBM", "Chromebook","WinMac", "Mac"
|
||||||
|
keyboard: ""
|
||||||
|
# Possible options
|
||||||
|
# - ["altgr","caps2cmd"]
|
||||||
|
options: []
|
||||||
|
Any:
|
||||||
|
default: []
|
||||||
|
altgr: []
|
||||||
|
caps2cmd: ["Key.CAPSLOCK: Key.RIGHT_CTRL,"]
|
||||||
|
IBM:
|
||||||
|
default: [
|
||||||
|
"Key.LEFT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.CAPSLOCK: Key.LEFT_ALT,",
|
||||||
|
"Key.RIGHT_CTRL: Key.RIGHT_ALT,"
|
||||||
|
]
|
||||||
|
altgr: [
|
||||||
|
"Key.RIGHT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.RIGHT_CTRL: Key.RIGHT_ALT,"
|
||||||
|
]
|
||||||
|
Chromebook:
|
||||||
|
default: [
|
||||||
|
"Key.LEFT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.LEFT_META: Key.LEFT_ALT,",
|
||||||
|
"Key.RIGHT_CTRL: Key.RIGHT_ALT,"
|
||||||
|
]
|
||||||
|
altgr: [
|
||||||
|
"Key.RIGHT_ALT: Key.RIGHT_CTRL,"
|
||||||
|
]
|
||||||
|
caps2cmd: ["Key.LEFT_META: Key.RIGHT_CTRL,"]
|
||||||
|
WinMac:
|
||||||
|
default: [
|
||||||
|
"Key.LEFT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.LEFT_META: Key.LEFT_ALT,",
|
||||||
|
"Key.LEFT_CTRL: Key.LEFT_CTRL,"
|
||||||
|
]
|
||||||
|
altgr: [
|
||||||
|
"Key.RIGHT_ALT: Key.RIGHT_CTRL,",
|
||||||
|
"Key.RIGHT_META: Key.RIGHT_ALT,",
|
||||||
|
"Key.RIGHT_CTRL: Key.LEFT_CTRL,"
|
||||||
|
]
|
||||||
|
Mac:
|
||||||
|
default: [
|
||||||
|
"Key.LEFT_META: Key.RIGHT_CTRL,"
|
||||||
|
]
|
||||||
|
altgr: [
|
||||||
|
"Key.RIGHT_META: Key.RIGHT_CTRL,",
|
||||||
|
"Key.RIGHT_CTRL: Key.LEFT_CTRL,"
|
||||||
|
]
|
0
linux/config.d/group-terminals.yaml
Normal file
0
linux/config.d/group-terminals.yaml
Normal file
@@ -353,7 +353,7 @@ class MyWindow(Gtk.Window):
|
|||||||
self.queryConfig('cp '+os.environ['HOME']+'/.config/kinto/xkeysnail.desktop '+os.environ['HOME']+'/.config/autostart/xkeysnail.desktop')
|
self.queryConfig('cp '+os.environ['HOME']+'/.config/kinto/xkeysnail.desktop '+os.environ['HOME']+'/.config/autostart/xkeysnail.desktop')
|
||||||
if self.options["systray"]:
|
if self.options["systray"]:
|
||||||
self.queryConfig('cp '+os.environ['HOME']+'/.config/kinto/kintotray.desktop '+os.environ['HOME']+'/.config/autostart/kintotray.desktop')
|
self.queryConfig('cp '+os.environ['HOME']+'/.config/kinto/kintotray.desktop '+os.environ['HOME']+'/.config/autostart/kintotray.desktop')
|
||||||
self.queryConfig("nohup python3 ~/.config/kinto/kintotray.py >/dev/null 2>&1 &")
|
self.queryConfig("nohup /usr/bin/python3 ~/.config/kinto/kintotray.py >/dev/null 2>&1 &")
|
||||||
self.menuitem_systray.disconnect(self.menuitem_systray.signal_id)
|
self.menuitem_systray.disconnect(self.menuitem_systray.signal_id)
|
||||||
self.menuitem_systray.set_active(True)
|
self.menuitem_systray.set_active(True)
|
||||||
self.menuitem_systray.signal_id = self.menuitem_systray.connect('activate',self.checkTray,False)
|
self.menuitem_systray.signal_id = self.menuitem_systray.connect('activate',self.checkTray,False)
|
||||||
@@ -616,7 +616,7 @@ class MyWindow(Gtk.Window):
|
|||||||
if tray_bool:
|
if tray_bool:
|
||||||
Popen(['cp',os.environ['HOME']+'/.config/kinto/kintotray.desktop',os.environ['HOME']+'/.config/autostart/kintotray.desktop'])
|
Popen(['cp',os.environ['HOME']+'/.config/kinto/kintotray.desktop',os.environ['HOME']+'/.config/autostart/kintotray.desktop'])
|
||||||
if not kintotray:
|
if not kintotray:
|
||||||
Popen([os.environ['HOME']+'/.config/kinto/kintotray.py'])
|
Popen(['/usr/bin/python3',os.environ['HOME']+'/.config/kinto/kintotray.py'])
|
||||||
self.menuitem_systray.disconnect(self.menuitem_systray.signal_id)
|
self.menuitem_systray.disconnect(self.menuitem_systray.signal_id)
|
||||||
self.menuitem_systray.set_active(True)
|
self.menuitem_systray.set_active(True)
|
||||||
self.menuitem_systray.signal_id = self.menuitem_systray.connect('activate',self.checkTray,False)
|
self.menuitem_systray.signal_id = self.menuitem_systray.connect('activate',self.checkTray,False)
|
||||||
|
@@ -4,7 +4,7 @@ Name=Kinto.sh
|
|||||||
GenericName=Kinto.sh
|
GenericName=Kinto.sh
|
||||||
Categories=Utility;
|
Categories=Utility;
|
||||||
Type=Application
|
Type=Application
|
||||||
Exec={homedir}/.config/kinto/gui/kinto-gui.py
|
Exec=/usr/bin/python3 {homedir}/.config/kinto/gui/kinto-gui.py
|
||||||
Icon={homedir}/.config/kinto/kinto-color-48.svg
|
Icon={homedir}/.config/kinto/kinto-color-48.svg
|
||||||
# Icon=/usr/share/icons/Pocillo/kinto-color.svg
|
# Icon=/usr/share/icons/Pocillo/kinto-color.svg
|
||||||
Terminal=false
|
Terminal=false
|
||||||
|
104
linux/kinto.py
104
linux/kinto.py
@@ -9,6 +9,7 @@ from xkeysnail.transform import *
|
|||||||
# xbindkeys -mk
|
# xbindkeys -mk
|
||||||
terminals = [
|
terminals = [
|
||||||
"alacritty",
|
"alacritty",
|
||||||
|
"cutefish-terminal",
|
||||||
"deepin-terminal",
|
"deepin-terminal",
|
||||||
"eterm",
|
"eterm",
|
||||||
"gnome-terminal",
|
"gnome-terminal",
|
||||||
@@ -24,6 +25,7 @@ terminals = [
|
|||||||
"st",
|
"st",
|
||||||
"sakura",
|
"sakura",
|
||||||
"station",
|
"station",
|
||||||
|
"tabby",
|
||||||
"terminator",
|
"terminator",
|
||||||
"termite",
|
"termite",
|
||||||
"tilda",
|
"tilda",
|
||||||
@@ -46,6 +48,8 @@ remotes = [
|
|||||||
"org.remmina.Remmina",
|
"org.remmina.Remmina",
|
||||||
"remmina",
|
"remmina",
|
||||||
"qemu-system-.*",
|
"qemu-system-.*",
|
||||||
|
"qemu",
|
||||||
|
"Spicy",
|
||||||
"Virt-manager",
|
"Virt-manager",
|
||||||
"VirtualBox",
|
"VirtualBox",
|
||||||
"VirtualBox Machine",
|
"VirtualBox Machine",
|
||||||
@@ -83,6 +87,8 @@ chromes = [
|
|||||||
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)
|
||||||
|
|
||||||
|
# Reference group-name-custom.yaml
|
||||||
|
|
||||||
# edges = ["microsoft-edge-dev","microsoft-edge"]
|
# edges = ["microsoft-edge-dev","microsoft-edge"]
|
||||||
# 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)
|
||||||
@@ -270,7 +276,7 @@ define_keymap(re.compile("^jetbrains-(?!.*toolbox).*$", re.IGNORECASE),{
|
|||||||
define_keymap(re.compile("caja", re.IGNORECASE),{
|
define_keymap(re.compile("caja", re.IGNORECASE),{
|
||||||
# K("RC-Super-o"): K("RC-Shift-Enter"), # Open in new tab
|
# K("RC-Super-o"): K("RC-Shift-Enter"), # Open in new tab
|
||||||
K("RC-Super-o"): K("RC-Shift-W"), # Open in new window
|
K("RC-Super-o"): K("RC-Shift-W"), # Open in new window
|
||||||
},"Overrides for Caja - Finder")
|
},"Overrides for Caja - Finder Mods")
|
||||||
|
|
||||||
# Keybindings overrides for DDE (Deepin) File Manager
|
# Keybindings overrides for DDE (Deepin) File Manager
|
||||||
# (overrides some bindings from general file manager code block below)
|
# (overrides some bindings from general file manager code block below)
|
||||||
@@ -278,11 +284,17 @@ define_keymap(re.compile("dde-file-manager", re.IGNORECASE),{
|
|||||||
K("RC-i"): K("RC-i"), # File properties dialog (Get Info)
|
K("RC-i"): K("RC-i"), # File properties dialog (Get Info)
|
||||||
K("RC-comma"): None, # Disable preferences shortcut (no shortcut available)
|
K("RC-comma"): None, # Disable preferences shortcut (no shortcut available)
|
||||||
K("RC-Up"): K("RC-Up"), # Go Up dir
|
K("RC-Up"): K("RC-Up"), # Go Up dir
|
||||||
},"Overrides for DDE File Manager - Finder")
|
K("RC-Shift-Left_Brace"): K("C-Shift-Tab"), # Go to prior tab
|
||||||
|
K("RC-Shift-Right_Brace"): K("C-Tab"), # Go to next tab
|
||||||
|
K("RC-Shift-Left"): K("C-Shift-Tab"), # Go to prior tab
|
||||||
|
K("RC-Shift-Right"): K("C-Tab"), # Go to next tab
|
||||||
|
},"Overrides for DDE File Manager - Finder Mods")
|
||||||
|
|
||||||
# Keybindings overrides for Dolphin
|
# Keybindings overrides for Dolphin
|
||||||
# (overrides some bindings from general file manager code block below)
|
# (overrides some bindings from general file manager code block below)
|
||||||
define_keymap(re.compile("dolphin", re.IGNORECASE),{
|
define_keymap(re.compile("dolphin", re.IGNORECASE),{
|
||||||
|
K("RC-KEY_2"): K("C-KEY_3"), # View as List (Detailed)
|
||||||
|
K("RC-KEY_3"): K("C-KEY_2"), # View as List (Compact)
|
||||||
##########################################################################################
|
##########################################################################################
|
||||||
### "Open in new window" requires manually setting custom shortcut of Ctrl+Shift+o
|
### "Open in new window" requires manually setting custom shortcut of Ctrl+Shift+o
|
||||||
### in Dolphin's keyboard shortcuts. There is no default shortcut set for this function.
|
### in Dolphin's keyboard shortcuts. There is no default shortcut set for this function.
|
||||||
@@ -293,28 +305,34 @@ define_keymap(re.compile("dolphin", re.IGNORECASE),{
|
|||||||
K("RC-Super-o"): K("RC-Shift-o"), # Open in new window (or new tab, user's choice, see above)
|
K("RC-Super-o"): K("RC-Shift-o"), # Open in new window (or new tab, user's choice, see above)
|
||||||
K("RC-Shift-N"): K("F10"), # Create new folder
|
K("RC-Shift-N"): K("F10"), # Create new folder
|
||||||
K("RC-comma"): K("RC-Shift-comma"), # Open preferences dialog
|
K("RC-comma"): K("RC-Shift-comma"), # Open preferences dialog
|
||||||
},"Overrides for Dolphin - Finder")
|
},"Overrides for Dolphin - Finder Mods")
|
||||||
|
|
||||||
# Keybindings overrides for elementary OS Files
|
# Keybindings overrides for elementary OS Files (Pantheon)
|
||||||
# (overrides some bindings from general file manager code block below)
|
# (overrides some bindings from general file manager code block below)
|
||||||
define_keymap(re.compile("io.elementary.files", re.IGNORECASE),{
|
define_keymap(re.compile("io.elementary.files", re.IGNORECASE),{
|
||||||
# K("RC-Super-o"): K("Shift-Enter"), # Open folder in new tab
|
# K("RC-Super-o"): K("Shift-Enter"), # Open folder in new tab
|
||||||
K("RC-Comma"): None, # Disable preferences shortcut since none available
|
K("RC-comma"): None, # Disable preferences shortcut since none available
|
||||||
},"Overrides for Pantheon - Finder")
|
},"Overrides for Pantheon - Finder Mods")
|
||||||
|
|
||||||
# Keybindings overrides for Nautilus
|
# Keybindings overrides for Nautilus
|
||||||
# (overrides some bindings from general file manager code block below)
|
# (overrides some bindings from general file manager code block below)
|
||||||
define_keymap(re.compile("org.gnome.nautilus|nautilus", re.IGNORECASE),{
|
define_keymap(re.compile("org.gnome.nautilus|nautilus", re.IGNORECASE),{
|
||||||
|
# K("RC-N"): K("C-M-Space"), # macOS Finder search window shortcut Cmd+Option+Space
|
||||||
|
# For this ^^^^^^^^^^^ to work, a custom shortcut must be set up in the Settings app in GNOME
|
||||||
|
# to run command: "nautilus --new-window /home/USER" [ replace "USER" ]
|
||||||
|
K("RC-KEY_1"): K("C-KEY_2"), # View as Icons
|
||||||
|
K("RC-KEY_2"): K("C-KEY_1"), # View as List (Detailed)
|
||||||
K("RC-Super-o"): K("Shift-Enter"), # Open in new window
|
K("RC-Super-o"): K("Shift-Enter"), # Open in new window
|
||||||
# K("RC-Super-o"): K("RC-Enter"), # Open in new tab
|
# K("RC-Super-o"): K("RC-Enter"), # Open in new tab
|
||||||
K("RC-comma"): K("RC-comma"), # Overrides "Open preferences dialog" shortcut below
|
K("RC-comma"): K("RC-comma"), # Overrides "Open preferences dialog" shortcut below
|
||||||
},"Overrides for Nautilus - Finder")
|
},"Overrides for Nautilus - Finder Mods")
|
||||||
|
|
||||||
# Keybindings overrides for PCManFM and PCManFM-Qt
|
# Keybindings overrides for PCManFM and PCManFM-Qt
|
||||||
# (overrides some bindings from general file manager code block below)
|
# (overrides some bindings from general file manager code block below)
|
||||||
define_keymap(re.compile("pcmanfm|pcmanfm-qt", re.IGNORECASE),{
|
define_keymap(re.compile("pcmanfm|pcmanfm-qt", re.IGNORECASE),{
|
||||||
|
K("RC-KEY_2"): K("C-KEY_4"), # View as List (Detailed) [Not in PCManFM-Qt]
|
||||||
K("RC-Backspace"): [K("Delete"),K("Enter")], # Move to Trash (delete, bypass dialog)
|
K("RC-Backspace"): [K("Delete"),K("Enter")], # Move to Trash (delete, bypass dialog)
|
||||||
},"Overrides for PCManFM - Finder")
|
},"Overrides for PCManFM - Finder Mods")
|
||||||
|
|
||||||
# Keybindings overrides for SpaceFM
|
# Keybindings overrides for SpaceFM
|
||||||
# (overrides some bindings from general file manager code block below)
|
# (overrides some bindings from general file manager code block below)
|
||||||
@@ -323,22 +341,25 @@ define_keymap(re.compile("spacefm", re.IGNORECASE),{
|
|||||||
K("RC-Page_Down"): K("C-Tab"), # Go to next tab
|
K("RC-Page_Down"): K("C-Tab"), # Go to next tab
|
||||||
K("RC-Shift-Left_Brace"): K("C-Shift-Tab"), # Go to prior tab
|
K("RC-Shift-Left_Brace"): K("C-Shift-Tab"), # Go to prior tab
|
||||||
K("RC-Shift-Right_Brace"): K("C-Tab"), # Go to next tab
|
K("RC-Shift-Right_Brace"): K("C-Tab"), # Go to next tab
|
||||||
K("RC-Shift-N"): [K("RC-F")], # Create new folder is Ctrl+F by default
|
K("RC-Shift-Left"): K("C-Shift-Tab"), # Go to prior tab
|
||||||
|
K("RC-Shift-Right"): K("C-Tab"), # Go to next tab
|
||||||
|
K("RC-Shift-N"): K("RC-F"), # Create new folder is Ctrl+F by default
|
||||||
K("RC-Backspace"): [K("Delete"),K("Enter")], # Move to Trash (delete, bypass dialog)
|
K("RC-Backspace"): [K("Delete"),K("Enter")], # Move to Trash (delete, bypass dialog)
|
||||||
K("RC-comma"): [K("M-V"),K("p")], # Overrides "Open preferences dialog" shortcut below
|
K("RC-comma"): [K("M-V"),K("p")], # Overrides "Open preferences dialog" shortcut below
|
||||||
# This shortcut ^^^^^^^^^^^^^^^ is not fully working in SpaceFM. Opens "View" menu but not Preferences.
|
# This shortcut ^^^^^^^^^^^^^^^ is not fully working in SpaceFM. Opens "View" menu but not Preferences.
|
||||||
# SpaceFM seems to be doing some nasty binding that blocks things like Alt+Tab while the menu is open.
|
# SpaceFM seems to be doing some nasty binding that blocks things like Alt+Tab while the menu is open.
|
||||||
},"Overrides for SpaceFM - Finder")
|
},"Overrides for SpaceFM - Finder Mods")
|
||||||
|
|
||||||
# Keybindings overrides for Thunar
|
# Keybindings overrides for Thunar
|
||||||
# (overrides some bindings from general file manager code block below)
|
# (overrides some bindings from general file manager code block below)
|
||||||
define_keymap(re.compile("thunar", re.IGNORECASE),{
|
define_keymap(re.compile("thunar", re.IGNORECASE),{
|
||||||
K("RC-Super-o"): K("RC-Shift-P"), # Open in new tab
|
K("RC-Super-o"): K("RC-Shift-P"), # Open in new tab
|
||||||
K("RC-comma"): [K("M-E"),K("E")], # Overrides "Open preferences dialog" shortcut below
|
K("RC-comma"): [K("M-E"),K("E")], # Overrides "Open preferences dialog" shortcut below
|
||||||
},"Overrides for Thunar - Finder")
|
},"Overrides for Thunar - Finder Mods")
|
||||||
|
|
||||||
filemanagers = [
|
filemanagers = [
|
||||||
"caja",
|
"caja",
|
||||||
|
"cutefish-filemanager",
|
||||||
"dde-file-manager",
|
"dde-file-manager",
|
||||||
"dolphin",
|
"dolphin",
|
||||||
"io.elementary.files",
|
"io.elementary.files",
|
||||||
@@ -377,6 +398,8 @@ define_keymap(re.compile(filemanagerStr, re.IGNORECASE),{
|
|||||||
###########################################################################################################
|
###########################################################################################################
|
||||||
### Navigation ###
|
### Navigation ###
|
||||||
###########################################################################################################
|
###########################################################################################################
|
||||||
|
K("RC-Left_Brace"): K("M-Left"), # Go Back
|
||||||
|
K("RC-Right_Brace"): K("M-Right"), # Go Forward
|
||||||
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
|
||||||
K("RC-Up"): K("M-Up"), # Go Up dir
|
K("RC-Up"): K("M-Up"), # Go Up dir
|
||||||
@@ -385,24 +408,41 @@ define_keymap(re.compile(filemanagerStr, re.IGNORECASE),{
|
|||||||
K("RC-Down"): K("Enter"), # Go Down dir (open folder/file) [universal]
|
K("RC-Down"): K("Enter"), # Go Down dir (open folder/file) [universal]
|
||||||
K("RC-Shift-Left_Brace"): K("C-Page_Up"), # Go to prior tab
|
K("RC-Shift-Left_Brace"): K("C-Page_Up"), # Go to prior tab
|
||||||
K("RC-Shift-Right_Brace"): K("C-Page_Down"), # Go to next tab
|
K("RC-Shift-Right_Brace"): K("C-Page_Down"), # Go to next tab
|
||||||
|
K("RC-Shift-Left"): K("C-Page_Up"), # Go to prior tab
|
||||||
|
K("RC-Shift-Right"): K("C-Page_Down"), # Go to next tab
|
||||||
###########################################################################################################
|
###########################################################################################################
|
||||||
### Open in New Window | Move to Trash | Duplicate file/folder ###
|
### Open in New Window | Move to Trash | Duplicate file/folder ###
|
||||||
###########################################################################################################
|
###########################################################################################################
|
||||||
K("RC-Super-o"): K("RC-Shift-o"), # Open in new window (or tab, depends on FM setup) [not universal]
|
K("RC-Super-o"): K("RC-Shift-o"), # Open in new window (or tab, depends on FM setup) [not universal]
|
||||||
K("RC-Backspace"): K("Delete"), # Move to Trash (delete)
|
K("RC-Backspace"): K("Delete"), # Move to Trash (delete)
|
||||||
K("RC-D"): [K("RC-C"),K("RC-V")], # Mimic Finder's Duplicate command (Copy, then Paste)
|
# K("RC-D"): [K("RC-C"),K("RC-V")], # Duplicate file/folder (Copy, then Paste) [conflicts with "Add Bookmark"]
|
||||||
###########################################################################################################
|
###########################################################################################################
|
||||||
### To enable renaming files with the Enter key, uncomment the two keymapping lines just below this. ###
|
### To enable renaming files with the Enter key, uncomment the two keymapping lines just below this. ###
|
||||||
### Use Ctrl+Shift+Enter to escape or activate text fields such as "[F]ind" and "[L]ocation" fields. ###
|
### Use Ctrl+Shift+Enter to escape or activate text fields such as "[F]ind" and "[L]ocation" fields. ###
|
||||||
###########################################################################################################
|
###########################################################################################################
|
||||||
# K("Enter"): K("F2"), # Rename with Enter key
|
# K("Enter"): K("F2"), # Rename with Enter key
|
||||||
# K("RC-Shift-Enter"): K("Enter"), # Remap alternative "Enter" key to easily activate/exit text fields
|
# K("RC-Shift-Enter"): K("Enter"), # Remap alternative "Enter" key to easily activate/exit text fields
|
||||||
},"File Managers - Finder")
|
# K("RC-Shift-Enter"): K("F2"), # Rename with Cmd+Shift+Enter
|
||||||
|
},"General File Managers - Finder Mods")
|
||||||
|
|
||||||
############################################
|
############################################
|
||||||
### END OF FILE MANAGER GROUP OF KEYMAPS ###
|
### END OF FILE MANAGER GROUP OF KEYMAPS ###
|
||||||
############################################
|
############################################
|
||||||
|
|
||||||
|
# Open preferences in browsers
|
||||||
|
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("RC-Shift-N"): K("RC-Shift-P"), # Open private window with Ctrl+Shift+N like other browsers
|
||||||
|
})
|
||||||
|
define_keymap(re.compile(chromeStr, re.IGNORECASE),{
|
||||||
|
K("C-comma"): [K("M-e"), K("s"),K("Enter")],
|
||||||
|
}, "Browsers")
|
||||||
|
# Opera C-F12
|
||||||
|
|
||||||
# Keybindings for General Web Browsers
|
# Keybindings for General Web 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
|
||||||
@@ -431,20 +471,26 @@ define_keymap(re.compile(browserStr, re.IGNORECASE),{
|
|||||||
# K("C-Right_Brace"): K("C-Page_Down"),
|
# K("C-Right_Brace"): K("C-Page_Down"),
|
||||||
}, "General Web Browsers")
|
}, "General Web Browsers")
|
||||||
|
|
||||||
|
define_keymap(re.compile("ulauncher", re.IGNORECASE),{
|
||||||
# Open preferences in browsers
|
K("RC-Key_1"): K("M-Key_1"), # Remap Ctrl+[1-9] and Ctrl+[a-z] to Alt+[1-9] and Alt+[a-z]
|
||||||
define_keymap(re.compile("Firefox", re.IGNORECASE),{
|
K("RC-Key_2"): K("M-Key_2"),
|
||||||
K("C-comma"): [
|
K("RC-Key_3"): K("M-Key_3"),
|
||||||
K("C-T"),K("a"),K("b"),K("o"),K("u"),K("t"),
|
K("RC-Key_4"): K("M-Key_4"),
|
||||||
K("Shift-SEMICOLON"),K("p"),K("r"),K("e"),K("f"),
|
K("RC-Key_5"): K("M-Key_5"),
|
||||||
K("e"),K("r"),K("e"),K("n"),K("c"),K("e"),K("s"),K("Enter")
|
K("RC-Key_6"): K("M-Key_6"),
|
||||||
],
|
K("RC-Key_7"): K("M-Key_7"),
|
||||||
K("RC-Shift-N"): K("RC-Shift-P"), # Open private window with Ctrl+Shift+N like other browsers
|
K("RC-Key_8"): K("M-Key_8"),
|
||||||
})
|
K("RC-Key_9"): K("M-Key_9"),
|
||||||
define_keymap(re.compile(chromeStr, re.IGNORECASE),{
|
K("RC-Key_0"): K("M-Key_0"),
|
||||||
K("C-comma"): [K("M-e"), K("s"),K("Enter")],
|
# K("RC-a"): K("M-a"),
|
||||||
}, "Browsers")
|
K("RC-b"): K("M-b"),
|
||||||
# Opera C-F12
|
# K("RC-c"): K("M-c"),
|
||||||
|
K("RC-d"): K("M-d"),
|
||||||
|
K("RC-e"): K("M-e"),
|
||||||
|
K("RC-f"): K("M-f"),
|
||||||
|
K("RC-g"): K("M-g"),
|
||||||
|
K("RC-h"): K("M-h"),
|
||||||
|
}, "Ulauncher")
|
||||||
|
|
||||||
# Note: terminals extends to remotes as well
|
# Note: terminals extends to remotes as well
|
||||||
define_keymap(lambda wm_class: wm_class.casefold() not in terminals,{
|
define_keymap(lambda wm_class: wm_class.casefold() not in terminals,{
|
||||||
@@ -568,6 +614,8 @@ define_keymap(re.compile(codeStr, re.IGNORECASE),{
|
|||||||
# K("C-PAGE_UP"): pass_through_key, # cancel prev_view
|
# K("C-PAGE_UP"): pass_through_key, # cancel prev_view
|
||||||
K("C-M-Left"): K("C-PAGE_UP"), # next_view
|
K("C-M-Left"): K("C-PAGE_UP"), # next_view
|
||||||
K("C-M-Right"): K("C-PAGE_DOWN"), # prev_view
|
K("C-M-Right"): K("C-PAGE_DOWN"), # prev_view
|
||||||
|
K("RC-Shift-Left_Brace"): K("C-PAGE_UP"), # next_view
|
||||||
|
K("RC-Shift-Right_Brace"): K("C-PAGE_DOWN"), # prev_view
|
||||||
|
|
||||||
# VS Code Shortcuts
|
# VS Code Shortcuts
|
||||||
K("C-g"): pass_through_key, # cancel Go to Line...
|
K("C-g"): pass_through_key, # cancel Go to Line...
|
||||||
@@ -715,6 +763,8 @@ define_keymap(re.compile(termStr, re.IGNORECASE),{
|
|||||||
K("RC-P"): K("C-Shift-P"),
|
K("RC-P"): K("C-Shift-P"),
|
||||||
K("RC-LEFT_BRACE"): K("C-Shift-LEFT_BRACE"),
|
K("RC-LEFT_BRACE"): K("C-Shift-LEFT_BRACE"),
|
||||||
K("RC-RIGHT_BRACE"): K("C-Shift-RIGHT_BRACE"),
|
K("RC-RIGHT_BRACE"): K("C-Shift-RIGHT_BRACE"),
|
||||||
|
K("RC-Shift-Left_Brace"): K("C-Page_Up"), # Go to prior tab (Left)
|
||||||
|
K("RC-Shift-Right_Brace"): K("C-Page_Down"), # Go to next tab (Right)
|
||||||
K("RC-A"): K("C-Shift-A"),
|
K("RC-A"): K("C-Shift-A"),
|
||||||
K("RC-S"): K("C-Shift-S"),
|
K("RC-S"): K("C-Shift-S"),
|
||||||
K("RC-D"): K("C-Shift-D"),
|
K("RC-D"): K("C-Shift-D"),
|
||||||
|
@@ -116,6 +116,8 @@ class Indicator():
|
|||||||
with open(self.kconfig) as configfile:
|
with open(self.kconfig) as configfile:
|
||||||
autostart_line = configfile.read().split('\n')[1]
|
autostart_line = configfile.read().split('\n')[1]
|
||||||
|
|
||||||
|
autostart_bool = False
|
||||||
|
|
||||||
# Autostart
|
# Autostart
|
||||||
if "autostart = true" in autostart_line.casefold():
|
if "autostart = true" in autostart_line.casefold():
|
||||||
autostart_bool = True
|
autostart_bool = True
|
||||||
@@ -619,9 +621,9 @@ class Indicator():
|
|||||||
def runDebug(self,button,opendebug):
|
def runDebug(self,button,opendebug):
|
||||||
try:
|
try:
|
||||||
if opendebug:
|
if opendebug:
|
||||||
Popen([os.environ['HOME']+'/.config/kinto/gui/kinto-gui.py','-d'])
|
Popen(['/usr/bin/python3',os.environ['HOME']+'/.config/kinto/gui/kinto-gui.py','-d'])
|
||||||
else:
|
else:
|
||||||
Popen([os.environ['HOME']+'/.config/kinto/gui/kinto-gui.py'])
|
Popen(['/usr/bin/python3',os.environ['HOME']+'/.config/kinto/gui/kinto-gui.py'])
|
||||||
except:
|
except:
|
||||||
Popen(['notify-send','Kinto: Error opening Kinto!'])
|
Popen(['notify-send','Kinto: Error opening Kinto!'])
|
||||||
|
|
||||||
|
BIN
windows/WinToMac_AltWin_swap.skl
Normal file
BIN
windows/WinToMac_AltWin_swap.skl
Normal file
Binary file not shown.
@@ -203,6 +203,44 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
; End::Send {Media_Play_Pause} ; Pause/Play
|
; End::Send {Media_Play_Pause} ; Pause/Play
|
||||||
; PgDn::Send {Media_Next} ; Next
|
; PgDn::Send {Media_Next} ; Next
|
||||||
|
|
||||||
|
; Virtual Desktop Hack via TotalSpaces2 - macOS Remote Desktop
|
||||||
|
; Custom Bind Gestures in Windows
|
||||||
|
; Shift-F8 on Left Swipe
|
||||||
|
; Shift-F9 on Right Swipe
|
||||||
|
#IfWinActive ahk_exe nxplayer.bin
|
||||||
|
+F8::Send !+- ; macOS TotalSpaces2 - Space Left
|
||||||
|
+F6::Send !+= ; macOS TotalSpaces2 - Space Right
|
||||||
|
#If
|
||||||
|
; +F8::Send {LCtrl down}{LWin down}{left}{LCtrl up}{LWin up} ; Comment out on host machine
|
||||||
|
; +F6::Send {LCtrl down}{LWin down}{right}{LCtrl up}{LWin up} ; Comment out on host machine
|
||||||
|
|
||||||
|
#IfWinNotActive ahk_group remotes
|
||||||
|
; Lock Workstation
|
||||||
|
#^q::DllCall("LockWorkStation")
|
||||||
|
; Conflicts w/ Win-L so will use Ctrl-Shift-L as Ctrl-L replacement
|
||||||
|
; Helpful for Sublime text lowercasing & VSCode
|
||||||
|
^+l::Send ^{l}
|
||||||
|
; Adds Task View to Ctrl-Cmd-Down
|
||||||
|
#^Down::
|
||||||
|
Run, "C:\Windows\explorer.exe" "shell:::{3080F90E-D7AD-11D9-BD98-0000947B0257}"
|
||||||
|
return
|
||||||
|
; wordwise support
|
||||||
|
^Up::Send ^{Home}
|
||||||
|
^+Up::Send ^+{Home}
|
||||||
|
^Down::Send ^{End}
|
||||||
|
^+Down::Send ^+{End}
|
||||||
|
$^Backspace::Send +{Home}{Delete}
|
||||||
|
!Backspace::Send ^{Backspace}
|
||||||
|
!Left::Send ^{Left}
|
||||||
|
!+Left::Send ^+{Left}
|
||||||
|
!Right::Send ^{Right}
|
||||||
|
!+Right::Send ^+{Right}
|
||||||
|
$^Left::Send {Home}
|
||||||
|
$^+Left::Send +{Home}
|
||||||
|
$^Right::Send {End}
|
||||||
|
$^+Right::Send +{End}
|
||||||
|
#If
|
||||||
|
|
||||||
#IfWinNotActive ahk_group remotes
|
#IfWinNotActive ahk_group remotes
|
||||||
|
|
||||||
; New AltTab and CtrlTab fix
|
; New AltTab and CtrlTab fix
|
||||||
@@ -369,22 +407,6 @@ GroupAdd, intellij, ahk_exe idea64.exe
|
|||||||
; !^space::Send #e ; Default
|
; !^space::Send #e ; Default
|
||||||
; #^space::Send #e ; CB/IBM
|
; #^space::Send #e ; CB/IBM
|
||||||
|
|
||||||
; wordwise support
|
|
||||||
^Up::Send ^{Home}
|
|
||||||
^+Up::Send ^+{Home}
|
|
||||||
^Down::Send ^{End}
|
|
||||||
^+Down::Send ^+{End}
|
|
||||||
$^Backspace::Send +{Home}{Delete}
|
|
||||||
!Backspace::Send ^{Backspace}
|
|
||||||
!Left::Send ^{Left}
|
|
||||||
!+Left::Send ^+{Left}
|
|
||||||
!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
|
; #if GetKeyState("LWin", "P") || GetKeyState("RAlt", "P") ; Chromebook
|
||||||
; Space::Send ^{Esc} ; Chromebook
|
; Space::Send ^{Esc} ; Chromebook
|
||||||
; 0::Send #0 ; Chromebook
|
; 0::Send #0 ; Chromebook
|
||||||
|
@@ -305,6 +305,7 @@ fi
|
|||||||
|
|
||||||
if [[ $distro == "elementaryos" ]]; then
|
if [[ $distro == "elementaryos" ]]; then
|
||||||
gsettings set io.elementary.terminal.settings natural-copy-paste false
|
gsettings set io.elementary.terminal.settings natural-copy-paste false
|
||||||
|
sudo ./linux/system-config/unipkg.sh libvte-2.91-dev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! [ -x "$(command -v xhost)" ] || ! [ -x "$(command -v gcc)" ]; then
|
if ! [ -x "$(command -v xhost)" ] || ! [ -x "$(command -v gcc)" ]; then
|
||||||
@@ -554,17 +555,15 @@ if ! [[ $1 == "5" || $1 == "uninstall" || $1 == "Uninstall" ]]; then
|
|||||||
xkeypath="/lib/systemd/system/"
|
xkeypath="/lib/systemd/system/"
|
||||||
fi
|
fi
|
||||||
xhost +SI:localuser:root
|
xhost +SI:localuser:root
|
||||||
git clone --depth 10 https://github.com/rbreaves/xkeysnail.git
|
git clone -b kinto --depth 10 https://github.com/rbreaves/xkeysnail.git
|
||||||
cd xkeysnail
|
cd xkeysnail
|
||||||
git checkout kinto
|
|
||||||
giturl=$(git ls-remote --get-url)
|
giturl=$(git ls-remote --get-url)
|
||||||
if [ "$giturl" != "https://github.com/rbreaves/xkeysnail.git" ];then
|
if [ "$giturl" != "https://github.com/rbreaves/xkeysnail.git" ];then
|
||||||
echo -e "\nreplacing xkeysnail with fork...\n"
|
echo -e "\nreplacing xkeysnail with fork...\n"
|
||||||
cd ..
|
cd ..
|
||||||
rm -rf ./xkeysnail
|
rm -rf ./xkeysnail
|
||||||
git clone --depth 10 https://github.com/rbreaves/xkeysnail.git
|
git clone -b kinto --depth 10 https://github.com/rbreaves/xkeysnail.git
|
||||||
cd xkeysnail
|
cd xkeysnail
|
||||||
git checkout kinto
|
|
||||||
fi
|
fi
|
||||||
sudo pip3 install --upgrade .
|
sudo pip3 install --upgrade .
|
||||||
cd ..
|
cd ..
|
||||||
|
Reference in New Issue
Block a user