Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

add rules and init #450

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Read more about semantic versioning [here](http://semver.org/)

## Installation
To use ananicy you must have systemd installed.
If you use openrc, please copy the ananicy.initd to `/etc/init.d` and enable it

You can install ananicy manually by:
```
Expand Down
1 change: 1 addition & 0 deletions ananicy.d/00-default/AdguardHome.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "AdGuardHome", "type": "Service"}
1 change: 1 addition & 0 deletions ananicy.d/00-default/CloudDrive.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"name": "CloudDrive", "type": "Service"}
15 changes: 15 additions & 0 deletions ananicy.d/00-default/_archivers.rules
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,18 @@
{ "name": "lzop", "type": "BG_CPUIO" }
{ "name": "xz", "type": "BG_CPUIO" }
{ "name": "zstd", "type": "BG_CPUIO" }

{ "name": "zip", "type": "BG_CPUIO" }
{ "name": "tar", "type": "BG_CPUIO" }
{ "name": "rar", "type": "BG_CPUIO" }
{ "name": "brotli", "type": "BG_CPUIO" }

{ "name": "unzip", "type": "BG_CPUIO" }
{ "name": "unlz4", "type": "BG_CPUIO" }
{ "name": "unlzma", "type": "BG_CPUIO" }
{ "name": "unxz", "type": "BG_CPUIO" }
{ "name": "unzipsfx", "type": "BG_CPUIO" }
{ "name": "unzstd", "type": "BG_CPUIO" }

# https://theunarchiver.com/command-line
{ "name": "unar", "type": "BG_CPUIO" }
5 changes: 5 additions & 0 deletions ananicy.d/00-default/_systemd.rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# https://www.freedesktop.org/wiki/Software/systemd/
{ "name": "systemd-timesyncd", "type": "BG_CPUIO" }

{ "name": "systemd-journald", "type": "BG_CPUIO" }
{ "name": "systemd-cryptenroll", "type": "BG_CPUIO" }
{ "name": "systemd-dissect", "type": "BG_CPUIO" }
{ "name": "systemd-nspawn", "type": "Container" }
25 changes: 25 additions & 0 deletions ananicy.d/00-default/_top.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ "name": "top", "type": "BG_CPUIO" }
{ "name": "qtop", "type": "BG_CPUIO" }
{ "name": "itop", "type": "BG_CPUIO" }
{ "name": "iotop", "type": "BG_CPUIO" }

# htop process browser: https://hisham.hm/htop/
{ "name": "htop", "type": "BG_CPUIO" }

# https://github.com/yadutaf/ctop
{ "name": "ctop", "type": "BG_CPUIO" }

# https://people.redhat.com/~rjones/virt-top/
{ "name": "virt-top", "type": "BG_CPUIO" }

# https://github.com/clbr/radeontop
{ "name": "radeontop", "type": "BG_CPUIO" }

# https://www.ex-parrot.com/pdw/iftop/
{ "name": "iftop", "type": "BG_CPUIO" }

# https://01.org/powertop/
{ "name": "powertop", "type": "BG_CPUIO" }

# http://nmon.sourceforge.net/
{ "name": "nmon", "type": "BG_CPUIO" }
3 changes: 0 additions & 3 deletions ananicy.d/00-default/android-studio.rules
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
{ "name": "android-studio", "type": "Heavy_CPU" }
{ "name": "avd", "type": "Heavy_CPU" }
{ "name": "java", "type": "Heavy_CPU" }
{ "name": "qemu-system-x86_64", "type": "Heavy_CPU" }
{ "name": "qemu-system-x86", "type": "Heavy_CPU" }
42 changes: 42 additions & 0 deletions ananicy.d/00-default/apt.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# https://wiki.debian.org/Teams/Apt
{ "name": "apt", "type": "BG_CPUIO" }
{ "name": "apt-add-repository", "type": "BG_CPUIO" }
{ "name": "apt-cache", "type": "BG_CPUIO" }
{ "name": "apt-cdrom", "type": "BG_CPUIO" }
{ "name": "apt-config", "type": "BG_CPUIO" }
{ "name": "apt-mirror", "type": "BG_CPUIO" }
{ "name": "apt-move", "type": "BG_CPUIO" }
{ "name": "apt-extracttemplates", "type": "BG_CPUIO" }
{ "name": "apt-ftparchive", "type": "BG_CPUIO" }
{ "name": "apt-get", "type": "BG_CPUIO" }
{ "name": "apt-key", "type": "BG_CPUIO" }
{ "name": "apt-key-install", "type": "BG_CPUIO" }
{ "name": "apt-listchanges", "type": "BG_CPUIO" }
{ "name": "apt-mark", "type": "BG_CPUIO" }
{ "name": "apt-sortpkgs", "type": "BG_CPUIO" }
{ "name": "apt-src", "type": "BG_CPUIO" }

# https://salsa.debian.org/debian/apt-build
{ "name": "apt-build", "type": "BG_CPUIO" }

# https://wiki.debian.org/Aptitude
{ "name": "aptitude", "type": "BG_CPUIO" }
{ "name": "aptitude-curses", "type": "BG_CPUIO" }
{ "name": "aptitude-changelog-parser", "type": "BG_CPUIO" }
{ "name": "aptitude-create-state-bundle", "type": "BG_CPUIO" }
{ "name": "aptitude-run-state-bundle", "type": "BG_CPUIO" }

# https://salsa.debian.org/LeePen/apt-cacher
{ "name": "apt-cacher", "type": "BG_CPUIO" }

# http://www.unix-ag.uni-kl.de/~bloch/acng/
{ "name": "apt-cacher-ng", "type": "BG_CPUIO" }

# https://github.com/mvo5/apt-clone
{ "name": "apt-clone", "type": "BG_CPUIO" }

# https://salsa.debian.org/apt-team/apt-file
{ "name": "apt-file", "type": "BG_CPUIO" }

# https://rickysarraf.github.io/apt-offline/
{ "name": "apt-offline", "type": "BG_CPUIO" }
6 changes: 6 additions & 0 deletions ananicy.d/00-default/atop.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# https://www.atoptool.nl
{ "name": "atop", "type": "BG_CPUIO" }
{ "name": "atopacct", "type": "BG_CPUIO" }
{ "name": "atopconvert", "type": "BG_CPUIO" }
{ "name": "atopsar", "type": "BG_CPUIO" }
{ "name": "atopacctd", "type": "BG_CPUIO" }
2 changes: 1 addition & 1 deletion ananicy.d/00-default/awesome_wm.rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# https://awesomewm.org
{ "name": "awesome", "type": "LowLatency_RT" }
{ "name": "awesome", "type": "Essential" }
3 changes: 3 additions & 0 deletions ananicy.d/00-default/bitcoin.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://bitcoin.org
{ "name": "bitcoind", "type": "BG_CPUIO" }
{ "name": "bitcoin-qt", "type": "BG_CPUIO" }
2 changes: 1 addition & 1 deletion ananicy.d/00-default/bspwm.rules
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# https://github.com/baskerville/bspwm
{ "name": "bspwm", "type": "LowLatency_RT" }
{ "name": "bspwm", "type": "Essential" }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/buildah.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://buildah.io/
{ "name": "buildah", "type": "BG_CPUIO" }
1 change: 1 addition & 0 deletions ananicy.d/00-default/ca-certificates.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "name": "update-ca-certificates", "type": "BG_CPUIO" }
4 changes: 4 additions & 0 deletions ananicy.d/00-default/caprine.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

# Elegant Facebook Messenger desktop app
# https://github.com/sindresorhus/caprine/
{ "name": "caprine", "type": "Chat" }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/ccache.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{ "name": "ccache", "type": "BG_CPUIO" }
{ "name": "update-ccache-symlinks", "type": "BG_CPUIO" }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/chrony.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://chrony.tuxfamily.org/
{ "name": "chronyd", "type": "BG_CPUIO" }
3 changes: 3 additions & 0 deletions ananicy.d/00-default/citra.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# A Nintendo 3DS Emulator https://citra-emu.org/
{ "name": "citra", "type": "Game" }
{ "name": "citra-qt", "type": "Game" }
11 changes: 11 additions & 0 deletions ananicy.d/00-default/clang.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{"name": "clang", "type": "Heavy_CPU"}
{"name": "clang++", "type": "Heavy_CPU"}
{ "name": "clang-cpp", "type": "BG_CPUIO" }
{ "name": "c-index-test", "type": "BG_CPUIO" }
{ "name": "clang-apply-replacements", "type": "BG_CPUIO" }
{ "name": "clang-check", "type": "BG_CPUIO" }
{ "name": "clang-query", "type": "BG_CPUIO" }
{ "name": "sancov", "type": "BG_CPUIO" }
{ "name": "scan-build", "type": "BG_CPUIO" }
{ "name": "scan-view", "type": "BG_CPUIO" }
{ "name": "clang-tidy", "type": "BG_CPUIO" }
1 change: 1 addition & 0 deletions ananicy.d/00-default/colord.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{ "name": "colord", "type": "BG_CPUIO", "nice": -5 }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/command-not-found.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{ "name": "cnf-update-db", "type": "BG_CPUIO" }
{ "name": "update-command-not-found", "type": "BG_CPUIO" }
4 changes: 2 additions & 2 deletions ananicy.d/00-default/compton.rules
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# https://github.com/chjj/compton
# https://github.com/yshui/picom
{ "name": "compton", "type": "LowLatency_RT" }
{ "name": "picom", "type": "LowLatency_RT" }
{ "name": "compton", "type": "Essential" }
{ "name": "picom", "type": "Essential" }
2 changes: 2 additions & 0 deletions ananicy.d/00-default/conmon.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# https://github.com/containers/conmon
{ "name": "conmon", "type": "Container" }
6 changes: 6 additions & 0 deletions ananicy.d/00-default/coreutils.rules
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@
{ "name": "tac", "type": "BG_CPUIO" }
{ "name": "tee", "type": "BG_CPUIO" }
{ "name": "wc", "type": "BG_CPUIO" }
{ "name": "cut", "type": "BG_CPUIO" }
{ "name": "base32", "type": "BG_CPUIO" }
{ "name": "base64", "type": "BG_CPUIO" }
{ "name": "uniq", "type": "BG_CPUIO" }
{ "name": "tr", "type": "BG_CPUIO" }
{ "name": "sha244sum", "type": "BG_CPUIO" }
126 changes: 126 additions & 0 deletions ananicy.d/00-default/debhelper.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
# https://salsa.debian.org/debian/debhelper
{ "name": "dh", "type": "BG_CPUIO" }
{ "name": "dh_assistant", "type": "BG_CPUIO" }
{ "name": "dh_auto_build", "type": "BG_CPUIO" }
{ "name": "dh_auto_clean", "type": "BG_CPUIO" }
{ "name": "dh_auto_configure", "type": "BG_CPUIO" }
{ "name": "dh_auto_install", "type": "BG_CPUIO" }
{ "name": "dh_auto_test", "type": "BG_CPUIO" }
{ "name": "dh_bugfiles", "type": "BG_CPUIO" }
{ "name": "dh_builddeb", "type": "BG_CPUIO" }
{ "name": "dh_clean", "type": "BG_CPUIO" }
{ "name": "dh_compress", "type": "BG_CPUIO" }
{ "name": "dh_dwz", "type": "BG_CPUIO" }
{ "name": "dh_fixperms", "type": "BG_CPUIO" }
{ "name": "dh_gconf", "type": "BG_CPUIO" }
{ "name": "dh_gencontrol", "type": "BG_CPUIO" }
{ "name": "dh_icons", "type": "BG_CPUIO" }
{ "name": "dh_install", "type": "BG_CPUIO" }
{ "name": "dh_installalternatives", "type": "BG_CPUIO" }
{ "name": "dh_installcatalogs", "type": "BG_CPUIO" }
{ "name": "dh_installchangelogs", "type": "BG_CPUIO" }
{ "name": "dh_installcron", "type": "BG_CPUIO" }
{ "name": "dh_installdeb", "type": "BG_CPUIO" }
{ "name": "dh_installdebconf", "type": "BG_CPUIO" }
{ "name": "dh_installdirs", "type": "BG_CPUIO" }
{ "name": "dh_installdocs", "type": "BG_CPUIO" }
{ "name": "dh_installemacsen", "type": "BG_CPUIO" }
{ "name": "dh_installexamples", "type": "BG_CPUIO" }
{ "name": "dh_installgsettings", "type": "BG_CPUIO" }
{ "name": "dh_installifupdown", "type": "BG_CPUIO" }
{ "name": "dh_installinfo", "type": "BG_CPUIO" }
{ "name": "dh_installinit", "type": "BG_CPUIO" }
{ "name": "dh_installinitramfs", "type": "BG_CPUIO" }
{ "name": "dh_installlogcheck", "type": "BG_CPUIO" }
{ "name": "dh_installlogrotate", "type": "BG_CPUIO" }
{ "name": "dh_installman", "type": "BG_CPUIO" }
{ "name": "dh_installmanpages", "type": "BG_CPUIO" }
{ "name": "dh_installmenu", "type": "BG_CPUIO" }
{ "name": "dh_installmime", "type": "BG_CPUIO" }
{ "name": "dh_installmodules", "type": "BG_CPUIO" }
{ "name": "dh_installpam", "type": "BG_CPUIO" }
{ "name": "dh_installppp", "type": "BG_CPUIO" }
{ "name": "dh_installsystemd", "type": "BG_CPUIO" }
{ "name": "dh_installsystemduser", "type": "BG_CPUIO" }
{ "name": "dh_installsysusers", "type": "BG_CPUIO" }
{ "name": "dh_installtmpfiles", "type": "BG_CPUIO" }
{ "name": "dh_installudev", "type": "BG_CPUIO" }
{ "name": "dh_installwm", "type": "BG_CPUIO" }
{ "name": "dh_installxfonts", "type": "BG_CPUIO" }
{ "name": "dh_link", "type": "BG_CPUIO" }
{ "name": "dh_lintian", "type": "BG_CPUIO" }
{ "name": "dh_listpackages", "type": "BG_CPUIO" }
{ "name": "dh_makeshlibs", "type": "BG_CPUIO" }
{ "name": "dh_md5sums", "type": "BG_CPUIO" }
{ "name": "dh_missing", "type": "BG_CPUIO" }
{ "name": "dh_movefiles", "type": "BG_CPUIO" }
{ "name": "dh_perl", "type": "BG_CPUIO" }
{ "name": "dh_prep", "type": "BG_CPUIO" }
{ "name": "dh_shlibdeps", "type": "BG_CPUIO" }
{ "name": "dh_strip", "type": "BG_CPUIO" }
{ "name": "dh_systemd_enable", "type": "BG_CPUIO" }
{ "name": "dh_systemd_start", "type": "BG_CPUIO" }
{ "name": "dh_testdir", "type": "BG_CPUIO" }
{ "name": "dh_testroot", "type": "BG_CPUIO" }
{ "name": "dh_ucf", "type": "BG_CPUIO" }
{ "name": "dh_update_autotools_config", "type": "BG_CPUIO" }
{ "name": "dh_usrlocal", "type": "BG_CPUIO" }

# https://salsa.debian.org/python-team/tools/dh-python
{ "name": "dh_pypy", "type": "BG_CPUIO" }
{ "name": "dh_python2", "type": "BG_CPUIO" }
{ "name": "dh_python3", "type": "BG_CPUIO" }
{ "name": "dh_pybuild", "type": "BG_CPUIO" }

# https://github.com/spotify/dh-virtualenv
{ "name": "dh_virtualenv", "type": "BG_CPUIO" }

# https://github.com/algernon/dh-exec
{ "name": "dh-exec", "type": "BG_CPUIO" }

# https://salsa.debian.org/go-team/packages/dh-golang
{ "name": "dh_golang", "type": "BG_CPUIO" }
{ "name": "dh_golang_autopkgtest", "type": "BG_CPUIO" }

# https://salsa.debian.org/go-team/packages/dh-make-golang
{ "name": "dh-make-golang", "type": "BG_CPUIO" }

# https://salsa.debian.org/debian/dh-linktree
{ "name": "dh_linktree", "type": "BG_CPUIO" }

# https://salsa.debian.org/reproducible-builds/strip-nondeterminism
{ "name: "dh_strip_nondeterminism", "type": "BG_CPUIO" }

# https://salsa.debian.org/debian/dh-make
{ "name": "dh_make", "type": "BG_CPUIO" }
{ "name": "dh_makefont", "type": "BG_CPUIO" }

# https://gitlab.kitware.com/debian/dh-cmake
{ "name": "dh_cmake_install", "type": "BG_CPUIO" }
{ "name": "dh_cpack_generate", "type": "BG_CPUIO" }
{ "name": "dh_cpack_install", "type": "BG_CPUIO" }
{ "name": "dh_cpack_substvars", "type": "BG_CPUIO" }
{ "name": "dh_ctest_build", "type": "BG_CPUIO" }
{ "name": "dh_ctest_clean", "type": "BG_CPUIO" }
{ "name": "dh_ctest_configure", "type": "BG_CPUIO" }
{ "name": "dh_ctest_start", "type": "BG_CPUIO" }
{ "name": "dh_ctest_submit", "type": "BG_CPUIO" }
{ "name": "dh_ctest_test", "type": "BG_CPUIO" }
{ "name": "dh_ctest_update", "type": "BG_CPUIO" }

# https://salsa.debian.org/debian/dh-autoreconf
{ "name": "dh_autoreconf", "type": "BG_CPUIO" }
{ "name": "dh_autoreconf_clean", "type": "BG_CPUIO" }

# https://salsa.debian.org/ocaml-team/dh-ocaml
{ "name": "dh_ocaml", "type": "BG_CPUIO" }
{ "name": "dh_ocamlclean", "type": "BG_CPUIO" }
{ "name": "dh_ocamldoc", "type": "BG_CPUIO" }
{ "name": "dh_ocamlinit", "type": "BG_CPUIO" }
{ "name": "dom-mrconfig", "type": "BG_CPUIO" }
{ "name": "dom-new-git-repo", "type": "BG_CPUIO" }
{ "name": "ocaml-lintian", "type": "BG_CPUIO" }
{ "name": "ocaml-md5sums", "type": "BG_CPUIO" }

{ "name": "dh_apparmor", "type": "BG_CPUIO" }
{ "name": "dh_consoledata", "type": "BG_CPUIO" }"
5 changes: 5 additions & 0 deletions ananicy.d/00-default/desktop-file-utils.rules
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# https://www.freedesktop.org/wiki/Software/desktop-file-utils/
{ "name": "update-desktop-database", "type": "BG_CPUIO" }
{ "name": "desktop-file-edit", "type": "BG_CPUIO" }
{ "name": "desktop-file-install", "type": "BG_CPUIO" }
{ "name": "desktop-file-validate", "type": "BG_CPUIO" }
Loading