mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-06 19:08:27 +02:00
Merge pull request #197 from rbreaves/dev
- xkb & windows 10 shortcut fixes
This commit is contained in:
5
setup.py
5
setup.py
@@ -68,6 +68,8 @@ if len(check_x11) == 0:
|
|||||||
distro = cmdline("awk -F= '$1==\"NAME\" { print $2 ;}' /etc/os-release").replace('"','').strip().split(" ")[0]
|
distro = cmdline("awk -F= '$1==\"NAME\" { print $2 ;}' /etc/os-release").replace('"','').strip().split(" ")[0]
|
||||||
dename = cmdline("./system-config/dename.sh").replace('"','').strip().split(" ")[0].lower()
|
dename = cmdline("./system-config/dename.sh").replace('"','').strip().split(" ")[0].lower()
|
||||||
|
|
||||||
|
run_pkg = ""
|
||||||
|
|
||||||
def requirements(pkgm):
|
def requirements(pkgm):
|
||||||
print(bcolors.CYELLOW2 + "You need to install some packages, " +run_pkg+ ", for Kinto to fully remap browsers during input focus.\n" + bcolors.ENDC)
|
print(bcolors.CYELLOW2 + "You need to install some packages, " +run_pkg+ ", for Kinto to fully remap browsers during input focus.\n" + bcolors.ENDC)
|
||||||
print("sudo " + pkgm + " " + run_pkg + "\n")
|
print("sudo " + pkgm + " " + run_pkg + "\n")
|
||||||
@@ -321,7 +323,7 @@ def kintoImpOne():
|
|||||||
|
|
||||||
|
|
||||||
runpkg = 0
|
runpkg = 0
|
||||||
run_pkg = ""
|
global run_pkg
|
||||||
|
|
||||||
if len(check_xbind) > 0 and len(check_xdotool) > 0 and len(check_ibus) > 0:
|
if len(check_xbind) > 0 and len(check_xdotool) > 0 and len(check_ibus) > 0:
|
||||||
print("Xbindkeys, xdotool and IBus requirement is installed.")
|
print("Xbindkeys, xdotool and IBus requirement is installed.")
|
||||||
@@ -337,6 +339,7 @@ def kintoImpOne():
|
|||||||
runpkg = 1
|
runpkg = 1
|
||||||
|
|
||||||
if runpkg != 0:
|
if runpkg != 0:
|
||||||
|
print(runpkg)
|
||||||
requirements(pkgm)
|
requirements(pkgm)
|
||||||
|
|
||||||
if not os.path.exists(homedir + '/.config/ibus/bus') and cmdline("ls ~/.config/ibus/bus -1rt") == "":
|
if not os.path.exists(homedir + '/.config/ibus/bus') and cmdline("ls ~/.config/ibus/bus -1rt") == "":
|
||||||
|
@@ -106,25 +106,41 @@ return
|
|||||||
#^g::send !{F3}
|
#^g::send !{F3}
|
||||||
#If
|
#If
|
||||||
|
|
||||||
; Not sure why this fix is needed
|
|
||||||
#IfWinActive ahk_exe Firefox.exe
|
|
||||||
^v::send ^v
|
|
||||||
#If
|
|
||||||
|
|
||||||
#IfWinActive ahk_group terminals
|
#IfWinActive ahk_group terminals
|
||||||
; Copy
|
; Copy
|
||||||
^c::Send {LCtrl down}{LShift down}c{LCtrl Up}{LShift Up}
|
^c::Send {LCtrl down}{LShift down}c{LCtrl Up}{LShift Up}
|
||||||
#c::Send {LCtrl down}c{LCtrl Up}
|
#c::Send {LCtrl down}c{LCtrl Up}
|
||||||
#IfWinNotActive ahk_group ConEmu
|
; Paste
|
||||||
; Paste
|
$^v::
|
||||||
^v::Send {LCtrl down}{LShift down}v{LCtrl Up}{LShift Up}
|
If not WinActive("ahk_group ConEmu") && not WinActive("ahk_exe cmd.exe"){
|
||||||
#If
|
Send {LCtrl down}{LShift down}v{LCtrl Up}{LShift Up}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Send ^v
|
||||||
|
}
|
||||||
|
return
|
||||||
#If
|
#If
|
||||||
|
|
||||||
#IfWinActive ahk_group posix
|
#IfWinActive ahk_group posix
|
||||||
; Open/Close Tab for those that support it
|
; Open/Close Tab for those that support it
|
||||||
^t::Send {LCtrl down}{LShift down}t{LCtrl Up}{LShift Up}
|
$^t::
|
||||||
^w::Send {LCtrl down}{LShift down}w{LCtrl Up}{LShift Up}
|
If not WinActive("ahk_group ConEmu"){
|
||||||
|
Send {LCtrl down}{LShift down}t{LCtrl Up}{LShift Up}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Send ^t
|
||||||
|
}
|
||||||
|
return
|
||||||
|
|
||||||
|
$^w::
|
||||||
|
If not WinActive("ahk_group ConEmu"){
|
||||||
|
Send {LCtrl down}{LShift down}w{LCtrl Up}{LShift Up}
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Send ^w
|
||||||
|
}
|
||||||
|
return
|
||||||
|
|
||||||
; End of Line
|
; End of Line
|
||||||
#e::Send {LCtrl down}e{LCtrl Up}
|
#e::Send {LCtrl down}e{LCtrl Up}
|
||||||
^e::return
|
^e::return
|
||||||
@@ -149,11 +165,11 @@ return
|
|||||||
#z::Send {LCtrl down}z{LCtrl Up}
|
#z::Send {LCtrl down}z{LCtrl Up}
|
||||||
#If
|
#If
|
||||||
|
|
||||||
#IfWinActive ahk_group ConEmu
|
; #IfWinActive ahk_group ConEmu
|
||||||
; Paste
|
; ; Paste
|
||||||
$^v::Send {Shift down}{Insert}{Shift Up}
|
; $^v::Send {Shift down}{Insert}{Shift Up}
|
||||||
#v::Send {LCtrl down}v{LCtrl Up}
|
; #v::Send {LCtrl down}v{LCtrl Up}
|
||||||
#If
|
; #If
|
||||||
|
|
||||||
#IfWinActive ahk_exe mintty.exe
|
#IfWinActive ahk_exe mintty.exe
|
||||||
; Copy
|
; Copy
|
||||||
|
Reference in New Issue
Block a user