aboutsummaryrefslogtreecommitdiff
path: root/brl
diff options
context:
space:
mode:
authorInqiyad Sabr <sabr@ariamath.xyz>2025-10-16 21:56:07 +0600
committerInqiyad Sabr <sabr@ariamath.xyz>2025-10-16 21:56:07 +0600
commitcb888d0a905179ea25e5b860b1a1a31f8de64e13 (patch)
treed21816f7c69db653232e2deb3f3bdc5afc7f558e /brl
parent23f3b189a9b14b5fb0cb92165add3c7cbe471823 (diff)
renamed to sbc
Diffstat (limited to 'brl')
-rwxr-xr-xbrl33
1 files changed, 0 insertions, 33 deletions
diff --git a/brl b/brl
deleted file mode 100755
index 9e0cb69..0000000
--- a/brl
+++ /dev/null
@@ -1,33 +0,0 @@
-#!/bin/sh
-# ====================================
-# Program : brl (brightness control)
-# License : The Unlicense
-# Author : sabr@ariamath.xyz
-# Version : 0.0.1
-# ====================================
-# Honestly, brightnessctl is bloat.
-# ====================================
-device="$(find /sys/class/backlight/*)"
-fmax="$device/max_brightness"
-fnow="$device/brightness"
-m="$(cat "$fmax")"
-c="$(cat "$fnow")"
-case "$1" in
- "-s") printf "%d" $(($2 * m / 100)) > "$fnow";;
- "-i") printf "%d" $((c + $2 * m / 100)) > "$fnow";;
- "-d") printf "%d" $((c - $2 * m / 100)) > "$fnow";;
- "-v")
- printf "brl v0.0.1\n"
- printf "A simple brightness control program\n"
- ;;
- "-h")
- printf "brl [options] [value]\n"
- printf " -s set brightness %%\n"
- printf " -i increase brightness %%\n"
- printf " -d decrease brightness %%\n"
- ;;
- *)
- printf "Current brightness: %d%% (%d)\n"\
- $((c * 100 / m)) "$c"
- ;;
-esac