Compare commits

..

15 Commits

Author SHA1 Message Date
Ben Reaves
9562a25ebb - Refined Back/Forward/Undo Text/Tabs config for Linux 2021-02-12 23:27:08 -06:00
Ben Reaves
b7f4c6c54d - Refined Back/Forward/Undo Text/Tabs config for Linux 2021-02-12 20:53:06 -06:00
Ben Reaves
c0bc49b150 - Refined Back/Forward/Undo Text/Tabs config for Linux 2021-02-11 20:37:00 -06:00
Ben Reaves
bcea1e682a - Revised Windows Back/Forward/Undo syntax 2021-02-11 18:17:39 -06:00
Ryan Reaves
78e480c5ad - Resolved merge conflicts, added PR commit to dev, readme updates 2021-02-11 00:50:23 -06:00
Ben Reaves
37c7949fb4 - Updated browsers.sh clearmodifiers 2021-02-11 00:22:59 -06:00
Ben Reaves
ef99b6548c - WIP Back/Forward/Close Tab Browser hotkeys for Linux. #348 2021-02-11 00:15:24 -06:00
Ben Reaves
7647cebf22 - Revised Back/Forward for browsers on Windows, added Undo closed tab. #348 2021-02-10 18:54:00 -06:00
Ben Reaves
1a836d20d5 - Enable Back/Forward for browsers on Windows, keeps wordwise working 2021-02-10 01:47:28 -06:00
Ben Reaves
50d53ba77f Merge pull request #385 from fracture91/browser-tab-num-jump
Make Command+Num on linux jump to tabs in browsers
2021-02-07 14:12:01 -08:00
Ben Reaves
a285e7ebe9 Merge pull request #386 from fracture91/same-app-switching-backwards
Fix Command + Shift + Grave same app switching so it moves backwards, not forwards
2021-02-04 19:59:49 -08:00
Andrew Hurle
231060ee5b Fix Command + Shift + Grave same app switching so it moves backwards 2021-02-04 21:13:42 -05:00
Andrew Hurle
f693312dce Make Command+Num on linux jump to tabs in browsers
See "Go to Tab 1 to 8" and "Go to Last Tab":

https://support.mozilla.org/en-US/kb/keyboard-shortcuts-perform-firefox-tasks-quickly#w_windows-tabs

See "Jump to a specific tab" and "Jump to the rightmost tab":

https://support.google.com/chrome/answer/157179?co=GENIE.Platform%3DDesktop&hl=en#zippy=%2Ctab-and-window-shortcuts
2021-02-04 17:12:22 -05:00
Ben Reaves
6d2dd55a96 Merge pull request #384 from rbreaves/dev
- Fixes system tray to be executable. Closes #383
2021-02-03 11:33:58 -08:00
Ryan Reaves
46430e3ec6 - Fixes system tray to be executable. Closes #383 2021-02-01 13:03:16 -06:00
7 changed files with 153 additions and 73 deletions

11
linux/.xbindkeysrc Executable file
View File

@@ -0,0 +1,11 @@
"~/.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

75
linux/browsers.sh Executable file
View File

@@ -0,0 +1,75 @@
#!/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

View File

@@ -1,60 +0,0 @@
#!/usr/bin/env bash
typeset -l distro
distro=$(awk -F= '$1=="NAME" { gsub("[\",!,_, ]","",$2);print $2 ;}' /etc/os-release)
packages=""
function unipkg() {
if pkgmgr="$( which apt-get )" 2> /dev/null; then
echo "Debian"
$pkgmgr update
$pkgmgr --yes --force-yes install $1
elif pkgmgr="$( which dnf )" 2> /dev/null; then
echo "dnf"
$pkgmgr check-update; $pkgmgr install -y $1
elif pkgmgr="$( which pacman )" 2> /dev/null; then
echo "Arch-based"
$pkgmgr -Syy;yes | $pkgmgr -S $1
else
echo "Package manager not found, please install $1" >&2
fi
if [[ 1 -ne $# ]]; then
echo "Syntax: $0 PACKAGE"
fi
}
if ! [ -x "$(command -v git)" ]; then
packages="${packages} git"
fi
if ! [ -x "$(command -v xhost)" ] || ! [ -x "$(command -v gcc)" ]; then
if [ "$distro" == "manjarolinux" ]; then
packages="xorg-xhost gcc"
fi
fi
if ! [ -x "$(command -v pip3)" ]; then
if [ "$distro" == "manjarolinux" ]; then
echo "Will need to install python-pip..."
packages="${packages} python-pip"
else
echo "Will need to install python3-pip..."
packages="${packages} python3-pip"
fi
fi
if ! [ -x "$(command -v python3-config)" ]; then
if [ "$distro" == "ubuntu" ] || [ "$distro" == "debian" ] || [ "$distro" == 'linuxmint' ]; then
packages="${packages} python3-dev"
elif [ "$distro" == "fedora" ]; then
packages="${packages} python3-devel"
fi
fi
if [ "$packages" != "" ]; then
sudo unipkg "${packages}"
fi
git clone https://github.com/rbreaves/kinto.git /tmp/kinto
cd /tmp/kinto
./setup.py

View File

@@ -209,6 +209,18 @@ define_keymap(re.compile(browserStr, re.IGNORECASE),{
K("RC-Q"): K("RC-Q"), # Close all browsers Instances
K("M-RC-I"): K("RC-Shift-I"), # 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_2"): K("M-Key_2"),
K("RC-Key_3"): K("M-Key_3"),
K("RC-Key_4"): K("M-Key_4"),
K("RC-Key_5"): K("M-Key_5"),
K("RC-Key_6"): K("M-Key_6"),
K("RC-Key_7"): K("M-Key_7"),
K("RC-Key_8"): K("M-Key_8"),
K("RC-Key_9"): K("M-Key_9"), # Jump to last tab
})
# Open preferences in browsers
@@ -232,7 +244,7 @@ define_keymap(None,{
K("RC-Tab"): K("M-Tab"), # Default not-xfce4 - Cmd Tab - App Switching Default
K("RC-Shift-Tab"): K("M-Shift-Tab"), # Default not-xfce4 - Cmd Tab - App Switching Default
K("RC-Grave"): K("M-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching
K("RC-Shift-Grave"): K("M-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching
K("RC-Shift-Grave"): K("M-Shift-Grave"), # Default not-xfce4 - Cmd ` - Same App Switching
# K("Super-Right"):K("Super-Page_Up"), # SL - Change workspace (ubuntu/fedora)
# K("Super-Left"):K("Super-Page_Down"), # SL - Change workspace (ubuntu/fedora)
# K("Super-Right"):K("Super-C-Up"), # SL - Change workspace (popos)

0
linux/trayapps/appindicator/kintotray.py Normal file → Executable file
View File

View File

@@ -343,9 +343,29 @@ GroupAdd, intellij, ahk_exe idea64.exe
^+4::Send #+{S}
; wordwise support
#if !winactive("ahk_group browsers")
$^Left::Send {Home}
$^+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}
@@ -469,9 +489,18 @@ GroupAdd, intellij, ahk_exe idea64.exe
; Dev Tools
!^i::send {Ctrl Down}{Shift Down}i{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
#IfWinActive ahk_exe firefox.exe
^,::send, {Ctrl Down}t{Ctrl Up}about:preferences{Enter}
^,::send {Ctrl Down}t{Ctrl Up}about:preferences{Enter}
#If
#IfWinActive ahk_exe chrome.exe
^,::send {Alt Down}e{Alt Up}s{Enter}
@@ -760,3 +789,21 @@ Send {LWin up}
Send {RShift up}
Send {LShift up}
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
}

View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
#!/bin/bash
# set about:config?filter=ui.key.menuAccessKeyFocuses
# to false for wordwise to work in Firefox
@@ -327,13 +327,8 @@ expsh=" "
# sudo ./linux/system-config/unipkg.sh inotify-tools
# fi
if ! [ -x "$(command -v pip3)" ]; then
if [ "$distro" == "manjarolinux" ]; then
echo "Will need to install python-pip..."
sudo ./linux/system-config/unipkg.sh python-pip
else
echo "Will need to install python3-pip..."
sudo ./linux/system-config/unipkg.sh python3-pip
fi
fi
if ! [ -x "$(command -v python3-config)" ]; then
if [ "$distro" == "ubuntu" ] || [ "$distro" == "debian" ] || [ "$distro" == 'linuxmint' ]; then