summaryrefslogtreecommitdiff
path: root/_windows/ahk
diff options
context:
space:
mode:
Diffstat (limited to '_windows/ahk')
-rw-r--r--_windows/ahk/capslock.ahk70
-rw-r--r--_windows/ahk/run.ps11
2 files changed, 0 insertions, 71 deletions
diff --git a/_windows/ahk/capslock.ahk b/_windows/ahk/capslock.ahk
deleted file mode 100644
index 0f03daf..0000000
--- a/_windows/ahk/capslock.ahk
+++ /dev/null
@@ -1,70 +0,0 @@
-#Requires AutoHotkey v2
-#SingleInstance Force
-
-CapsLock::Esc
-
-SetKeyDelay 1
-
-global CurrentDesktop := 1
-
-ShowCurrentWindows() {
- titles := []
- text := ""
-
- hwnds := WinGetList()
- for hwnd in hwnds {
- ; skip tool windows
- style := DllCall("GetWindowLongPtr", "Ptr", hwnd, "Int", -20, "Ptr")
- WS_EX_TOOLWINDOW := 0x80
- if style & WS_EX_TOOLWINDOW
- continue
-
- title := WinGetTitle("ahk_id " hwnd)
- if title = ""
- continue
-
- titles.Push(title)
- text .= title
- text .= "`n"
- }
- ToolTip text, 0, 0
- SetTimer ToolTip, -1000
-}
-
-SwitchDesktop(num) {
- global CurrentDesktop
- While CurrentDesktop > num {
- SendEvent "{Ctrl down}{LWin down}{Left}{LWin up}{Ctrl up}"
- CurrentDesktop--
- }
- While CurrentDesktop < num {
- SendEvent "{Ctrl down}{LWin down}{Right}{LWin up}{Ctrl up}"
- CurrentDesktop++
- }
- ShowCurrentWindows()
-}
-
-!1::SwitchDesktop(1)
-!2::SwitchDesktop(2)
-!3::SwitchDesktop(3)
-!4::SwitchDesktop(4)
-!5::SwitchDesktop(5)
-!6::SwitchDesktop(6)
-!7::SwitchDesktop(7)
-!8::SwitchDesktop(8)
-!9::SwitchDesktop(9)
-!0::SwitchDesktop(10)
-
-~^#Left::{
- global CurrentDesktop
- if (CurrentDesktop > 1)
- CurrentDesktop--
-}
-
-~^#Right::{
- global CurrentDesktop
- if (CurrentDesktop < 10)
- CurrentDesktop++
-}
-
-RCtrl & Backspace::Reload
diff --git a/_windows/ahk/run.ps1 b/_windows/ahk/run.ps1
index c802d23..cb48bdd 100644
--- a/_windows/ahk/run.ps1
+++ b/_windows/ahk/run.ps1
@@ -1,4 +1,3 @@
Push-Location $PSScriptRoot
-.\capslock.ahk
.\media.ahk
Pop-Location