sway-bar: use i3status-rs

This commit is contained in:
Konstantin Koslowski 2020-12-18 15:27:40 +01:00
parent 5d3e9a8c28
commit cbca4939dd
2 changed files with 49 additions and 8 deletions

17
config
View file

@ -194,15 +194,16 @@ bindsym $mod+r mode "resize"
# Read `man 5 sway-bar` for more information about this section.
bar {
position top
# When the status_command prints a new line to stdout, swaybar updates.
# The default just shows the current date and time.
status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
status_command i3status-rs $HOME/.config/sway/i3status.toml
font "Cascadia Code PL Regular 11"
colors {
statusline #ffffff
background #323232
inactive_workspace #32323200 #32323200 #5c5c5c
separator #666666
background #222222
statusline #dddddd
focused_workspace #0088CC #0088CC #ffffff
active_workspace #333333 #333333 #ffffff
inactive_workspace #333333 #333333 #888888
urgent_workspace #2f343a #900000 #ffffff
}
}

40
i3status.toml Normal file
View file

@ -0,0 +1,40 @@
theme = "slick"
icons = "awesome5"
[[block]]
block = "cpu"
interval = 1
format = "{barchart} {utilization}%"
[[block]]
block = "memory"
format_mem = "{Mug}/{MTg}GB ({Mup}%)"
format_swap = "{SUm}MB/{STm}MB({SUp}%)"
display_type = "memory"
icons = true
clickable = true
interval = 5
warning_mem = 80
warning_swap = 80
critical_mem = 95
critical_swap = 95
# [[block]]
# block = "memory"
# format_mem = "{Mug}/{MTg}GB ({Mup}%)"
# format_swap = "{SUg}/{STg}GB ({SUp}%)"
# display_type = "swap"
# icons = true
# clickable = true
# interval = 5
# warning_mem = 80
# warning_swap = 80
# critical_mem = 95
# critical_swap = 95
[[block]]
block = "time"
format = "%Y/%m/%d %R"
timezone = "Europe/Berlin"
interval = 60
locale = "de_DE"