aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2022-10-09 09:38:53 +1100
committerYuchen Pei <hi@ypei.me>2022-10-09 09:38:53 +1100
commit1a5c7f6e4f0a6f7b4aa662ad0d9b1fca2bc58ac4 (patch)
tree90d41b6dc4bb3d967b3d293acef2c57a24e4953a
parentb0406ca48a2e66a663338783cc9d2768b93cecf6 (diff)
adding active profile indication
-rw-r--r--pactl.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/pactl.el b/pactl.el
index 1e71c55..a105fda 100644
--- a/pactl.el
+++ b/pactl.el
@@ -32,9 +32,13 @@
(alist-get 'id card)
(alist-get 'id profile))
'invisible t)
- (format "%s/%s%s"
+ (format "%s/%s%s%s"
(alist-get 'description card)
(alist-get 'description profile)
+ (if (equal (alist-get 'active-profile card)
+ (alist-get 'id profile))
+ " (Active)"
+ "")
(if (alist-get 'available profile)
""
" (Unavailable)"))))