From 292121f65eb2ab694a7f879f0fad0880624c1d2b Mon Sep 17 00:00:00 2001 From: speedie Date: Fri, 14 Apr 2023 12:39:56 +0200 Subject: [PATCH] bold --- src/speedwm-btctrl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/speedwm-btctrl b/src/speedwm-btctrl index 1eeee4a..cf7b73d 100755 --- a/src/speedwm-btctrl +++ b/src/speedwm-btctrl @@ -20,7 +20,7 @@ NOTIFY_DISCONNECT() { SEND_NOTIF " Disconnected" " Disconnected from ${SEL NOTIFY_REMOVE() { SEND_NOTIF " Removed" " Removed device ${SELDEVICE}!"; } # Misc functions -LIST_OPTIONS() { SELDEVICE_ACTION="$(printf -- "-- Options --\nConnect\nDisconnect\n-- Toggle --\nPair\nRemove\nTrust\nUntrust\n‎\nAbout\nExit" | sed "s/-e //g" | $RUNLAUNCHER -g 1 -l 20 -p "What do you want to do with this device?" | awk '{ print $1 }')"; } +LIST_OPTIONS() { SELDEVICE_ACTION="$(printf -- "Options\nConnect\nDisconnect\nToggle\nPair\nRemove\nTrust\nUntrust\n‎\nAbout\nExit" | sed "s/-e //g" | $RUNLAUNCHER -g 1 -l 20 -p "What do you want to do with this device?" | awk '{ print $1 }')"; } ABOUT() { printf -- "speedwm-btctrl\nspmenu bluez frontend\n‎\nVersion %s\n" "$([ -e "/usr/share/speedwm/speedwm-extras-version" ] && cat /usr/share/speedwm/speedwm-extras-version || printf "1.9")" | $RUNLAUNCHER -l 40 -g 1 -p 'About'; pkill bluetoothctl; exit 0; } SEND_NOTIF() { [ "$NOTIF_SYSTEM" = "dnote" ] && command -v dnote && [ ! -z "$*" ] && printf "$2\n" | dnote -loc 4 && exit 1 || command -v notify-send && notify-send "$1" "$2" > /dev/null; }