summaryrefslogtreecommitdiff
path: root/scripts/old/brightness
blob: a7294fbfade0bf4869fbd081980f49d6324b0e0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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/\..*$//')%"

Generated with cgit - Back to sebastiano.tronto.net