From 85ea369da9db3cc78733fe3a2491cb4a5e02278e Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 29 Jun 2025 16:01:03 +0200 Subject: changed shortcuts --- AutoHotkey/hotkeys.ahk | 32 +++++--------------------------- 1 file changed, 5 insertions(+), 27 deletions(-) diff --git a/AutoHotkey/hotkeys.ahk b/AutoHotkey/hotkeys.ahk index 6ef62b2..54f88a3 100644 --- a/AutoHotkey/hotkeys.ahk +++ b/AutoHotkey/hotkeys.ahk @@ -32,6 +32,8 @@ DetectHiddenWindows true } } +;Launcher +#s::SendEvent("!s") ;WSL #w:: { @@ -57,30 +59,6 @@ DetectHiddenWindows true WinActivate("ahk_class ConsoleWindowClass ahk_exe wsl.exe") } } -;Emacs -#n:: -{ - - ; Check if Emacs is running - if WinExist("ahk_class Emacs ahk_exe emacs.exe") - { - ; If Emacs is already in the foreground, minimize it - if WinActive("ahk_class Emacs ahk_exe emacs.exe") - { - WinMinimize("ahk_class Emacs ahk_exe emacs.exe") - } - else - { - ; If Emacs is running but not in the foreground, bring it to the foreground - WinActivate("ahk_class Emacs ahk_exe emacs.exe" ) - } - } - else - { - ; If Emacs is not running, launch it - Run(UserPath . "\scoop\apps\emacs\current\bin\emacsclientw.exe -c") - } -} ;Obsidian #o:: { @@ -130,7 +108,7 @@ DetectHiddenWindows true } } ;Telegram -#,:: +#j:: { ; Check if Telegram is running @@ -142,7 +120,7 @@ DetectHiddenWindows true } ;Thunderbird -#.:: +#k:: { ; Check if Thunderbird is running @@ -177,7 +155,7 @@ DetectHiddenWindows true } } ;Audacious -#m:: +#l:: { ; Check if Audacious is running -- cgit v1.2.3