diff --git a/close-unneeded-software.ps1 b/close-unneeded-software.ps1 new file mode 100644 index 0000000..cb1253d --- /dev/null +++ b/close-unneeded-software.ps1 @@ -0,0 +1,31 @@ +# get lively process + +$lively = Get-Process Lively -ErrorAction SilentlyContinue +if ($lively) { + $lively | Stop-Process -Force + + Write-Host "Stopped Lively" +} else { + Write-Host "Lively already stopped" +} + + +$keepassxc = Get-Process KeePassXC -ErrorAction SilentlyContinue +if ($keepassxc) { + $keepassxc | Stop-Process -Force + + Write-Host "Stopped KeePassXC" +} else { + Write-Host "KeePassXC already stopped" +} + +$ferdium = Get-Process Ferdium -ErrorAction SilentlyContinue +if ($ferdium) { + $ferdium | Stop-Process -Force + + Write-Host "Stopped Ferdium" +} else { + Write-Host "Ferdium already stopped" +} + +Pause diff --git a/powerfetch.ps1 b/powerfetch.ps1 deleted file mode 100644 index 31e67e1..0000000 --- a/powerfetch.ps1 +++ /dev/null @@ -1,18 +0,0 @@ -$wmiOS = Get-CimInstance -Class Win32_OperatingSystem -$wmiCS = Get-CimInstance -ClassName Win32_ComputerSystem -$uptime = Get-Uptime -$os = $wmiOS.Caption -$model = $wmiCS.Model -$build = $wmiOS.BuildNumber -$uptimeHours = $uptime.Hours -$uptimeMinutes = $uptime.Minutes -$chocoPackages = choco list -l | Measure-Object -Line -$scoopPackages = scoop.cmd list | Measure-Object -Line -$packages = $($chocoPackages.Lines - 1) + $($scoopPackages.Lines - 3) - -Write-Host -ForegroundColor Yellow "$env:username@$env:computername" -Write-Host -ForegroundColor Red "os " -NoNewline; Write-Host -ForegroundColor DarkCyan "$os" -Write-Host -ForegroundColor Red "host " -NoNewline; Write-Host -ForegroundColor DarkCyan "$model" -Write-Host -ForegroundColor Red "build " -NoNewline; Write-Host -ForegroundColor DarkCyan "$build" -Write-Host -ForegroundColor Red "uptime " -NoNewline; Write-Host -ForegroundColor DarkCyan $uptimeHours"h "$uptimeMinutes"m" -Write-Host -ForegroundColor Red "pkgs " -NoNewline; Write-Host -ForegroundColor DarkCyan "$packages (choco + scoop)" diff --git a/profile.ps1 b/profile.ps1 index b611da0..7710629 100644 --- a/profile.ps1 +++ b/profile.ps1 @@ -1,6 +1,4 @@ -using namespace System.Management.Automation - -powerfetch.ps1 +using namespace System.Management.Automation Import-Module PSReadLine @@ -72,35 +70,17 @@ function lsPretty lsd -A -L -l $args[0] } -function mklink +function mklink { [string] $original = $args[0] [string] $target = $args[1] sudo New-Item -ItemType SymbolicLink -Path "$target" -Target "$original" } -function yta { - youtube-dl -x -f bestaudio --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --audio-format mp3 -o "%(title)s.%(ext)s" $args[0] -} - -function ytvb { - youtube-dl --merge-output-format mp4 -f "bestvideo+bestaudio[ext=m4a]/best" --embed-thumbnail --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --add-metadata -o "%(title)s.%(ext)s" $args[0] -} - -function ytvf { - youtube-dl --merge-output-format mp4 --format best --embed-thumbnail --external-downloader aria2c --external-downloader-args "-j 16 -s 16 -x 16 -k 5M" --add-metadata -o "%(title)s.%(ext)s" $args[0] -} - function download { Set-Location ~\Downloads aria2c -j 16 -s 16 -x 16 -k 5M --file-allocation=none $args[0] } -function BlockTheSpot { - Invoke-WebRequest -UseBasicParsing 'https://raw.githubusercontent.com/mrpond/BlockTheSpot/master/install.ps1' | Invoke-Expression -} - Set-Alias -Name ls -Value lsPretty -Set-Alias -Name grep -Value rg Set-Alias -Name ln -Value mklink -Set-Alias -Name vi -Value nvim-qt diff --git a/restart-unneeded-software.ps1 b/restart-unneeded-software.ps1 new file mode 100644 index 0000000..5e2c092 --- /dev/null +++ b/restart-unneeded-software.ps1 @@ -0,0 +1,28 @@ +$lively = Get-Process Lively -ErrorAction SilentlyContinue +if (!$lively) { + Start-Process -FilePath "C:\Users\Banir\AppData\Local\Programs\Lively Wallpaper\Lively.exe" + + Write-Host "Started Lively" +} else { + Write-Host "Lively already started" +} + +$keepassxc = Get-Process KeePassXC -ErrorAction SilentlyContinue +if (!$keepassxc) { + Start-Process -FilePath "C:\Program Files\KeePassXC\KeePassXC.exe" + + Write-Host "Started KeePassXC" +} else { + Write-Host "KeePassXC already started" +} + +$ferdium = Get-Process Ferdium -ErrorAction SilentlyContinue +if (!$ferdium) { + Start-Process -FilePath "C:\Users\Banir\AppData\Local\Programs\ferdium\Ferdium.exe" + + Write-Host "Started Ferdium" +} else { + Write-Host "Ferdium already started" +} + +Pause diff --git a/ryzenadj-heavy gaming-pro.cmd b/ryzenadj-heavy gaming-pro.cmd index 9409c6e..f71b88a 100644 --- a/ryzenadj-heavy gaming-pro.cmd +++ b/ryzenadj-heavy gaming-pro.cmd @@ -1,2 +1,3 @@ +@echo off ryzenadj --slow-time=60 --vrmmax-current=70000 --tctl-temp=85 --stapm-limit=35000 --stapm-time=1000 --fast-limit=50000 --slow-limit=48000 --max-performance pause \ No newline at end of file diff --git a/ryzenadj-heavy-gaming.cmd b/ryzenadj-heavy-gaming.cmd index 39fc1de..c4fe4a0 100644 --- a/ryzenadj-heavy-gaming.cmd +++ b/ryzenadj-heavy-gaming.cmd @@ -1,2 +1,3 @@ +@echo off ryzenadj --slow-time=60 --vrmmax-current=60000 --tctl-temp=70 --stapm-limit=20000 --stapm-time=1000 --fast-limit=25000 --slow-limit=21000 --max-performance pause \ No newline at end of file diff --git a/ryzenadj-heavy-programs.cmd b/ryzenadj-heavy-programs.cmd index 1ccce80..66003ab 100644 --- a/ryzenadj-heavy-programs.cmd +++ b/ryzenadj-heavy-programs.cmd @@ -1,2 +1,3 @@ +@echo off ryzenadj --slow-time=60 --vrmmax-current=60000 --tctl-temp=75 --stapm-limit=25000 --stapm-time=1000 --fast-limit=30000 --slow-limit=27000 --max-performance pause \ No newline at end of file diff --git a/ryzenadj-light-gaming.cmd b/ryzenadj-light-gaming.cmd index b1f5fae..aad869b 100644 --- a/ryzenadj-light-gaming.cmd +++ b/ryzenadj-light-gaming.cmd @@ -1,2 +1,3 @@ +@echo off ryzenadj --slow-time=30 --vrmmax-current=35000 --tctl-temp=65 --stapm-limit=10000 --stapm-time=300 --fast-limit=12000 --slow-limit=11000 --max-performance pause \ No newline at end of file diff --git a/ryzenadj-normal.cmd b/ryzenadj-normal.cmd index ef52676..091418d 100644 --- a/ryzenadj-normal.cmd +++ b/ryzenadj-normal.cmd @@ -1,2 +1,3 @@ +@echo off ryzenadj --slow-time=30 --vrmmax-current=30000 --tctl-temp=60 --stapm-limit=10000 --stapm-time=300 --fast-limit=12000 --slow-limit=11000 --power-saving pause \ No newline at end of file diff --git a/ryzenadj/batman-arkhman-asylum.cmd b/ryzenadj/batman-arkhman-asylum.cmd new file mode 100644 index 0000000..e55f107 --- /dev/null +++ b/ryzenadj/batman-arkhman-asylum.cmd @@ -0,0 +1,3 @@ +@echo off +ryzenadj --slow-time=60 --vrmmax-current=42000 --tctl-temp=75 --stapm-limit=14000 --stapm-time=1000 --fast-limit=16000 --slow-limit=15000 +pause \ No newline at end of file diff --git a/ryzenadj/genshin-impact.cmd b/ryzenadj/genshin-impact.cmd index a3a3de5..9a8ddf7 100644 --- a/ryzenadj/genshin-impact.cmd +++ b/ryzenadj/genshin-impact.cmd @@ -1,2 +1,3 @@ @echo off -ryzenadj --slow-time=60 --vrmmax-current=44000 --tctl-temp=70 --stapm-limit=13000 --stapm-time=1000 --fast-limit=18000 --slow-limit=16000 --max-performance \ No newline at end of file +ryzenadj --slow-time=60 --vrmmax-current=44000 --tctl-temp=70 --stapm-limit=13000 --stapm-time=1000 --fast-limit=18000 --slow-limit=16000 +pause \ No newline at end of file diff --git a/update_system.ps1 b/update_system.ps1 index 0f956cd..62f4fa2 100644 --- a/update_system.ps1 +++ b/update_system.ps1 @@ -10,11 +10,11 @@ Write-Host -ForegroundColor Green "Updating scoop packages" Write-Host "" scoop update * -Write-Host "" -Write-Host "" -Write-Host -ForegroundColor Green "Updating npm packages" -Write-Host "" -npm update -g +# Write-Host "" +# Write-Host "" +# Write-Host -ForegroundColor Green "Updating npm packages" +# Write-Host "" +# npm update -g Write-Host "" Write-Host ""