Switching to built-in qtile's notification system.

This commit is contained in:
Bartek Stalewski 2022-11-06 16:27:52 +01:00
parent 58e39e049a
commit f340ed7c15
5 changed files with 10 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 2000 -u critical "ﳌ 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 -u critical "婢 no device to switch" ;;
esac
else
case "$chosen" in