sway-bar: use i3status-rs
This commit is contained in:
parent
5d3e9a8c28
commit
cbca4939dd
2 changed files with 49 additions and 8 deletions
17
config
17
config
|
@ -194,15 +194,16 @@ bindsym $mod+r mode "resize"
|
||||||
# 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
|
||||||
|
status_command i3status-rs $HOME/.config/sway/i3status.toml
|
||||||
# When the status_command prints a new line to stdout, swaybar updates.
|
font "Cascadia Code PL Regular 11"
|
||||||
# The default just shows the current date and time.
|
|
||||||
status_command while date +'%Y-%m-%d %l:%M:%S %p'; do sleep 1; done
|
|
||||||
|
|
||||||
colors {
|
colors {
|
||||||
statusline #ffffff
|
separator #666666
|
||||||
background #323232
|
background #222222
|
||||||
inactive_workspace #32323200 #32323200 #5c5c5c
|
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
40
i3status.toml
Normal 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"
|
Loading…
Reference in a new issue