Changed the volume script, added a keybinding for KAddressBook and deleted the old sxhkd config file
parent
7d9b23daa8
commit
e685824bac
|
@ -70,6 +70,10 @@ super + e
|
|||
super + m
|
||||
kmail
|
||||
|
||||
# KAddressBook
|
||||
super + alt + m
|
||||
kaddressbook
|
||||
|
||||
# ARandr
|
||||
super + p
|
||||
arandr
|
||||
|
|
|
@ -1,11 +0,0 @@
|
|||
super + t
|
||||
konsole
|
||||
|
||||
super + c
|
||||
rofi -show drun
|
||||
|
||||
super + shift + r
|
||||
pkill -USR1 -x sxhkd
|
||||
|
||||
super + shift + e
|
||||
bspc wm -r
|
|
@ -6,11 +6,11 @@
|
|||
# $./volume.sh mute
|
||||
|
||||
function get_volume {
|
||||
amixer get Master | grep '%' | head -n 1 | cut -d '[' -f 2 | cut -d '%' -f 1
|
||||
pulseaudio-control output | awk '{ print $1 }'
|
||||
}
|
||||
|
||||
function is_mute {
|
||||
amixer get Master | grep '%' | grep -oE '[^ ]+$' | grep off > /dev/null
|
||||
if [[ $(pulseaudio-control output) == *"%{F"* ]]; then echo "a"; fi
|
||||
}
|
||||
|
||||
function send_notification {
|
||||
|
|
Reference in New Issue