From 1ec73cc2c14d2f62c32046d9585c3a745531d37a Mon Sep 17 00:00:00 2001 From: Alec Goncharow Date: Sun, 4 Dec 2022 18:23:46 -0600 Subject: Fresh start --- .config/i3blocks/brightness.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 .config/i3blocks/brightness.py (limited to '.config/i3blocks/brightness.py') diff --git a/.config/i3blocks/brightness.py b/.config/i3blocks/brightness.py deleted file mode 100644 index 993856e..0000000 --- a/.config/i3blocks/brightness.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/python3 - -backlight_dir = '/sys/class/backlight/intel_backlight/' - -brightness_file = 'brightness' -max_brightness_file = 'max_brightness' - -brightness = int(open(backlight_dir + brightness_file).read()) -max_brightness = int(open(backlight_dir + max_brightness_file).read()) - -ratio = (brightness / max_brightness) -percent = ratio * 100 - -round_percent = percent + 2.5 -round_percent = round_percent - round_percent%5 - -print("{}%".format(round(round_percent))) -- cgit v1.2.3-70-g09d2