aboutsummaryrefslogtreecommitdiff
path: root/brightness
diff options
context:
space:
mode:
Diffstat (limited to 'brightness')
-rwxr-xr-xbrightness9
1 files changed, 7 insertions, 2 deletions
diff --git a/brightness b/brightness
index 46fd0a8..b2ff43a 100755
--- a/brightness
+++ b/brightness
@@ -1,7 +1,12 @@
1#!/bin/sh 1#!/bin/sh
2 2
3# Increase / decrease brightness, and pops up a notification 3# Increase / decrease brightness, and pops up a notification
4# Requires: xbacklight, notify-send 4# Requires: xbacklight, a notification program such as herbe or notify-send
5# Usage: brightness {inc|dec} n 5# Usage: brightness {inc|dec} n
6 6
7xbacklight -$1 $2 && notify-send "Brightness: $(xbacklight | sed 's/\..*$//')%" 7#notify="notify-send"
8notify="herbe"
9
10pkill herbe # comment this too if not using herbe
11
12xbacklight -$1 $2 && $notify "Brightness: $(xbacklight | sed 's/\..*$//')%"

Generated with cgit - Back to sebastiano.tronto.net