aboutsummaryrefslogtreecommitdiff
path: root/.config/i3/dec_brightness.py
diff options
context:
space:
mode:
authorAlec Goncharow <alec@goncharow.dev>2022-12-04 18:23:46 -0600
committerAlec Goncharow <alec@goncharow.dev>2022-12-04 18:23:46 -0600
commit1ec73cc2c14d2f62c32046d9585c3a745531d37a (patch)
tree8b9c6b2e5ba43ce1248c114758a55df9467cab64 /.config/i3/dec_brightness.py
parentb257edf16c9b8b14ebb542e857a29c74fea00495 (diff)
Fresh start
Diffstat (limited to '.config/i3/dec_brightness.py')
-rw-r--r--.config/i3/dec_brightness.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/.config/i3/dec_brightness.py b/.config/i3/dec_brightness.py
deleted file mode 100644
index a4b3757..0000000
--- a/.config/i3/dec_brightness.py
+++ /dev/null
@@ -1,16 +0,0 @@
-#!/usr/bin/python3
-
-import subprocess
-
-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)
-brightness = ratio * 100
-
-if brightness > 6:
- subprocess.call("xbacklight -set {}".format(brightness - 5), shell=True)