summaryrefslogtreecommitdiff
path: root/scripts/old/brightness
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/old/brightness')
-rwxr-xr-xscripts/old/brightness16
1 files changed, 16 insertions, 0 deletions
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 @@
1#!/bin/sh
2
3# Increase / decrease brightness, and pops up a notification
4# Requires: xbacklight, a notification program such as herbe or notify-send
5# Usage: brightness {inc|dec} n
6
7# ksh completion
8# set -A complete_brightness_1 inc dec
9# set -A complete_brightness_2 5
10
11#notify="notify-send"
12notify="herbe"
13
14pkill herbe # comment this too if not using herbe
15
16xbacklight -$1 $2 && $notify "Brightness: $(xbacklight | sed 's/\..*$//')%"

Generated with cgit - Back to sebastiano.tronto.net