summaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/volume
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/statusbar/volume')
-rwxr-xr-x.local/bin/statusbar/volume15
1 files changed, 8 insertions, 7 deletions
diff --git a/.local/bin/statusbar/volume b/.local/bin/statusbar/volume
index ade5b98..ef9fe17 100755
--- a/.local/bin/statusbar/volume
+++ b/.local/bin/statusbar/volume
@@ -1,4 +1,4 @@
-#!/sbin/python3
+#!/usr/bin/python3
import subprocess
import re
import os
@@ -79,14 +79,15 @@ for sink in sinks.values():
if vol is None or mute:
- print("🔇")
+ print("婢 [ Mute ] 0%")
quit(0)
if vol > 70:
- icon = "🔊"
-elif vol < 30:
- icon = "🔈"
+ icon = "墳 "
+elif vol > 30:
+ icon = "ï©¿ "
else:
- icon = "🔉"
+ icon = "奄 "
-print(f"{icon}{vol}%")
+v = vol // 10
+print(f"{icon}[{'*' * v}{' ' * (10 - v)}] {str(vol).rjust(3, ' ')}%")