diff options
| author | kkard2 <[email protected]> | 2024-03-27 16:29:39 +0100 |
|---|---|---|
| committer | kkard2 <[email protected]> | 2024-03-27 16:29:39 +0100 |
| commit | 70b3342bc215ebed405444b65e26684df9b8843b (patch) | |
| tree | a772924253531d9b7de44b3bb6cd2ea1a180aa39 /_linux | |
| parent | 5bd36d7f17aceb323f5c4346086aea51b0921649 (diff) | |
i3status deez nuts
Diffstat (limited to '_linux')
| -rw-r--r-- | _linux/i3/config | 2 | ||||
| -rwxr-xr-x | _linux/i3/i3status_command | 16 | ||||
| -rw-r--r-- | _linux/i3status/config | 39 |
3 files changed, 56 insertions, 1 deletions
diff --git a/_linux/i3/config b/_linux/i3/config index a9bb014..34c599a 100644 --- a/_linux/i3/config +++ b/_linux/i3/config @@ -190,7 +190,7 @@ bindsym $mod+r mode "resize" # Start i3bar to display a workspace bar (plus the system information i3status # finds out, if available) bar { - status_command i3status + status_command ~/.config/i3/i3status_command } new_window 1pixel diff --git a/_linux/i3/i3status_command b/_linux/i3/i3status_command new file mode 100755 index 0000000..96ab2a1 --- /dev/null +++ b/_linux/i3/i3status_command @@ -0,0 +1,16 @@ +#!/usr/bin/bash + +i3status | while : +do + # following text is certainly code + read line + muted="" + + if [[ $(pactl get-source-mute @DEFAULT_SOURCE@ | rg "yes") ]]; + then + muted="MUTED|" + fi + + line="$muted$line" + echo "$line" || exit 1 +done diff --git a/_linux/i3status/config b/_linux/i3status/config new file mode 100644 index 0000000..08f52f1 --- /dev/null +++ b/_linux/i3status/config @@ -0,0 +1,39 @@ +general { + colors = true + color_good = "#a3be8c" + color_degraded = "#ebcb8b" + color_bad = "#bf616a" + interval = 1 + separator = "|" +} + +order += cpu_usage +order += memory +order += "volume master" +order += "volume mic" +order += time + +cpu_usage { + format = "cpu: %usage" +} + +memory { + memory_used_method = classical + format="mem: %used/%total" +} + +volume master { + format = "vol: %volume" + format_muted = "vol: muted (%volume)" + device = "default" + mixer = "Master" + mixer_idx = 0 +} + +volume mic { + format = "mic %volume" + format_muted = "mic muted (%volume)" + device = "default" + mixer = "Rear Mic" + mixer_idx = 0 +} |
