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"
@ -38,59 +38,65 @@ group network {
} }
group tz { group tz {
interval = 1 interval = 1
format = "{output}" format = "{output}"
button_next = 1 fixed_width = True
button_previous = 2 button_next = 1
tztime local { button_prev = 3
format = "GER %Y-%m-%d %H:%M:%S" tztime local {
timezone = "Europe/Berlin" format = "GER %Y-%m-%d %H:%M:%S"
} timezone = "Europe/Berlin"
}
tztime PRC { tztime PRC {
format = "PRC %Y-%m-%d %H:%M:%S" format = "PRC %Y-%m-%d %H:%M:%S"
timezone = "Asia/Shanghai" timezone = "Asia/Shanghai"
} }
tztime UTC { tztime UTC {
format = "UTC %Y-%m-%d %H:%M:%S" format = "UTC %Y-%m-%d %H:%M:%S"
timezone = "Etc/UTC" timezone = "Etc/UTC"
} }
tztime PST { tztime PST {
format = "PST %Y-%m-%d %H:%M:%S" format = "PST %Y-%m-%d %H:%M:%S"
timezone = "PST8PDT" timezone = "PST8PDT"
} }
uptime { uptime {
format = "{weeks}:{days}:{hours}:{minutes}:{seconds}" format = "Uptime: {weeks}:{days}:{hours}:{minutes}:{seconds}"
} }
} }
battery 0 { battery 0 {
format = "%status %percentage %remaining %emptytime" format = "%status %percentage %remaining %emptytime"
format_down = "No battery" format_down = "No battery"
status_chr = "⚡ CHR" status_chr = "⚡ CHR"
status_bat = "🔋 BAT" status_bat = "🔋 BAT"
status_unk = "? UNK" status_unk = "? UNK"
status_full = "☻ FULL" status_full = "☻ FULL"
path = "/sys/class/power_supply/BAT%d/uevent" path = "/sys/class/power_supply/BAT%d/uevent"
low_threshold = 10 low_threshold = 10
} }
volume_status { volume_status {
button_up = 4 button_up = 4
button_down = 5 button_down = 5
button_mute = 2 button_mute = 2
} }
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.