Added swap into polybar

This commit is contained in:
Casey 2024-07-29 23:39:45 +03:00
parent 6f1fdf80a8
commit d45b4de9ea
Signed by: hkc
GPG Key ID: F0F6CFE11CDB0960
1 changed files with 6 additions and 8 deletions

View File

@ -34,7 +34,7 @@ foreground = ${colors.foreground}
separator = " "
font-0 = lemon:pixelsize=7
font-1 = xos4 Terminus:pixelsize=9
font-2 = Unifont:pixelsize=9
font-2 = JF Dot Elisa Font 8:pixelsize=6
cursor-click = pointer
cursor-scroll = ns-resize
@ -76,7 +76,7 @@ exec = TZ=Europe/Warsaw date "+[Dia:%I:%M]"
type = internal/memory
interval = 1
format = "[MEM:<label>]"
label = %percentage_used:3%%
label = %percentage_used:3%%|%percentage_swap_used:3%%
[module/cpu]
type = internal/cpu
@ -88,8 +88,6 @@ label = %percentage:3%%
type = internal/fs
interval = 30
mount-0 = /
mount-1 = /mnt/windows
mount-2 = /run/media/hkc/626A60A76A607A25
format-mounted = [<label-mounted>]
label-mounted = %mountpoint%:%percentage_used:2%%
label-warn = %mountpoint%:%percentage_used:2%%
@ -139,14 +137,14 @@ format-disconnected = "[<label-disconnected>]"
[module/net-all]
type = custom/script
exec = ~/.config/polybar/info-speed enp0s25 wlp3s0
exec = ~/.config/polybar/info-speed enp2s0 wlan0
tail = true
[module/net-wlan0]
inherit = module/net-base
label-connected = "w:%essid%:%local_ip%"
format-connected = "[<label-connected>]"
interface = wlp3s0
interface = wlan0
[module/net-wlan1]
inherit = module/net-base
@ -156,7 +154,7 @@ interface = wlan1
[module/net-eth0]
inherit = module/net-base
interface = enp0s25
interface = enp2s0
[module/net-eth1]
inherit = module/net-base
@ -172,7 +170,7 @@ unknown-as-up = true
; GENERIC SETTINGS (i.e volume/brightness/etc)
;==================================================
[module/volume]
type = internal/alsa
type = internal/pulseaudio
format-volume = "[<label-volume>]"
format-muted = "[<label-muted>]"
label-volume = "%percentage:3%%"