Add dunst config

This commit is contained in:
olari
2018-08-01 02:01:42 +03:00
parent 0be345294c
commit a3d0f85ee5
4 changed files with 56 additions and 9 deletions

View File

@@ -1,19 +1,27 @@
#!/bin/bash
current_volume=$(pamixer --get-volume)
case $1 in
"raise")
pactl set-sink-volume 0 +5%
notify-send $(pamixer --get-volume)
(( current_volume += 5 ))
[[ current_volume -gt 100 ]] && current_volume=100
pamixer --set-volume $current_volume
notify-send -t 250 "VOL: $current_volume"
pkill -RTMIN+1 i3blocks
;;
"lower")
pactl set-sink-volume 0 -5%
notify-send $(pamixer --get-volume)
(( current_volume -= 5 ))
[[ current_volume -lt 0 ]] && current_volume=0
pamixer --set-volume $current_volume
notify-send -t 250 "VOL: $current_volume"
pkill -RTMIN+1 i3blocks
;;
"toggle_mute")
pactl set-sink-mute 0 toggle
notify-send $(pamixer --get-mute)
pamixer --toggle-mute
notify-send -t 300 "MUTE: $(pamixer --get-mute)"
;;
esac

View File

@@ -9,14 +9,14 @@ case $1 in
[[ $current_backlight -gt 100 ]] && current_backlight=100
xbacklight -set $current_backlight
notify-send $current_backlight
notify-send -t 250 "BL: $current_backlight"
;;
"lower")
(( current_backlight -= 5 ))
[[ $current_backlight -lt 5 ]] && current_backlight=1
xbacklight -set $current_backlight
notify-send $current_backlight
notify-send -t 250 "BL: $current_backlight"
;;
esac