Skip to content

Instantly share code, notes, and snippets.

@roguesherlock
Created February 12, 2018 16:38
Show Gist options
  • Select an option

  • Save roguesherlock/d533bf0951bccd12ca1d963b00e940fc to your computer and use it in GitHub Desktop.

Select an option

Save roguesherlock/d533bf0951bccd12ca1d963b00e940fc to your computer and use it in GitHub Desktop.
Workspace Controls for Windows
#NoTrayIcon
; Workspace Shortcuts
;-----------------------------------------------------------------------------------------------
+Right::
{
MouseGetPos,,,win
WinGetClass, class, ahk_id %win%
If class in Progman,WorkerW
Send {Click}^#{Right}
else
Send ^#{Right} ; Next Workspace
return
}
+Left::
{
MouseGetPos,,,win
WinGetClass, class, ahk_id %win%
If class in Progman,WorkerW
send {Click}^#{Left}
else
Send ^#{Left} ; Previous Workspace
return
}
+Up::
{
MouseGetPos,,,win
WinGetClass, class, ahk_id %win%
If class in Progman,WorkerW
Send {Click}#{Tab}
else
Send #{Tab} ; Workspace Switcher
return
}
F2::
{
MouseGetPos,,,win
WinGetClass, class, ahk_id %win%
If class in Progman,WorkerW
Send {Click}#{Tab}
else
Send #{Tab} ; Workspace Switcher
return
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment