Merge branch 'main' of https://git.susa.pw/Tim/winconfig
This commit is contained in:
@@ -41,7 +41,7 @@ function pwd {
|
||||
Get-Location
|
||||
}
|
||||
# touch replacement
|
||||
function pwd {
|
||||
function touch {
|
||||
New-Item
|
||||
}
|
||||
|
||||
|
||||
@@ -6,11 +6,12 @@ $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',
|
||||
'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', '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',
|
||||
|
||||
@@ -10,4 +10,54 @@ GetPath(_hwnd)
|
||||
path := StrReplace(w.LocationURL, "file:///")
|
||||
return StrReplace(path, "%20", " ")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*!
|
||||
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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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;)"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user