colors
This commit is contained in:
parent
4ef0933a01
commit
d41699b79e
2 changed files with 4 additions and 4 deletions
|
@ -3,13 +3,13 @@
|
|||
down() {
|
||||
brightnessctl set 5%-
|
||||
brightnessctl=$(brightnessctl | grep -oP "(\d+(\.\d+)?(?=%))")
|
||||
notify-send -a "Brightness" "Decreasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightnessctl
|
||||
notify-send -a "Brightness" "Decreasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightnessctl -u low
|
||||
}
|
||||
|
||||
up() {
|
||||
brightnessctl set 5%+
|
||||
brightnessctl=$(brightnessctl | grep -oP "(\d+(\.\d+)?(?=%))")
|
||||
notify-send -a "Brightness" "Increasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightnessctl
|
||||
notify-send -a "Brightness" "Increasing to $brightnessctl%" -h int:value:"$brightnessctl" -i ~/icons/brightness.png -h string:x-canonical-private-synchronous:brightnessctl -u low
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
|
|
@ -4,7 +4,7 @@ down() {
|
|||
pamixer -d 2
|
||||
volume=$(pamixer --get-volume)
|
||||
[$volume -gt 0 ] && volume=`expr $volume`
|
||||
notify-send -a "Volume" "Decreasing to $volume%" -h int:value:"$volume" -i ~/icons/low-volume.png -h string:x-canonical-private-synchronous:volume
|
||||
notify-send -a "Volume" "Decreasing to $volume%" -h int:value:"$volume" -i ~/icons/low-volume.png -h string:x-canonical-private-synchronous:volume -u low
|
||||
canberra-gtk-play -i audio-volume-change -d "changevolume"
|
||||
}
|
||||
|
||||
|
@ -12,7 +12,7 @@ up() {
|
|||
pamixer -i 2
|
||||
volume=$(pamixer --get-volume)
|
||||
[ $volume -lt 1000 ] && volume=`expr $volume`
|
||||
notify-send -a "Volume" "Increasing to $volume%" -h int:value:"$volume" -i ~/icons/high-volume.png -h string:x-canonical-private-synchronous:volume
|
||||
notify-send -a "Volume" "Increasing to $volume%" -h int:value:"$volume" -i ~/icons/high-volume.png -h string:x-canonical-private-synchronous:volume -u low
|
||||
canberra-gtk-play -i audio-volume-change -d "changevolume"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue