summaryrefslogtreecommitdiff
path: root/AutoHotkey
diff options
context:
space:
mode:
authoradmin <contact@optics-design.com>2025-05-02 18:26:57 +0200
committeradmin <contact@optics-design.com>2025-05-02 18:26:57 +0200
commit14b35049087cc4b7b8e9774606da9e30ef3c95de (patch)
treefdd5bf6d5ce5b0971b65eab8cad6615bf6ac0c3a /AutoHotkey
parentcc89a3d0c2211510fc581425c47d9dc97df56bdf (diff)
Changed shortcut, pwsh/gpg/ settings, added wsl
Diffstat (limited to 'AutoHotkey')
-rw-r--r--AutoHotkey/hotkeys.ahk68
1 files changed, 13 insertions, 55 deletions
diff --git a/AutoHotkey/hotkeys.ahk b/AutoHotkey/hotkeys.ahk
index 1415c3f..5454338 100644
--- a/AutoHotkey/hotkeys.ahk
+++ b/AutoHotkey/hotkeys.ahk
@@ -1,11 +1,15 @@
+#SingleInstance Force
UserPath := EnvGet("USERPROFILE")
syncPath := EnvGet("SYNC")
DetectHiddenWindows true
+#c::Send "!{F4}" ; Remap Win+C to Alt+F4 (close window)
+#;::Send "^{Space}" ; Remap Win+; to Ctrl+Space
+#u::Send "^u" ; Remap Win+; to Ctrl+Space
#SuspendExempt
^!o::Suspend ; Ctrl+Alt+o
#SuspendExempt False
;Windows Terminal
-^+,::
+#,::
{
; Check if Windows Terminal is running
if WinExist("ahk_exe WindowsTerminal.exe" )
@@ -27,55 +31,9 @@ DetectHiddenWindows true
Run(UserPath . "\scoop\apps\windows-terminal\current\WindowsTerminal.exe")
}
}
-;WSL
-^+.::
-{
- ; Check if WSL is running
- if WinExist("ahk_exe wsl.exe" )
- {
- ; If WSL is already in the foreground, minimize it
- if WinActive("ahk_exe wsl.exe" )
- {
- WinMinimize("ahk_exe wsl.exe" )
- }
- else
- {
- ; If WSL is running but not in the foreground, bring it to the foreground
- WinActivate("ahk_exe wsl.exe" )
- }
- }
- else
- {
- ; If WSL is not running, launch it
- Run("C:\Program Files\WSL\wsl.exe --distribution-id {ae70865d-7235-4943-9970-24cee46c9be2} --cd %USERPROFILE%")
- }
-}
-;Neovide
-^+/::
-{
- ; Check if Neovide is running
- if WinExist("ahk_class Window Class ahk_exe neovide.exe")
- {
- ; If Neovide is already in the foreground, minimize it
- if WinActive("ahk_class Window Class ahk_exe neovide.exe")
- {
- WinMinimize("ahk_class Window Class ahk_exe neovide.exe")
- }
- else
- {
- ; If Neovide is running but not in the foreground, bring it to the foreground
- WinActivate("ahk_class Window Class ahk_exe neovide.exe" )
- }
- }
- else
- {
- ; If Neovide is not running, launch it
- Run(UserPath . "\scoop\apps\Neovide\current\neovide.exe")
- }
-}
;Emacs
-!+,::
+#.::
{
; Check if Emacs is running
@@ -99,7 +57,7 @@ DetectHiddenWindows true
}
}
;Obsidian
-!+.::
+#n::
{
; Check if Obsidian is running
@@ -123,7 +81,7 @@ DetectHiddenWindows true
}
}
;Zotero
-!+/::
+#o::
{
; Check if Zotero is running
@@ -147,7 +105,7 @@ DetectHiddenWindows true
}
}
;Telegram
-^!,::
+#/::
{
; Check if Telegram is running
@@ -167,7 +125,7 @@ DetectHiddenWindows true
}
;Browser
-^!.::
+#i::
{
; Check if Browser is running
@@ -191,7 +149,7 @@ DetectHiddenWindows true
}
}
;Audacious
-^!/::
+#m::
{
; Check if Audacious is running
@@ -215,14 +173,14 @@ DetectHiddenWindows true
}
}
;Bookmark Finder
-^/::
+#k::
{
; Run the batch file
Run(syncPath . "\Repos\Windows\Batch_tools\bookmarkfinder\bookmarkfinder.bat")
}
;AI
-^!i::
+#p::
{
; Check if AI is running
Back to https://optics-design.com