Revert: I've found a way to keep dunst and notify about yubikey in the statusbar.
This commit is contained in:
parent
b45a8b3c70
commit
ee352e389e
5 changed files with 16 additions and 21 deletions
|
@ -28,7 +28,7 @@ set_input() {
|
|||
set_bt_profile() {
|
||||
bt_sink=$(pactl list cards | awk -F'"' '/device.name.*bluez/ {print $2}')
|
||||
[ -z "${bt_sink}" ] &&
|
||||
{ notify-send -t 1000 "ﳌ no headphones connected"; exit; }
|
||||
{ dunstify -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
|
||||
*) notify-send -t 1000 -t 1000 "婢 no device to switch" ;;
|
||||
*) dunstify -u critical "婢 no device to switch" ;;
|
||||
esac
|
||||
else
|
||||
case "$chosen" in
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue