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"
|
scrolling = "natural"
|
||||||
|
[icons]
|
||||||
|
icons = "awesome5"
|
||||||
|
|
||||||
[theme.overrides]
|
[theme.overrides]
|
||||||
good_bg = "#0C0C0D"
|
good_bg = "#0C0C0D"
|
||||||
|
@ -8,51 +9,58 @@ idle_bg = "#0C0C0D"
|
||||||
warning_bg = "#0C0C0D"
|
warning_bg = "#0C0C0D"
|
||||||
critical_bg = "#0C0C0D"
|
critical_bg = "#0C0C0D"
|
||||||
separator_bg = "#0C0C0D"
|
separator_bg = "#0C0C0D"
|
||||||
separator = ""
|
separator = " "
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "disk_space"
|
block = "disk_space"
|
||||||
path = "/"
|
path = "/"
|
||||||
format = "{available}"
|
format = " $available "
|
||||||
#update = true
|
[[block.click]]
|
||||||
|
button = "right"
|
||||||
|
update = true
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "disk_space"
|
block = "disk_space"
|
||||||
path = "/home"
|
path = "/home"
|
||||||
format = "{available}"
|
format = " $available "
|
||||||
#update = true
|
[[block.click]]
|
||||||
alert_absolute = true
|
button = "right"
|
||||||
|
update = true
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "networkmanager"
|
block = "net"
|
||||||
device_format = "{icon}{ap}"
|
format = " $icon {$ssid |}"
|
||||||
on_click = "foot nmtui"
|
[[block.click]]
|
||||||
interface_name_exclude = ["br\\-[0-9a-f]{12}", "docker\\d+"]
|
button = "left"
|
||||||
|
cmd = "foot nmtui"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "memory"
|
block = "memory"
|
||||||
format_mem = "{mem_used_percents}"
|
format = " $icon $mem_used_percents.eng(w:1) "
|
||||||
format_swap = "{swap_used_percents}"
|
format_alt = " $icon_swap $swap_used_percents.eng(w:1) "
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "temperature"
|
block = "temperature"
|
||||||
format = "{max}"
|
format = " $icon $max "
|
||||||
|
format_alt = " $icon $min min, $max max, $average avg "
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "cpu"
|
block = "cpu"
|
||||||
|
interval = 1
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "load"
|
block = "load"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "battery"
|
block = "battery"
|
||||||
format = "{percentage} {time}"
|
full_threshold = 99 # so the format is used when discharging
|
||||||
|
format = " $icon $percentage {$time |}"
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "bluetooth"
|
block = "bluetooth"
|
||||||
format = "{label}"
|
|
||||||
format_unavailable = "{label}"
|
|
||||||
mac = "94:DB:56:79:A5:3C"
|
mac = "94:DB:56:79:A5:3C"
|
||||||
|
format = " $icon {$percentage |}"
|
||||||
|
disconnected_format = " $icon "
|
||||||
|
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "sound"
|
block = "sound"
|
||||||
|
@ -64,11 +72,15 @@ device_kind = "source"
|
||||||
[[block]]
|
[[block]]
|
||||||
block = "time"
|
block = "time"
|
||||||
interval = 1
|
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]]
|
||||||
block = "custom"
|
block = "custom"
|
||||||
command = "if pgrep -x \"syncthing\" > /dev/null; then echo '{\"icon\":\"\",\"state\":\"Info\", \"text\": \"\"}'; else echo '{\"icon\":\"\",\"state\":\"Warning\", \"text\": \"\"}'; fi"
|
command = "if pgrep -x \"syncthing\" > /dev/null; then echo '{\"icon\":\"\",\"state\":\"Info\", \"text\": \"\"}'; else echo '{\"icon\":\"\",\"state\":\"Warning\", \"text\": \"\"}'; fi"
|
||||||
json = true
|
json = true
|
||||||
on_click = "xdg-open http://localhost:8384"
|
|
||||||
interval = 3
|
interval = 3
|
||||||
|
[[block.click]]
|
||||||
|
button = "left"
|
||||||
|
cmd = "xdg-open http://localhost:8384"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue