From 301eb176f0a56e1d8dbbd90f78eabcf0062cde76 Mon Sep 17 00:00:00 2001
From: Luca Bilke <luca@bil.ke>
Date: Wed, 9 Oct 2024 17:31:38 +0200
Subject: [PATCH] sb-task: shorten status block

---
 common/.local/libexec/statusbar/sb-task | 28 ++++++++++++-------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/common/.local/libexec/statusbar/sb-task b/common/.local/libexec/statusbar/sb-task
index 946a8cae..0e6f6b85 100755
--- a/common/.local/libexec/statusbar/sb-task
+++ b/common/.local/libexec/statusbar/sb-task
@@ -3,24 +3,24 @@
 
 icon=󰄵
 
-get_context() {
-	task context show | awk "NR==1 { gsub(\"'\", \"\"); print \$2 }"
-}
+# get_context() {
+#     task context show | awk "NR==1 { gsub(\"'\", \"\"); print \$2 }"
+# }
 
 get_active() {
-	num_active=$(task export active | jq length)
+    num_active=$(task export active | jq length)
 
-	[ "$num_active" = 0 ] && {
-		echo "No active task"
-		return
-	}
+    [ "$num_active" = 0 ] && {
+        echo "No active task"
+        return
+    }
 
-	[ "$num_active" -gt 1 ] && {
-		echo "$num_active active tasks"
-		return
-	}
+    [ "$num_active" -gt 1 ] && {
+        echo "$num_active active tasks"
+        return
+    }
 
-	task export active | jq -r '.[0].description'
+    task export active | jq -r '.[0].description'
 }
 
-printf "%s %s: %s\n" "$icon" "$(get_context)" "$(get_active)"
+printf "%s %s\n" "$icon" "$(get_active)"