 #z::AddTransparency(-12)
 +#z::AddTransparency(12)
 
-;directional focus
-DirectionalFocus(direction)
-{
-    DetectHiddenWindows, Off
-    ActiveHwnd := WinExist("A")
-    WinGetPos bx, by, _, _, ahk_id %ActiveHwnd%
-    WinGet windows, List
-    Loop %windows%
-    {
-        id := windows%A_Index%
-        WinGetPos wx, wy, _, _, ahk_id %id%
-        if (direction == "left")
-            condition := wx < bx
-        else if (direction == "right")
-            condition := wx > bx
-        else if (direction == "up")
-            condition := wy < by
-        else if (direction == "down")
-            condition := wy > by
-        else
-        {
-            MsgBox % "Bad direction"
-            return
-        }
-        if (condition)
-        {
-            WinGetTitle, wtitle, ahk_id %id%
-            if (wtitle != "")
-            {
-                WinActivate, ahk_id %id%
-                break
-            }
-        }
-    }
-    DetectHiddenWindows, On
-    return
-}
-#h::DirectionalFocus("left")
-#j::DirectionalFocus("down")
-#k::DirectionalFocus("up")
-#l::DirectionalFocus("right")
-+#h::SendInput, {LWin down}{LShift down}{Left}{LShift up}{LWin up}
-+#l::SendInput, {LWin down}{LShift down}{Right}{LShift up}{LWin up}
-
 ;music
 #x::Send {Volume_Up}
 +#x::Volume_Down

IfNotExist %BrowserPath%
    BrowserPath = "C:\Users\rr-\AppData\Local\Google\Chrome\Application\chrome.exe"

;detect im
global IMClass
global IMPath
IMClass := "Buddy List"
IMPath := "C:\Program Files (x86)\pidgin\pidgin.exe"
If !FileExist(IMPath)
{
    ;wtw
    IMClass := "ahk_class {B993D471-D465-43f2-BBA5-DEEA18A1789E}"
    IMPath := "C:\Program Files\WTW\WTW.exe"
    If !FileExist(IMPath)
    {
        IMPath := "C:\Program Files\K2T\WTW\WTW.exe"
    }
}

;disable windows+l
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Microsoft\Windows\CurrentVersion\Policies\System, DisableLockWorkstation, 1

;detect screen resolution
global MonitorWorkAreaLeft
global MonitorWorkAreaRight
global MonitorWorkAreaTop
global MonitorWorkAreaBottom
SysGet, MonitorPrimary, MonitorPrimary
SysGet, MonitorWorkArea, MonitorWorkArea, %MonitorPrimary%
;...and set terminal position basing on this
TermX := MonitorWorkAreaRight - 920
TermY := 45
RemoteTermX := 45
RemoteTermY := 45

;activate/run a program
FRun(window, path, folder)

    ;cygwin - activate/run
    #Enter::
    {
        Run, %CygPath%\bin\mintty.exe --title "Terminal" --class "mintty_thetty" --exec /bin/zsh -i -l, %CygPath%
        return
    }
    +^![::
    {
        Run, %CygPath%\bin\mintty.exe --title "Terminal" --class "mintty_thetty" --exec /bin/zsh -i -l, %CygPath%
        return
    }
    ^![::
    {
        if (!WinExist("ahk_class mintty_thetty"))
        {
            Run, %CygPath%\bin\mintty.exe --title "Terminal" --class "mintty_thetty" --exec /bin/zsh -i -l, %CygPath%
            WinWait ahk_class mintty_thetty
        }
        else
