From 800f87a50e8d9b47c50125bb16f37686f9905e67 Mon Sep 17 00:00:00 2001 From: Tom van der Lee Date: Fri, 4 Sep 2026 13:57:04 +0200 Subject: Removed old submodules --- xorg/.local/share/systemd/user/xbacklightmon.service | 8 -------- xorg/.local/usr/bin/xbacklightmon | 17 ----------------- 2 files changed, 25 deletions(-) delete mode 100644 xorg/.local/share/systemd/user/xbacklightmon.service delete mode 100755 xorg/.local/usr/bin/xbacklightmon (limited to 'xorg') diff --git a/xorg/.local/share/systemd/user/xbacklightmon.service b/xorg/.local/share/systemd/user/xbacklightmon.service deleted file mode 100644 index c603974..0000000 --- a/xorg/.local/share/systemd/user/xbacklightmon.service +++ /dev/null @@ -1,8 +0,0 @@ -[Unit] -Description=Watches /sys/class/backlight/brightness and applies it to xorg-backlight -After=graphical.target -Wants=graphical.target - -[Service] -Type=simple -ExecStart=/home/tom/.local/usr/bin/xbacklightmon diff --git a/xorg/.local/usr/bin/xbacklightmon b/xorg/.local/usr/bin/xbacklightmon deleted file mode 100755 index f5b46c0..0000000 --- a/xorg/.local/usr/bin/xbacklightmon +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -path=/sys/class/backlight/acpi_video0 - -luminance() { - read -r level < "$path"/actual_brightness - factor=$((max / 100)) - printf '%d\n' "$((level / factor))" -} - -read -r max < "$path"/max_brightness - -echo xbacklight -set "$(luminance)" - -inotifywait -me modify --format '' "$path"/actual_brightness | while read; do - echo xbacklight -set "$(luminance)" -done -- cgit v1.2.3