Created
February 12, 2018 16:38
-
-
Save roguesherlock/d533bf0951bccd12ca1d963b00e940fc to your computer and use it in GitHub Desktop.
Workspace Controls for Windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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