diff --git a/config.ps1 b/config.ps1 index 69252cf..6277387 100644 --- a/config.ps1 +++ b/config.ps1 @@ -13,7 +13,7 @@ $toInstall = @('7zip.7zip', 'VideoLAN.VLC', 'SumatraPDF.SumatraPDF', 'Microsoft. 'yt-dlp.yt-dlp'.'Audacity.Audacity', 'ffmpeg', 'mp4-merge', 'AutoHotkey.AutoHotkey') $toInstallOpt = @('Element.Element', 'Discord.Discord', 'Corsair.iCUE.4', 'Valve.Steam', 'GOG.Galaxy', 'TeXstudio.TeXstudio', 'MiKTeX.MiKTeX', 'Citrix.Workspace', 'Nvidia.GeForceExperience', 'Mojang.MinecraftLauncher', - 'Elgato.StreamDeck', 'REALiX.HWiNFO', '9P4CLT2RJ1RS', 'Microsoft.SQLServerManagementStudio', 'Soundboard', 'VMware.WorkstationPro', 'OBSProject.OBSStudio', 'Microsoft.Teams') + 'Elgato.StreamDeck', 'REALiX.HWiNFO', '9P4CLT2RJ1RS', 'Microsoft.SQLServerManagementStudio', 'Soundboard', 'VMware.WorkstationPro', 'OBSProject.OBSStudio', 'Microsoft.Teams', 'AndreWiethoff.ExactAudioCopy') # Deinstalliert den Crap function RemoveSoftware { diff --git a/configs/autohotkey/Lib.ahk b/configs/autohotkey/Lib.ahk new file mode 100644 index 0000000..41c7d60 --- /dev/null +++ b/configs/autohotkey/Lib.ahk @@ -0,0 +1,13 @@ +#Requires AutoHotkey v2.0 +#NoTrayIcon + +;Ermittelt den aktuellen Pfad +GetPath(_hwnd) +{ + for w in ComObject("Shell.Application").Windows + if (w.hwnd = _hwnd) + { + path := StrReplace(w.LocationURL, "file:///") + return StrReplace(path, "%20", " ") + } +} \ No newline at end of file diff --git a/configs/autohotkey/NewTxt.ahk b/configs/autohotkey/NewTxt.ahk index 235f2f1..9dcc182 100644 --- a/configs/autohotkey/NewTxt.ahk +++ b/configs/autohotkey/NewTxt.ahk @@ -1,4 +1,5 @@ #Requires AutoHotkey v2.0 +#NoTrayIcon ;Mit Strg, Shift + M wird ein leeres Textfile erzeugt. #HotIf ("ahk_class CabinetWClass") ^+m:: diff --git a/configs/autohotkey/OpenVSC.ahk b/configs/autohotkey/OpenVSC.ahk new file mode 100644 index 0000000..d28a00d --- /dev/null +++ b/configs/autohotkey/OpenVSC.ahk @@ -0,0 +1,17 @@ +#Requires AutoHotkey v2.0 +#Include Lib.ahk +#NoTrayIcon +;Mit Strg, Alt + P wird der aktuell Ordner im Terminal geöffnet. + +!c:: +{ +HotIfWinActive "ahk_class CabinetWClass" +{ + WinID := WinGetID("ahk_class CabinetWClass") + Path := GetPath(WinID) + code := A_AppData . "\Local\Programs\Microsoft VS Code\Code.exe" + Run 'code "-n" Path' + +} +Return +} \ No newline at end of file diff --git a/configs/autohotkey/OpenWt.ahk b/configs/autohotkey/OpenWt.ahk new file mode 100644 index 0000000..0243f50 --- /dev/null +++ b/configs/autohotkey/OpenWt.ahk @@ -0,0 +1,16 @@ +#Requires AutoHotkey v2.0 +#NoTrayIcon +#Include Lib.ahk +;Mit Strg, Alt + P wird der aktuell Ordner im Terminal geöffnet. + +^!p:: +{ +HotIfWinActive "ahk_class CabinetWClass" +{ + WinID := WinGetID("ahk_class CabinetWClass") + Path := GetPath(WinID) + Run 'wt -d ' Path +} +Return +} +