DesktopEnvironment.ahk (1111B)
1 ; Launch Double Commander 2 #+e::Run, "C:\Program Files\Double Commander\doublecmd.exe" 3 4 ; Launch Qutebrowser 5 #+w::Run, "C:\Program Files\qutebrowser\qutebrowser.exe" 6 7 ; Like i3wm 8 #+q::Send !{F4} 9 #j::Send ^#{Left} 10 #ñ::Send ^#{Right} 11 12 ; CapsLock shows an alert when pressed 13 *CapsLock:: 14 If !GetKeyState("capslock","T") { 15 SetCapsLockState, On 16 Progress, B2 W350 H50 ZH0 FS30 WS900 x0 y0 CWFFC7CE CT9C0006, CAPS LOCK ON 17 } Else { 18 SetCapsLockState, Off 19 Progress, off 20 } 21 Return 22 23 +Ins:: 24 clipboard = %clipboard% 25 Return 26 27 #If WinActive("ahk_class MultitaskingViewFrame") 28 || MouseIsOver("ahk_class Shell_.*", "MSTaskListWClass1") 29 ; Cycle through virtual desktops 30 WheelUp::Send ^#{Left} 31 WheelDown::Send ^#{Right} 32 33 #If WinActive("ahk_class MultitaskingViewFrame") 34 XButton1::Send {Right} 35 XButton2::Send {Left} 36 MButton::Send {Enter} 37 38 #If MouseIsOver("ahk_class Shell_.*", "MSTaskListWClass1") 39 XButton1::Send !+{Esc} 40 XButton2::Send !{Esc} 41 MButton::Send #{Tab} 42 43 #If MouseIsOver("ahk_class Shell_.*", "ToolbarWindow323") 44 ; Change volume by scrolling 45 WheelUp::Send {Volume_Up} 46 WheelDown::Send {Volume_Down} 47 #If