From 31a2616a9248164ce3b512cbd13a0f52124cf585 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 24 Aug 2023 20:31:47 +0200 Subject: [PATCH 1/5] =?UTF-8?q?Eartrumpet=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.ps1 b/config.ps1 index fcd04cb..b790bb9 100644 --- a/config.ps1 +++ b/config.ps1 @@ -10,7 +10,7 @@ $toRemove = @('Clipchamp.Clipchamp_yxz26nhyzhsrt', 'Microsoft.549981C3F5F10_8wek $toInstall = @('7zip.7zip', 'VideoLAN.VLC', 'SumatraPDF.SumatraPDF', 'Microsoft.VisualStudioCode', 'Bitwarden.Bitwarden', 'Mozilla.Firefox', 'IrfanSkiljan.IrfanView', 'Microsoft.PowerToys', 'Joplin.Joplin', 'WireGuard.WireGuard', 'Devolutions.RemoteDesktopManager', 'TeamViewer.TeamViewer', 'NickeManarin.ScreenToGif', 'JanDeDobbeleer.OhMyPosh', 'WiresharkFoundation.Wireshark', 'Famatech.AdvancedIPScanner', - 'yt-dlp.yt-dlp'.'Audacity.Audacity', 'AutoHotkey.AutoHotkey', 'Gyan.FFmpeg', 'dotPDNLLC.paintdotnet', 'OO-Software.ShutUp10', 'WinSCP.WinSCP', 'Microsoft.Office') + 'yt-dlp.yt-dlp'.'Audacity.Audacity', 'AutoHotkey.AutoHotkey', 'Gyan.FFmpeg', 'dotPDNLLC.paintdotnet', 'OO-Software.ShutUp10', 'WinSCP.WinSCP', 'Microsoft.Office', 'File-New-Project.EarTrumpet') $toInstallOpt = @('Element.Element', 'Discord.Discord', 'Logitech.LogiBolt', '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', 'AndreWiethoff.ExactAudioCopy', 'Mp3tag.Mp3tag', 'Logitech.OptionsPlus', From 24ab68250e12ec12942f4779d2edf96b77744735 Mon Sep 17 00:00:00 2001 From: Tim Date: Sat, 14 Oct 2023 11:05:56 +0200 Subject: [PATCH 2/5] IrfanView Plugins --- config.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.ps1 b/config.ps1 index b790bb9..29972ff 100644 --- a/config.ps1 +++ b/config.ps1 @@ -10,7 +10,7 @@ $toRemove = @('Clipchamp.Clipchamp_yxz26nhyzhsrt', 'Microsoft.549981C3F5F10_8wek $toInstall = @('7zip.7zip', 'VideoLAN.VLC', 'SumatraPDF.SumatraPDF', 'Microsoft.VisualStudioCode', 'Bitwarden.Bitwarden', 'Mozilla.Firefox', 'IrfanSkiljan.IrfanView', 'Microsoft.PowerToys', 'Joplin.Joplin', 'WireGuard.WireGuard', 'Devolutions.RemoteDesktopManager', 'TeamViewer.TeamViewer', 'NickeManarin.ScreenToGif', 'JanDeDobbeleer.OhMyPosh', 'WiresharkFoundation.Wireshark', 'Famatech.AdvancedIPScanner', - 'yt-dlp.yt-dlp'.'Audacity.Audacity', 'AutoHotkey.AutoHotkey', 'Gyan.FFmpeg', 'dotPDNLLC.paintdotnet', 'OO-Software.ShutUp10', 'WinSCP.WinSCP', 'Microsoft.Office', 'File-New-Project.EarTrumpet') + 'yt-dlp.yt-dlp'.'Audacity.Audacity', 'AutoHotkey.AutoHotkey', 'Gyan.FFmpeg', 'dotPDNLLC.paintdotnet', 'OO-Software.ShutUp10', 'WinSCP.WinSCP', 'Microsoft.Office', 'File-New-Project.EarTrumpet', 'IrfanSkiljan.IrfanView.PlugIns') $toInstallOpt = @('Element.Element', 'Discord.Discord', 'Logitech.LogiBolt', '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', 'AndreWiethoff.ExactAudioCopy', 'Mp3tag.Mp3tag', 'Logitech.OptionsPlus', From ab5ff5c336652077a1f979c2338d108ffd1dbe61 Mon Sep 17 00:00:00 2001 From: jonas Date: Sat, 11 Nov 2023 09:54:32 +0000 Subject: [PATCH 3/5] Touch replacement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Der Ersatz für den `touch` alias gefixt. --- aliases.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aliases.ps1 b/aliases.ps1 index 78c121a..cdb0e6d 100644 --- a/aliases.ps1 +++ b/aliases.ps1 @@ -41,7 +41,7 @@ function pwd { Get-Location } # touch replacement -function pwd { +function touch { New-Item } From 0f9268a45e6bd9732d610f4061656443e9a72545 Mon Sep 17 00:00:00 2001 From: jonas Date: Wed, 15 Nov 2023 16:29:25 +0000 Subject: [PATCH 4/5] Doppelten Eintrag entfernt In der Liste $toRemove war der folgende Eintrag als Dopplung vorhanden: MicrosoftTeams_8wekyb3d8bbwe --- config.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.ps1 b/config.ps1 index 29972ff..d235be9 100644 --- a/config.ps1 +++ b/config.ps1 @@ -6,7 +6,7 @@ $toRemove = @('Clipchamp.Clipchamp_yxz26nhyzhsrt', 'Microsoft.549981C3F5F10_8wek 'Microsoft.MicrosoftOfficeHub_8wekyb3d8bbwe', 'Microsoft.MicrosoftSolitaireCollection_8wekyb3d8bbwe', 'Micorosoft.MicrosoftStickyNotes_8wekyb3d8bbwe', 'Microsoft.People_8wekyb3d8bbwe', 'Microsoft.PowerAutomateDesktop_8wekyb3d8bbwe', 'Microsoft.Todos_8wekyb3d8bbwe', 'Microsoft.Windows.Photos_8wekyb3d8bbwe', 'Microsoft.WindowsMaps_8wekyb3d8bbwe', 'Microsoft.WindowsSoundRecorder_8wekyb3d8bbwe', 'Microsoft.WindowsAlarms_8wekyb3d8bbwe', 'Microsoft.YourPhone_8wekyb3d8bbwe', 'Microsoft.ZuneMusic_8wekyb3d8bbwe', 'Microsoft.ZuneVideo_8wekyb3d8bbwe', - 'MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'Microsoft.OneDrive', 'microsoft.windowscommunicationsapps_8wekyb3d8bbwe', 'CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc') + 'MicrosoftCorporationII.QuickAssist_8wekyb3d8bbwe', 'MicrosoftTeams_8wekyb3d8bbwe', 'Microsoft.OneDrive', 'microsoft.windowscommunicationsapps_8wekyb3d8bbwe', 'CanonicalGroupLimited.Ubuntu_79rhkp1fndgsc') $toInstall = @('7zip.7zip', 'VideoLAN.VLC', 'SumatraPDF.SumatraPDF', 'Microsoft.VisualStudioCode', 'Bitwarden.Bitwarden', 'Mozilla.Firefox', 'IrfanSkiljan.IrfanView', 'Microsoft.PowerToys', 'Joplin.Joplin', 'WireGuard.WireGuard', 'Devolutions.RemoteDesktopManager', 'TeamViewer.TeamViewer', 'NickeManarin.ScreenToGif', 'JanDeDobbeleer.OhMyPosh', 'WiresharkFoundation.Wireshark', 'Famatech.AdvancedIPScanner', From 4abdbc106a927f28f0e483441f2b164c4f075a98 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 12 Jan 2024 10:29:46 +0100 Subject: [PATCH 5/5] =?UTF-8?q?Windirstat=20hinzugef=C3=BCgt:=20sit.ahk=20?= =?UTF-8?q?ber=C3=BCcksichtigt=20fullscreen=20Anwendungen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.ps1 | 3 ++- configs/autohotkey/Lib.ahk | 52 +++++++++++++++++++++++++++++++++++++- configs/autohotkey/Sit.ahk | 19 +++++++++----- 3 files changed, 65 insertions(+), 9 deletions(-) diff --git a/config.ps1 b/config.ps1 index d235be9..f8b890d 100644 --- a/config.ps1 +++ b/config.ps1 @@ -10,7 +10,8 @@ $toRemove = @('Clipchamp.Clipchamp_yxz26nhyzhsrt', 'Microsoft.549981C3F5F10_8wek $toInstall = @('7zip.7zip', 'VideoLAN.VLC', 'SumatraPDF.SumatraPDF', 'Microsoft.VisualStudioCode', 'Bitwarden.Bitwarden', 'Mozilla.Firefox', 'IrfanSkiljan.IrfanView', 'Microsoft.PowerToys', 'Joplin.Joplin', 'WireGuard.WireGuard', 'Devolutions.RemoteDesktopManager', 'TeamViewer.TeamViewer', 'NickeManarin.ScreenToGif', 'JanDeDobbeleer.OhMyPosh', 'WiresharkFoundation.Wireshark', 'Famatech.AdvancedIPScanner', - 'yt-dlp.yt-dlp'.'Audacity.Audacity', 'AutoHotkey.AutoHotkey', 'Gyan.FFmpeg', 'dotPDNLLC.paintdotnet', 'OO-Software.ShutUp10', 'WinSCP.WinSCP', 'Microsoft.Office', 'File-New-Project.EarTrumpet', 'IrfanSkiljan.IrfanView.PlugIns') + 'yt-dlp.yt-dlp'.'Audacity.Audacity', 'AutoHotkey.AutoHotkey', 'Gyan.FFmpeg', 'dotPDNLLC.paintdotnet', 'OO-Software.ShutUp10', 'WinSCP.WinSCP', 'Microsoft.Office', 'File-New-Project.EarTrumpet', 'IrfanSkiljan.IrfanView.PlugIns', + 'WinDirStat.WinDirStat') $toInstallOpt = @('Element.Element', 'Discord.Discord', 'Logitech.LogiBolt', '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', 'AndreWiethoff.ExactAudioCopy', 'Mp3tag.Mp3tag', 'Logitech.OptionsPlus', diff --git a/configs/autohotkey/Lib.ahk b/configs/autohotkey/Lib.ahk index 41c7d60..d48d838 100644 --- a/configs/autohotkey/Lib.ahk +++ b/configs/autohotkey/Lib.ahk @@ -10,4 +10,54 @@ GetPath(_hwnd) path := StrReplace(w.LocationURL, "file:///") return StrReplace(path, "%20", " ") } -} \ No newline at end of file +} + +/*! + Checks if a window is in fullscreen mode. + ______________________________________________________________________________________________________________ + + Usage: isFullScreen() + Return: True/False + + GitHub Repo: https://github.com/Nigh/isFullScreen +*/ +class isFullScreen +{ + + static monitors:=this.init() + static init() + { + a:=[] + loop MonitorGetCount() + { + MonitorGet(A_Index, &Left, &Top, &Right, &Bottom) + a.Push({l:Left,t:Top,r:Right,b:Bottom}) + } + Return a + } + + static Call() + { + uid:=WinExist("A") + if(!uid){ + Return False + } + wid:="ahk_id " uid + c:=WinGetClass(wid) + If (uid = DllCall("GetDesktopWindow") Or (c = "Progman") Or (c = "WorkerW")){ + Return False + } + WinGetClientPos(&cx,&cy,&cw,&ch,wid) + cl:=cx + ct:=cy + cr:=cx+cw + cb:=cy+ch + For , v in this.monitors + { + if(cl==v.l and ct==v.t and cr==v.r and cb==v.b){ + Return True + } + } + Return False + } +} diff --git a/configs/autohotkey/Sit.ahk b/configs/autohotkey/Sit.ahk index 3e97018..ab4eade 100644 --- a/configs/autohotkey/Sit.ahk +++ b/configs/autohotkey/Sit.ahk @@ -1,11 +1,16 @@ #Requires AutoHotkey v2.0 +#Include Lib.ahk SetTimer ToggleMessage, 1800000 toggleMessage() { - Static on := False - If on := !on - MsgBox "Du hast genug gesessen, bitte aufstehen!" - Else MsgBox "Jetzt darfst du dich wieder hinsetzen;)" -} - - + ; Überprüfen, ob eine Anwendung im Vollbildmodus ist + if (!isFullScreen()) { + ; Die Anwendung ist nicht im Vollbildmodus, zeige die MsgBox + Static on := False + if (on := !on) { + MsgBox "Du hast genug gesessen, bitte aufstehen!" + } else { + MsgBox "Jetzt darfst du dich wieder hinsetzen;)" + } + } +} \ No newline at end of file