summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaumit Dinesan <justsaumit@protonmail.com>2023-12-15 15:08:16 +0530
committerSaumit Dinesan <justsaumit@protonmail.com>2023-12-15 15:08:16 +0530
commitded2e2c86a19a5376734de9521c9dad808293440 (patch)
treecaf0a9bf729977c7e1e27eb4ffda1f27493d8304
parent51a9b58f3aea6ccdf28ad448c4a8e5a69014c80d (diff)
.scripts: bts - using icons for dunst
-rwxr-xr-x.scripts/bts8
1 files changed, 4 insertions, 4 deletions
diff --git a/.scripts/bts b/.scripts/bts
index 9722fce..445bdcb 100755
--- a/.scripts/bts
+++ b/.scripts/bts
@@ -26,8 +26,8 @@ case $option in
esac;;
"Disconnect")
bluetoothctl power off && sudo -A systemctl stop bluetooth
- dunstify "Disconnected" "Bluetooth Device is disconnected" ||
- dunstify "Unable to disconnect!" ;;
+ dunstify "Disconnected" "Bluetooth Device is disconnected" -i bluetoothb ||
+ dunstify "Unable to disconnect!" -i bluetooth ;;
"Change profile")
past_profile=$(pactl list | grep "Active Profile" | sed '2p;d' | cut -d ' ' -f 3)
profile=$(echo -e "a2dp_sink(pure audio output)\nhandsfree_head_unit(inferior audio output + mic enable)" | tofi --prompt-text "Choose the profile for your sound card")
@@ -36,10 +36,10 @@ case $option in
case $profile in
"a2dp_sink(pure audio output)")
pactl set-card-profile $cardindex a2dp-sink &&
- dunstify "Switched card profile" "from $past_profile to $profile" -i audio-headphones;;
+ dunstify "Switched card profile" "from $past_profile to $profile" -i audio-headphones ;;
"handsfree_head_unit(inferior audio output + mic enable)")
pactl set-card-profile $cardindex headset-head-unit &&
- dunstify "Switched card profile" "from $past_profile to $profile" -i audio-headset;;
+ dunstify "Switched card profile" "from $past_profile to $profile" -i audio-headset ;;
esac;;
"Reset pipewire")
systemctl --user restart wireplumber pipewire pipewire-pulse