mirror of
https://github.com/Stunkymonkey/dotfiles.git
synced 2025-05-24 11:04:41 +02:00
sway/i3status-rs: update config to new version
This commit is contained in:
parent
da5f76b070
commit
fff403f7aa
1 changed files with 31 additions and 19 deletions
|
@ -1,5 +1,6 @@
|
|||
icons = "awesome5"
|
||||
scrolling = "natural"
|
||||
[icons]
|
||||
icons = "awesome5"
|
||||
|
||||
[theme.overrides]
|
||||
good_bg = "#0C0C0D"
|
||||
|
@ -13,46 +14,53 @@ separator = ""
|
|||
[[block]]
|
||||
block = "disk_space"
|
||||
path = "/"
|
||||
format = "{available}"
|
||||
#update = true
|
||||
format = " $available "
|
||||
[[block.click]]
|
||||
button = "right"
|
||||
update = true
|
||||
|
||||
[[block]]
|
||||
block = "disk_space"
|
||||
path = "/home"
|
||||
format = "{available}"
|
||||
#update = true
|
||||
alert_absolute = true
|
||||
format = " $available "
|
||||
[[block.click]]
|
||||
button = "right"
|
||||
update = true
|
||||
|
||||
[[block]]
|
||||
block = "networkmanager"
|
||||
device_format = "{icon}{ap}"
|
||||
on_click = "foot nmtui"
|
||||
interface_name_exclude = ["br\\-[0-9a-f]{12}", "docker\\d+"]
|
||||
block = "net"
|
||||
format = " $icon {$ssid |}"
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "foot nmtui"
|
||||
|
||||
[[block]]
|
||||
block = "memory"
|
||||
format_mem = "{mem_used_percents}"
|
||||
format_swap = "{swap_used_percents}"
|
||||
format = " $icon $mem_used_percents.eng(w:1) "
|
||||
format_alt = " $icon_swap $swap_used_percents.eng(w:1) "
|
||||
|
||||
[[block]]
|
||||
block = "temperature"
|
||||
format = "{max}"
|
||||
format = " $icon $max "
|
||||
format_alt = " $icon $min min, $max max, $average avg "
|
||||
|
||||
[[block]]
|
||||
block = "cpu"
|
||||
interval = 1
|
||||
|
||||
[[block]]
|
||||
block = "load"
|
||||
|
||||
[[block]]
|
||||
block = "battery"
|
||||
format = "{percentage} {time}"
|
||||
full_threshold = 99 # so the format is used when discharging
|
||||
format = " $icon $percentage {$time |}"
|
||||
|
||||
[[block]]
|
||||
block = "bluetooth"
|
||||
format = "{label}"
|
||||
format_unavailable = "{label}"
|
||||
mac = "94:DB:56:79:A5:3C"
|
||||
format = " $icon {$percentage |}"
|
||||
disconnected_format = " $icon "
|
||||
|
||||
[[block]]
|
||||
block = "sound"
|
||||
|
@ -64,11 +72,15 @@ device_kind = "source"
|
|||
[[block]]
|
||||
block = "time"
|
||||
interval = 1
|
||||
format = "%a %F %T"
|
||||
[block.format]
|
||||
full = " $icon $timestamp.datetime(f:'%a %F %T', l:de_DE) "
|
||||
short = " $icon $timestamp.datetime(f:%R) "
|
||||
|
||||
[[block]]
|
||||
block = "custom"
|
||||
command = "if pgrep -x \"syncthing\" > /dev/null; then echo '{\"icon\":\"\",\"state\":\"Info\", \"text\": \"\"}'; else echo '{\"icon\":\"\",\"state\":\"Warning\", \"text\": \"\"}'; fi"
|
||||
json = true
|
||||
on_click = "xdg-open http://localhost:8384"
|
||||
interval = 3
|
||||
[[block.click]]
|
||||
button = "left"
|
||||
cmd = "xdg-open http://localhost:8384"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue