Skip to content

Instantly share code, notes, and snippets.

@Osse
Created August 2, 2018 05:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Osse/ddadf5b41af3c64d86fdb4f4f0325e69 to your computer and use it in GitHub Desktop.
Save Osse/ddadf5b41af3c64d86fdb4f4f0325e69 to your computer and use it in GitHub Desktop.
!q::
IfWinExist Arch Linux x64 [Running] - Oracle VM VirtualBox
WinActivate
MouseClick, Left, 200, 200, 2, 10
return
;^!x::ControlSend, Qt5QWindowIcon, {F5}
<^>!x::Send {F5}
; Vim stuff
<^>!q::Send {~}{Space}
<^>!w::Send {Up}
<^>!a::Send {Left}
<^>!s::Send {Down}
<^>!d::Send {Right}
<^>!r::{
<^>!t::}
<^>!f::[
<^>!g::]
<^>!Space::Send {Space}
; Get rid of Narrator
#Enter::Return
TermyActive()
{
return WinActive("ahk_class Console_2_Main")
OR WinActive("ahk_class Vim")
OR WinActive("ahk_class KiTTY")
OR WinActive("ahk_class PuTTY")
OR WinActive("ahk_class mintty")
OR WinActive("ahk_class Qt5QWindowIcon")
}
;Stuff() {
; if (TermyActive()) {
; MsgBox Term active
; }
; else {
; MsgBox Term not active
; }
;}
#IfWinNotActive ahk_class MultitaskingViewFrame
!Space::Send {Media_Play_Pause}
!Up::Send {Volume_Up}
!Down::Send {Volume_Down}
#IfWinNotActive
#If NOT(WinActive("ahk_class MultitaskingViewFrame") OR TermyActive())
!Left::Send {Media_Prev}
!Right::Send {Media_Next}
#If
#If NOT(TermyActive())
^w::Send ^{Backspace}
^u::Send {Shift Down}{Home}{Shift Up}{Delete}
#If
; Mad leet caps lock stuff for the win but not VirtualBox
; #IfWinNotActive ahk_exe VirtualBox.exe
CapsLock::Ctrl
LControl::Send {Escape}
; #If
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment