diff options
| author | Andrew <saintruler@gmail.com> | 2020-08-26 04:59:24 +0400 |
|---|---|---|
| committer | Andrew <saintruler@gmail.com> | 2020-08-26 04:59:24 +0400 |
| commit | 70825f19ff5c8bd78780265ece1fc2c00a026f84 (patch) | |
| tree | ca06eb21b52147f7ba6751e106c8c3648232a3c0 /.local/bin/statusbar/volume | |
| parent | 75d736925fac9ab42c6015f2930a82c2eeee3235 (diff) | |
Changed icons in status bar scripts and added tmux to autostart in tty/terminal
Diffstat (limited to '.local/bin/statusbar/volume')
| -rwxr-xr-x | .local/bin/statusbar/volume | 15 |
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, ' ')}%") |