gianmarco
/
dotfiles
Archived
1
0
Fork 0

Changed the volume script, added a keybinding for KAddressBook and deleted the old sxhkd config file

master
gianmarco 2022-04-30 20:41:15 +02:00
parent 7d9b23daa8
commit e685824bac
3 changed files with 6 additions and 13 deletions

View File

@ -70,6 +70,10 @@ super + e
super + m
kmail
# KAddressBook
super + alt + m
kaddressbook
# ARandr
super + p
arandr

View File

@ -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

View File

@ -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 {