sway/py3status: fix indentation, add ram, add icons, use JetBrainsMono
This commit is contained in:
parent
cc5d791842
commit
18ff706247
2 changed files with 44 additions and 37 deletions
|
@ -7,11 +7,11 @@
|
|||
# If the above line is not correctly displayed, fix your editor first!
|
||||
|
||||
general {
|
||||
# output_format = "dzen2"
|
||||
colors = true
|
||||
colors = true
|
||||
}
|
||||
|
||||
order += "group network"
|
||||
order += "sysdata mem"
|
||||
order += "disk /"
|
||||
order += "disk /persist/"
|
||||
order += "backlight"
|
||||
|
@ -38,59 +38,65 @@ group network {
|
|||
}
|
||||
|
||||
group tz {
|
||||
interval = 1
|
||||
format = "{output}"
|
||||
button_next = 1
|
||||
button_previous = 2
|
||||
tztime local {
|
||||
format = "GER %Y-%m-%d %H:%M:%S"
|
||||
timezone = "Europe/Berlin"
|
||||
}
|
||||
interval = 1
|
||||
format = "{output}"
|
||||
fixed_width = True
|
||||
button_next = 1
|
||||
button_prev = 3
|
||||
tztime local {
|
||||
format = "GER %Y-%m-%d %H:%M:%S"
|
||||
timezone = "Europe/Berlin"
|
||||
}
|
||||
|
||||
tztime PRC {
|
||||
format = "PRC %Y-%m-%d %H:%M:%S"
|
||||
timezone = "Asia/Shanghai"
|
||||
}
|
||||
tztime PRC {
|
||||
format = "PRC %Y-%m-%d %H:%M:%S"
|
||||
timezone = "Asia/Shanghai"
|
||||
}
|
||||
|
||||
tztime UTC {
|
||||
format = "UTC %Y-%m-%d %H:%M:%S"
|
||||
timezone = "Etc/UTC"
|
||||
}
|
||||
tztime UTC {
|
||||
format = "UTC %Y-%m-%d %H:%M:%S"
|
||||
timezone = "Etc/UTC"
|
||||
}
|
||||
|
||||
tztime PST {
|
||||
format = "PST %Y-%m-%d %H:%M:%S"
|
||||
timezone = "PST8PDT"
|
||||
}
|
||||
tztime PST {
|
||||
format = "PST %Y-%m-%d %H:%M:%S"
|
||||
timezone = "PST8PDT"
|
||||
}
|
||||
uptime {
|
||||
format = "{weeks}:{days}:{hours}:{minutes}:{seconds}"
|
||||
format = "Uptime: {weeks}:{days}:{hours}:{minutes}:{seconds}"
|
||||
}
|
||||
}
|
||||
|
||||
battery 0 {
|
||||
format = "%status %percentage %remaining %emptytime"
|
||||
format_down = "No battery"
|
||||
status_chr = "⚡ CHR"
|
||||
status_bat = "🔋 BAT"
|
||||
status_unk = "? UNK"
|
||||
status_full = "☻ FULL"
|
||||
path = "/sys/class/power_supply/BAT%d/uevent"
|
||||
low_threshold = 10
|
||||
format = "%status %percentage %remaining %emptytime"
|
||||
format_down = "No battery"
|
||||
status_chr = "⚡ CHR"
|
||||
status_bat = "🔋 BAT"
|
||||
status_unk = "? UNK"
|
||||
status_full = "☻ FULL"
|
||||
path = "/sys/class/power_supply/BAT%d/uevent"
|
||||
low_threshold = 10
|
||||
}
|
||||
|
||||
volume_status {
|
||||
button_up = 4
|
||||
button_down = 5
|
||||
button_mute = 2
|
||||
button_up = 4
|
||||
button_down = 5
|
||||
button_mute = 2
|
||||
}
|
||||
|
||||
load {
|
||||
format = "%1min"
|
||||
format = " %1min"
|
||||
}
|
||||
|
||||
sysdata mem {
|
||||
cache_timeout = 5
|
||||
format = "[\?color=mem RAM: {mem_used_percent}%]"
|
||||
}
|
||||
|
||||
disk "/" {
|
||||
format = "%avail"
|
||||
format =" %avail"
|
||||
}
|
||||
|
||||
disk "/persist/" {
|
||||
format = "%avail"
|
||||
format = " %avail"
|
||||
}
|
||||
|
|
|
@ -302,6 +302,7 @@ pkgs.writeText "config" ''
|
|||
# Read `man 5 sway-bar` for more information about this section.
|
||||
bar {
|
||||
position top
|
||||
font pango:JetBrainsMono Nerd Font 10
|
||||
|
||||
# When the status_command prints a new line to stdout, swaybar updates.
|
||||
# The default just shows the current date and time.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue