From 308fd99861a1f4ac3f5b87d36abfe8e02df224b0 Mon Sep 17 00:00:00 2001 From: jason Date: Mon, 22 Jul 2019 14:36:09 -0600 Subject: i3bar updates and volume script fix --- i3/.i3status.conf | 9 ++++++++- scripts/bin/notifyvolume | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/i3/.i3status.conf b/i3/.i3status.conf index 3a4b727..3d24f04 100644 --- a/i3/.i3status.conf +++ b/i3/.i3status.conf @@ -28,6 +28,13 @@ ethernet _first_ { battery 0 { format = "%status %percentage %remaining" + format_down = "No battery" + status_chr = "⚡ CHR" + status_bat = "🔋 BAT" + status_unk = "? UNK" + status_full = "☻ FULL" + path = "/sys/class/power_supply/BAT%d/uevent" + low_threshold = 10 } run_watch DHCP { @@ -56,4 +63,4 @@ volume master { device = "default" mixer = "Master" mixer_idx = 0 -} \ No newline at end of file +} diff --git a/scripts/bin/notifyvolume b/scripts/bin/notifyvolume index 0da7337..4b43b00 100755 --- a/scripts/bin/notifyvolume +++ b/scripts/bin/notifyvolume @@ -1,3 +1,3 @@ #!/bin/bash -exec /usr/bin/notify-send -t 1000 -i volume-knob "Volume $(amixer -q | grep -A5 Master | grep '%' | cut -d'[' -f2 | cut -d']' -f1)" +exec amixer set Master $@ | grep "Mono: Playback" | cut -d '[' -f2 | cut -d ']' -f1 | xargs /usr/bin/notify-send -t 500 -i volume-knob -- cgit v1.2.1