Compare commits

...

13 Commits

Author SHA1 Message Date
Ben Reaves
346c79ca42 Closes #660, fixes incompatibility w/ Fedora 35 & 36 2022-05-13 23:33:09 -04:00
Ben Reaves
f65e31791f Merge pull request #649 from RedBearAK/patch-44
[Win] Enable browser page navigation with Cmd+Braces/Brackets
2022-05-05 08:21:12 -05:00
Ben Reaves
1b30572953 Merge pull request #662 from RedBearAK/patch-47
Enable Cmd+Braces page nav in Chrome(s)
2022-05-04 21:56:02 -05:00
RedBearAK
11b2f30169 Enable Cmd+Braces page nav in Chrome(s)
This should enable page nav (back/forward in page history) with Cmd+Braces in Chrome-based web browsers. 

Also fixes the inability to quit Chrome-based browsers with Cmd+Q.
2022-05-04 18:10:45 -08:00
Ben Reaves
648819ffe7 Merge branch 'hotfix' 2022-04-24 15:47:01 -05:00
Ben Reaves
be898ab3c5 Fix for Ayatana systray indicators w/ appindicator fallback 2022-04-24 15:46:47 -05:00
RedBearAK
bed5f37ce3 [Win] Enable browser page navigation with Cmd+Braces/Brackets
This just enables the Cmd+Braces (brackets?) page navigation for Windows web browsers. And adds some comments on the tab navigation lines. 

Only the page navigation lines are actually new.
2022-04-16 16:22:55 -08:00
Ben Reaves
be0a6bb197 Merge pull request #647 from kirschem/feature/#622-macos-umlaut-behavior-on-windows
#622: Mirror umlaut behavior from macos with ahk
2022-04-15 22:08:38 -05:00
Marcel Kirsche
e4a649fc8c #622: Mirror umlaut behavior from macos with ahk 2022-04-15 17:37:48 +02:00
Ben Reaves
ddc7442e55 Update README.md 2022-04-04 21:00:25 -05:00
Ben Reaves
274833af95 Added additional Firefox wm_class names. Closes #642 2022-04-02 01:36:16 -05:00
Ben Reaves
bd9ecd123f Create 01-ubuntu-budgie.yml 2022-04-01 23:58:25 -05:00
Ben Reaves
14ac2c8349 Update README.md 2022-03-20 02:11:51 -05:00
6 changed files with 91 additions and 17 deletions

34
.github/workflows/01-ubuntu-budgie.yml vendored Normal file
View 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.

View File

@@ -26,7 +26,7 @@ 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)|
|---|---|---|---| |---|---|---|---|
I have received some really great letters with donations & email, so I plan to make some of them public while redacting last names or anything I feel should remain private, and will be posting them on the frontpage of kinto.sh as I really do appreciate all of the support! 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. 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.
@@ -322,7 +322,7 @@ define_keymap(re.compile("Sublime_text"),{
In the above example I am also showing that you can define a single shortcut to enact multiple shortcut keys if needed by defining an array of shortcuts to trigger. In the above example I am also showing that you can define a single shortcut to enact multiple shortcut keys if needed by defining an array of shortcuts to trigger.
You can also make changes to the file in your /tmp/kinto/xkeysnail/kinto.py location and see them take affect in real time, but for your changes to be permanent you will need to make your changes in the ~/.config/kinto/kinto.py location & restart the xkeysnail service. To make changes you can edit ~/.config/kinto/kinto.py under linux & restart the xkeysnail service via the system tray, app or CLI.
systemd systemd
``` ```

View File

@@ -69,6 +69,8 @@ browsers = [
"Epiphany", "Epiphany",
"Firefox", "Firefox",
"Firefox Developer Edition", "Firefox Developer Edition",
"Navigator",
"firefoxdeveloperedition",
"Waterfox", "Waterfox",
"Google-chrome", "Google-chrome",
"microsoft-edge", "microsoft-edge",
@@ -436,9 +438,15 @@ define_keymap(re.compile("Firefox", re.IGNORECASE),{
], ],
K("RC-Shift-N"): K("RC-Shift-P"), # Open private window with Ctrl+Shift+N like other browsers 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),{ 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")], # Open preferences
}, "Browsers") K("RC-q"): K("M-F4"), # Quit Chrome(s) browsers with Cmd+Q
# K("RC-Left"): K("M-Left"), # Page nav: Back to prior page in history (conflict with wordwise)
# K("RC-Right"): K("M-Right"), # Page nav: Forward to next page in history (conflict with wordwise)
K("RC-Left_Brace"): K("M-Left"), # Page nav: Back to prior page in history
K("RC-Right_Brace"): K("M-Right"), # Page nav: Forward to next page in history
}, "Chrome Browsers")
# Opera C-F12 # Opera C-F12
# Keybindings for General Web Browsers # Keybindings for General Web Browsers

View File

@@ -3,15 +3,19 @@
import gi import gi
gi.require_version('Gtk', '3.0') gi.require_version('Gtk', '3.0')
gi.require_version('AppIndicator3', '0.1')
gi.require_version('Notify', '0.7') gi.require_version('Notify', '0.7')
import signal,time,os,fcntl,datetime,re import signal,time,os,fcntl,datetime,re
from subprocess import Popen, PIPE, CalledProcessError from subprocess import Popen, PIPE, CalledProcessError
from shutil import which from shutil import which
from gi.repository import Gtk,GLib,GdkPixbuf from gi.repository import Gtk,GLib,GdkPixbuf
from gi.repository import AppIndicator3 as appindicator
from gi.repository import Notify as notify from gi.repository import Notify as notify
try:
gi.require_version('AyatanaAppIndicator3', '0.1')
from gi.repository import AyatanaAppIndicator3 as appindicator
except ValueError:
gi.require_version('AppIndicator3', '0.1')
from gi.repository import AppIndicator3 as appindicator
import signal import signal

View File

@@ -552,13 +552,16 @@ GroupAdd, intellij, ahk_exe idea64.exe
; Close all browsers ; Close all browsers
#IfWinActive ahk_group browsers #IfWinActive ahk_group browsers
;Tab Navigation ; Page Navigation
^+[::send ^{PgUp} ^[::send !{Left} ; Go to prior page
^+]::send ^{PgDn} ^]::send !{Right} ; Go to next page
^!Left::send ^{PgUp} ;Tab Navigation
^!Right::send ^{PgDn} ^+[::send ^{PgUp} ; Go to prior tab (left)
#Left::send ^{PgUp} ^+]::send ^{PgDn} ; Go to next tab (right)
#Right::send ^{PgDn} ^!Left::send ^{PgUp} ; Go to prior tab (left)
^!Right::send ^{PgDn} ; Go to next tab (right)
#Left::send ^{PgUp} ; Go to prior tab (left)
#Right::send ^{PgDn} ; Go to next tab (right)
^q::send {Alt Down}f{Alt Up}x ; exit all windows ^q::send {Alt Down}f{Alt Up}x ; exit all windows
; 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}
@@ -858,3 +861,28 @@ Send {LWin up}
Send {RShift up} Send {RShift up}
Send {LShift up} Send {LShift up}
return return
#IfWinNotActive ahk_group remotes
$!u::Goto, ActivateUmlautModifier
$!s::Send, ß
ActivateUmlautModifier:
StringCaseSense, On
; watch next input string
Input, UserInput, L1 B
if UserInput = o
Send, ö
else if UserInput = O
Send, Ö
else if UserInput = a
Send, ä
else if UserInput = A
Send, Ä
else if UserInput = u
Send, ü
else if UserInput = U
Send, Ü
else
Send, %UserInput%
return
#If

View File

@@ -329,7 +329,7 @@ if [[ $distro == 'kdeneon' ]]; then
kquitapp5 kglobalaccel && sleep 2s && kglobalaccel5 & kquitapp5 kglobalaccel && sleep 2s && kglobalaccel5 &
fi fi
if [[ $distro == 'fedora' ]]; then if [[ $distro == 'fedora' ]] || [[ $distro == 'fedoralinux' ]]; then
if [[ $(gsettings get org.gnome.desktop.wm.keybindings show-desktop | grep "\[\]" | wc -l) == 1 ]];then if [[ $(gsettings get org.gnome.desktop.wm.keybindings show-desktop | grep "\[\]" | wc -l) == 1 ]];then
gsettings set org.gnome.desktop.wm.keybindings show-desktop "['<Super>d']" gsettings set org.gnome.desktop.wm.keybindings show-desktop "['<Super>d']"
else else
@@ -500,7 +500,7 @@ if [[ $distro == "popos" ]]; then
perl -pi -e "\s{4}(# )(K.*)(# SL - .*popos.*)/ \$2\$3/g" ./linux/kinto.py.new >/dev/null 2>&1 perl -pi -e "\s{4}(# )(K.*)(# SL - .*popos.*)/ \$2\$3/g" ./linux/kinto.py.new >/dev/null 2>&1
fi fi
if [[ $distro == "fedora" ]]; then if [[ $distro == 'fedora' ]] || [[ $distro == 'fedoralinux' ]]; then
perl -pi -e "\s{4}(# )(K.*)(# SL - .*fedora.*)/ \$2\$3/g" ./linux/kinto.py.new >/dev/null 2>&1 perl -pi -e "\s{4}(# )(K.*)(# SL - .*fedora.*)/ \$2\$3/g" ./linux/kinto.py.new >/dev/null 2>&1
sed -i "s#{sudo}##g" ./linux/xkeysnail.service.new sed -i "s#{sudo}##g" ./linux/xkeysnail.service.new
selinuxuser=system_u selinuxuser=system_u
@@ -575,7 +575,7 @@ if ! [[ $1 == "5" || $1 == "uninstall" || $1 == "Uninstall" ]]; then
exit 0 exit 0
fi fi
sed -i "s#{xkeysnail}#`which xkeysnail`#g" ./linux/limitedadmins.new sed -i "s#{xkeysnail}#`which xkeysnail`#g" ./linux/limitedadmins.new
if [[ $distro == "fedora" ]]; then if [[ $distro == 'fedora' ]] || [[ $distro == 'fedoralinux' ]]; then
echo "Changing SELinux context" echo "Changing SELinux context"
sudo chcon -v --user=$selinuxuser --type=$selinuxtype "$xkeypath"xkeysnail.service sudo chcon -v --user=$selinuxuser --type=$selinuxtype "$xkeypath"xkeysnail.service
fi fi
@@ -587,7 +587,7 @@ if ! [[ $1 == "5" || $1 == "uninstall" || $1 == "Uninstall" ]]; then
sed -i "s#{xkeysnail}#`which xkeysnail`#g" ./linux/xkeysnail.service.new sed -i "s#{xkeysnail}#`which xkeysnail`#g" ./linux/xkeysnail.service.new
sudo mv ./linux/xkeysnail.service.new "$xkeypath"xkeysnail.service && echo "Service file added to "$xkeypath"xkeysnail.service" sudo mv ./linux/xkeysnail.service.new "$xkeypath"xkeysnail.service && echo "Service file added to "$xkeypath"xkeysnail.service"
if [[ $distro == "fedora" ]]; then if [[ $distro == 'fedora' ]] || [[ $distro == 'fedoralinux' ]]; then
sudo cp "$xkeypath"xkeysnail.service /etc/systemd/system/xkeysnail.service && echo "Copied service file to system..." || echo "Failed to create copy..." sudo cp "$xkeypath"xkeysnail.service /etc/systemd/system/xkeysnail.service && echo "Copied service file to system..." || echo "Failed to create copy..."
sudo cp "$xkeypath"xkeysnail.service /etc/systemd/system/graphical.target.wants/xkeysnail.service && echo "Copied service file to system for graphical target..." || echo "Failed to create copy for graphical target..." sudo cp "$xkeypath"xkeysnail.service /etc/systemd/system/graphical.target.wants/xkeysnail.service && echo "Copied service file to system for graphical target..." || echo "Failed to create copy for graphical target..."
sudo chown -R root:root /etc/systemd/system/xkeysnail.service && echo "Ownership set for root..." || echo "Failed to set ownership..." sudo chown -R root:root /etc/systemd/system/xkeysnail.service && echo "Ownership set for root..." || echo "Failed to set ownership..."