You are not logged in.

#1 2023-12-02 01:58:23

redshoe
Member
Registered: 2015-12-16
Posts: 254

Is there a way to put swap stataus in i3status bar?

I can't seem to find a way to put swap status, usage/total, in i3status bar. Does anyone know about this?

Thanks.

Offline

#2 2023-12-02 13:22:55

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Is there a way to put swap stataus in i3status bar?

Doesn't look like the "Memory" module has a swap option so I think you'll have to wrap a script around it that parses /proc/meminfo for SwapTotal & SwapFree to print the information you want.

See https://man.archlinux.org/man/i3status. … H_I3STATUS for a trivial example of this.


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB