diff options
| author | jason | 2019-07-22 14:36:09 -0600 |
|---|---|---|
| committer | jason | 2019-07-22 14:36:09 -0600 |
| commit | 308fd99861a1f4ac3f5b87d36abfe8e02df224b0 (patch) | |
| tree | 4938ee17ac6e2aca32bb348e7a10e52719d50ee1 | |
| parent | 2cecaefc93500685a656bde869eeab130432bb40 (diff) | |
| download | dotfiles-308fd99861a1f4ac3f5b87d36abfe8e02df224b0.tar.gz dotfiles-308fd99861a1f4ac3f5b87d36abfe8e02df224b0.zip | |
i3bar updates and volume script fix
| -rw-r--r-- | i3/.i3status.conf | 9 | ||||
| -rwxr-xr-x | 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_ { | |||
| 28 | 28 | ||
| 29 | battery 0 { | 29 | battery 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 | ||
| 33 | run_watch DHCP { | 40 | run_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 | ||
| 3 | exec /usr/bin/notify-send -t 1000 -i volume-knob "Volume $(amixer -q | grep -A5 Master | grep '%' | cut -d'[' -f2 | cut -d']' -f1)" | 3 | exec amixer set Master $@ | grep "Mono: Playback" | cut -d '[' -f2 | cut -d ']' -f1 | xargs /usr/bin/notify-send -t 500 -i volume-knob |