Add dunst config
This commit is contained in:
40
.config/dunst/dunstrc
Normal file
40
.config/dunst/dunstrc
Normal file
@@ -0,0 +1,40 @@
|
||||
[global]
|
||||
geometry = "0x5-50+50"
|
||||
transparency = 20
|
||||
|
||||
padding = 4
|
||||
horizontal_padding = 4
|
||||
frame_width = 2
|
||||
frame_color = "#aaaaaa"
|
||||
alignment = center
|
||||
font = DejaVu Sans Mono 9
|
||||
|
||||
sort = no
|
||||
markup = no
|
||||
|
||||
idle_threshold = no
|
||||
show_age_threshold = -1
|
||||
history_length = 0
|
||||
|
||||
icon_path = /usr/share/icons/gnome/16x16/status/:/usr/share/icons/gnome/16x16/devices/
|
||||
|
||||
|
||||
indicate_hidden = no
|
||||
stack_duplicates = false
|
||||
hide_duplicate_count = true
|
||||
|
||||
[urgency_low]
|
||||
background = "#282A36"
|
||||
foreground = "#F8F8F2"
|
||||
timeout = 10
|
||||
|
||||
[urgency_normal]
|
||||
background = "#282A36"
|
||||
foreground = "#F8F8F2"
|
||||
timeout = 10
|
||||
|
||||
[urgency_critical]
|
||||
background = "#282A36"
|
||||
foreground = "#F8F8F2"
|
||||
frame_color = "#ff0000"
|
||||
timeout = 0
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user