aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjason2019-07-22 14:36:09 -0600
committerjason2019-07-22 14:36:09 -0600
commit308fd99861a1f4ac3f5b87d36abfe8e02df224b0 (patch)
tree4938ee17ac6e2aca32bb348e7a10e52719d50ee1
parent2cecaefc93500685a656bde869eeab130432bb40 (diff)
downloaddotfiles-308fd99861a1f4ac3f5b87d36abfe8e02df224b0.tar.gz
dotfiles-308fd99861a1f4ac3f5b87d36abfe8e02df224b0.zip
i3bar updates and volume script fix
-rw-r--r--i3/.i3status.conf9
-rwxr-xr-xscripts/bin/notifyvolume2
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_ {
28 28
29battery 0 { 29battery 0 {
30 format = "%status %percentage %remaining" 30 format = "%status %percentage %remaining"
31 format_down = "No battery"
32 status_chr = "⚡ CHR"
33 status_bat = "🔋 BAT"
34 status_unk = "? UNK"
35 status_full = "☻ FULL"
36 path = "/sys/class/power_supply/BAT%d/uevent"
37 low_threshold = 10
31} 38}
32 39
33run_watch DHCP { 40run_watch DHCP {
@@ -56,4 +63,4 @@ volume master {
56 device = "default" 63 device = "default"
57 mixer = "Master" 64 mixer = "Master"
58 mixer_idx = 0 65 mixer_idx = 0
59} \ No newline at end of file 66}
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 @@
1#!/bin/bash 1#!/bin/bash
2 2
3exec /usr/bin/notify-send -t 1000 -i volume-knob "Volume $(amixer -q | grep -A5 Master | grep '%' | cut -d'[' -f2 | cut -d']' -f1)" 3exec amixer set Master $@ | grep "Mono: Playback" | cut -d '[' -f2 | cut -d ']' -f1 | xargs /usr/bin/notify-send -t 500 -i volume-knob