From 70825f19ff5c8bd78780265ece1fc2c00a026f84 Mon Sep 17 00:00:00 2001 From: Andrew Date: Wed, 26 Aug 2020 04:59:24 +0400 Subject: Changed icons in status bar scripts and added tmux to autostart in tty/terminal --- .local/bin/statusbar/volume | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to '.local/bin/statusbar/volume') 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, ' ')}%") -- cgit v1.2.3