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
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

View file

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

View file

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