polybar: add back disk module

I am using my own compiled version of polybar.
This commit is contained in:
Vincent Bernat 2021-07-11 11:25:56 +02:00
parent fdbfd3c68c
commit b25442dfd9
3 changed files with 22 additions and 21 deletions

View file

@ -35,6 +35,7 @@ sources on [GitHub](https://github.com/vincentbernat/vbeterm).
## Requirements ## Requirements
Required Debian packages to make everything work can be found in my Required Debian packages to make everything work can be found in my
[Puppet configuration][]. [Puppet configuration][]. Also, some daemons may be compiled from git
HEAD (`dunst` and `polybar`) to get access to some features.
[Puppet configuration]: https://github.com/vincentbernat/puppet-workstation/blob/master/local-modules/desktop/manifests/i3.pp [Puppet configuration]: https://github.com/vincentbernat/puppet-workstation/blob/master/local-modules/desktop/manifests/i3.pp

View file

@ -31,11 +31,11 @@ modules-center = date
[bar/alone] [bar/alone]
inherit = bar/common inherit = bar/common
modules-right = cpu memory brightness battery ethernet wlan pulseaudio modules-right = cpu memory brightness battery ethernet wlan disk pulseaudio
[bar/primary] [bar/primary]
inherit = bar/common inherit = bar/common
modules-right = cpu memory brightness battery ethernet wlan pulseaudio modules-right = cpu memory brightness battery ethernet wlan disk pulseaudio
[bar/secondary] [bar/secondary]
inherit = bar/common inherit = bar/common
@ -63,23 +63,23 @@ label-urgent = %name%
label-urgent-background = #a00000 label-urgent-background = #a00000
label-urgent-padding = 1 label-urgent-padding = 1
# Not supported yet. Wait for 3.6.0 to get the warn stuff. # This needs 3.6+
# [module/disk] [module/disk]
# type = internal/fs type = internal/fs
# mount-0 = / mount-0 = /
# mount-1 = /home mount-1 = /home
# mount-2 = /var mount-2 = /var
# mount-3 = /tmp mount-3 = /tmp
# mount-4 = /var/lib/systems mount-4 = /var/lib/systems
# mount-5 = /boot mount-5 = /boot
# warn-percentage = 80 warn-percentage = 94
# fixed-values = true fixed-values = true
# interval = 15 interval = 30
# format-unmounted = format-unmounted =
# format-mounted = format-mounted =
# format-warn = <label-warn> format-warn = <label-warn>
# format-warn-foreground = #ff0000 format-warn-foreground = #ff0000
# label-warn =  %mountpoint%: %percentage_used%% label-warn =  %mountpoint%: %percentage_used%%
[module/brightness] [module/brightness]
type = internal/backlight type = internal/backlight

View file

@ -4,5 +4,5 @@ PartOf=graphical-session.target
[Service] [Service]
ExecStart=%h/.config/i3/bin/polybar ExecStart=%h/.config/i3/bin/polybar
ExecStop=/usr/bin/polybar-msg cmd quit ExecStop=%h/.local/bin/polybar-msg cmd quit
Restart=on-failure Restart=on-failure