This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
#WARNING THIS MIGHT BREAK SOMETHING OR CORRUPT FILES | |
#I HAVEN'T DONE RESEARCH ON ANY OF THOSE APPS, SO I'M NOT EVEN SURE WHAT THEY DO | |
bloatwareNames="package|io.elementary|mysqld|djs|nautilus|evolution|tracker|execsn|ibus|hidpi|\(sd-|cups|flatpak-por|dotnet" | |
bloatwareIds=$(ps -TA | grep -Po "[0-9]{3,} (?=(\?|p).*(?=($bloatwareNames)))" | tr -d '\n') | |
sudo kill $(echo $bloatwareIds) |