sway/py3status: fix indentation, add ram, add icons, use JetBrainsMono

This commit is contained in:
Kevin Baensch 2025-07-17 16:17:41 +02:00
parent cc5d791842
commit 18ff706247
Signed by: derped
SSH key fingerprint: SHA256:8/FSu/lmp3c1Z17Gml06JRIEHtDjhwdd7g6pBaHQWBc
2 changed files with 44 additions and 37 deletions

View file

@ -7,11 +7,11 @@
# If the above line is not correctly displayed, fix your editor first! # If the above line is not correctly displayed, fix your editor first!
general { general {
# output_format = "dzen2"
colors = true colors = true
} }
order += "group network" order += "group network"
order += "sysdata mem"
order += "disk /" order += "disk /"
order += "disk /persist/" order += "disk /persist/"
order += "backlight" order += "backlight"
@ -40,8 +40,9 @@ group network {
group tz { group tz {
interval = 1 interval = 1
format = "{output}" format = "{output}"
fixed_width = True
button_next = 1 button_next = 1
button_previous = 2 button_prev = 3
tztime local { tztime local {
format = "GER %Y-%m-%d %H:%M:%S" format = "GER %Y-%m-%d %H:%M:%S"
timezone = "Europe/Berlin" timezone = "Europe/Berlin"
@ -62,7 +63,7 @@ group tz {
timezone = "PST8PDT" timezone = "PST8PDT"
} }
uptime { uptime {
format = "{weeks}:{days}:{hours}:{minutes}:{seconds}" format = "Uptime: {weeks}:{days}:{hours}:{minutes}:{seconds}"
} }
} }
@ -84,13 +85,18 @@ volume_status {
} }
load { load {
format = "%1min" format = "󰍛 %1min"
}
sysdata mem {
cache_timeout = 5
format = "[\?color=mem  RAM: {mem_used_percent}%]"
} }
disk "/" { disk "/" {
format = "%avail" format ="%avail"
} }
disk "/persist/" { disk "/persist/" {
format = "%avail" format = "%avail"
} }

View file

@ -302,6 +302,7 @@ pkgs.writeText "config" ''
# Read `man 5 sway-bar` for more information about this section. # Read `man 5 sway-bar` for more information about this section.
bar { bar {
position top position top
font pango:JetBrainsMono Nerd Font 10
# When the status_command prints a new line to stdout, swaybar updates. # When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time. # The default just shows the current date and time.