From 60052659b98832c78c902e4f27ecee2663d8e913 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 6 May 2026 08:30:49 +0200 Subject: Added scripts --- scripts/old/brightness | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 scripts/old/brightness (limited to 'scripts/old/brightness') diff --git a/scripts/old/brightness b/scripts/old/brightness new file mode 100755 index 0000000..a7294fb --- /dev/null +++ b/scripts/old/brightness @@ -0,0 +1,16 @@ +#!/bin/sh + +# Increase / decrease brightness, and pops up a notification +# Requires: xbacklight, a notification program such as herbe or notify-send +# Usage: brightness {inc|dec} n + +# ksh completion +# set -A complete_brightness_1 inc dec +# set -A complete_brightness_2 5 + +#notify="notify-send" +notify="herbe" + +pkill herbe # comment this too if not using herbe + +xbacklight -$1 $2 && $notify "Brightness: $(xbacklight | sed 's/\..*$//')%" -- cgit v1.3