Switching from dunst to qtile's notifications in the status bar.

This commit is contained in:
Bartek Stalewski 2022-10-18 17:13:21 +02:00
parent 0f49c1f23b
commit b45a8b3c70
5 changed files with 17 additions and 6 deletions

View file

@ -28,7 +28,7 @@ set_input() {
set_bt_profile() {
bt_sink=$(pactl list cards | awk -F'"' '/device.name.*bluez/ {print $2}')
[ -z "${bt_sink}" ] &&
{ dunstify -u critical "🎧 no headphones connected"; exit; }
{ notify-send -t 1000 "ﳌ no headphones connected"; exit; }
profile_chosen=$(printf "profile mSBC\\nprofile LDAC\\n$div\\nback\\nexit" | dmenu -c -l 5 -i)
case "$profile_chosen" in
back) show_current ;;
@ -47,7 +47,7 @@ show_current() {
chosen=$(printf "Output: $def_snk\\nInput: $def_src" | dmenu -c -l 2)
if [ "$1" = "no_switch" ]; then
case "$chosen" in
*) dunstify -u critical "🔊 no device to switch" ;;
*) notify-send -t 1000 -t 1000 "婢 no device to switch" ;;
esac
else
case "$chosen" in