From 9ff2fa439e1a7838575a74e604b98bac72f8324b Mon Sep 17 00:00:00 2001 From: Adnan Hodzic Date: Sat, 16 Oct 2021 19:38:30 +0200 Subject: [PATCH] Add donate option to auto-cpufreq menu --- bin/auto-cpufreq | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/bin/auto-cpufreq b/bin/auto-cpufreq index 6395e32..218422a 100755 --- a/bin/auto-cpufreq +++ b/bin/auto-cpufreq @@ -24,7 +24,8 @@ from auto_cpufreq.core import * @click.option("--monitor", is_flag=True, help="Monitor and see suggestions for CPU optimizations") @click.option("--stats", is_flag=True, help="View live stats of CPU optimizations made by daemon") @click.option("--version", is_flag=True, help="Show currently installed version") -def main(config, daemon, debug, install, live, log, monitor, stats, version): +@click.option("--donate", is_flag=True, help="Support the project") +def main(config, daemon, debug, install, live, log, monitor, stats, version, donate): if len(sys.argv) == 1: print("\n" + "-" * 32 + " auto-cpufreq " + "-" * 33 + "\n") print("Automatic CPU speed & power optimizer for Linux") @@ -119,6 +120,12 @@ def main(config, daemon, debug, install, live, log, monitor, stats, version): distro_info() app_version() footer() + elif donate: + footer() + print("If auto-cpufreq helped you out and you find it useful ...\n") + print("Show your appreciation by donating!") + print("https://github.com/AdnanHodzic/auto-cpufreq/#donate") + footer() elif install: if os.getenv('PKG_MARKER') == "SNAP": root_check()