From 9c04c1e926bc31b5dc5a645dd217e8f26946ecbb Mon Sep 17 00:00:00 2001 From: Simon Rieger Date: Tue, 7 Mar 2023 13:20:17 +0100 Subject: [PATCH] update config to i3status-rs version 3.0 --- .../i3status-rust/executable_config-2.0.toml | 71 +++++++++++++++++++ .../i3status-rust/executable_config.toml | 58 ++++++--------- 2 files changed, 91 insertions(+), 38 deletions(-) create mode 100644 dot_config/i3status-rust/executable_config-2.0.toml diff --git a/dot_config/i3status-rust/executable_config-2.0.toml b/dot_config/i3status-rust/executable_config-2.0.toml new file mode 100644 index 0000000..3508a2a --- /dev/null +++ b/dot_config/i3status-rust/executable_config-2.0.toml @@ -0,0 +1,71 @@ +[theme] +name = "slick" +[theme.overrides] +idle_bg = "#2f343f" +idle_fg = "#f3f4f5" + +[icons] +name = "awesome" +#[icons.overrides] +#bat = " | | " +#bat_full = " |X| " +#bat_charging = " |^| " +#bat_discharging = " |v| " + +[[block]] +block = "networkmanager" +on_click = "wezterm start nmtui" +interface_name_exclude = ["br\\-[0-9a-f]{12}", "docker\\d+"] +interface_name_include = [] +device_format = "{icon} {ap} {ips}" +ap_format = "{ssid} {strength}" + +#[[block]] +#block = "net" +#on_click = "wezterm start nmtui" +#device = "wlan0" +#format = " {ssid} {signal_strength} {ip} {speed_down;K*b} {graph_down:8;M*_b#50}" +#interval = 1 + +[[block]] +block = "disk_space" +path = "/" +alias = "/" +info_type = "available" +unit = "GB" +interval = 20 +warning = 20.0 +alert = 10.0 + +[[block]] +block = "memory" +display_type = "memory" +format_mem = "{mem_used_percents}" +format_swap = "{swap_used_percents}" + +[[block]] +block = "cpu" +interval = 1 +format = "{barchart} {utilization} {frequency}" + +[[block]] +block = "load" +interval = 1 +format = "{1m}" + +[[block]] +block = "sound" +on_click = "pavucontrol-qt" + +[[block]] +block = "time" +interval = 1 +format = "%a %Y-%m-%d %H:%M:%S" + +[[block]] +block = "uptime" + +[[block]] +block = "battery" +interval = 10 +format = "{percentage} {time}" diff --git a/dot_config/i3status-rust/executable_config.toml b/dot_config/i3status-rust/executable_config.toml index 3508a2a..73c4d36 100644 --- a/dot_config/i3status-rust/executable_config.toml +++ b/dot_config/i3status-rust/executable_config.toml @@ -1,11 +1,13 @@ +icons_format = "{icon}" + [theme] -name = "slick" +theme = "slick" [theme.overrides] idle_bg = "#2f343f" idle_fg = "#f3f4f5" [icons] -name = "awesome" +icons = "awesome4" #[icons.overrides] #bat = " | | " #bat_full = " |X| " @@ -13,59 +15,39 @@ name = "awesome" #bat_discharging = " |v| " [[block]] -block = "networkmanager" -on_click = "wezterm start nmtui" -interface_name_exclude = ["br\\-[0-9a-f]{12}", "docker\\d+"] -interface_name_include = [] -device_format = "{icon} {ap} {ips}" -ap_format = "{ssid} {strength}" - -#[[block]] -#block = "net" -#on_click = "wezterm start nmtui" -#device = "wlan0" -#format = " {ssid} {signal_strength} {ip} {speed_down;K*b} {graph_down:8;M*_b#50}" -#interval = 1 +block = "cpu" +interval = 1 +format = " $icon $barchart $utilization " +format_alt = " $icon $frequency{ $boost|} " [[block]] block = "disk_space" path = "/" -alias = "/" info_type = "available" -unit = "GB" +alert_unit = "GB" interval = 20 warning = 20.0 alert = 10.0 +format = " $icon root: $available.eng(w:2) " [[block]] block = "memory" -display_type = "memory" -format_mem = "{mem_used_percents}" -format_swap = "{swap_used_percents}" - -[[block]] -block = "cpu" -interval = 1 -format = "{barchart} {utilization} {frequency}" - -[[block]] -block = "load" -interval = 1 -format = "{1m}" +format = " $icon $mem_total_used_percents.eng(w:2) " +format_alt = " $icon_swap $swap_used_percents.eng(w:2) " [[block]] block = "sound" -on_click = "pavucontrol-qt" +[[block.click]] +button = "left" +cmd = "pavucontrol-qt" [[block]] block = "time" -interval = 1 -format = "%a %Y-%m-%d %H:%M:%S" - -[[block]] -block = "uptime" +interval = 5 +#format = " $timestamp.datetime(f:'%a %d/%m %R') " +format = " $timestamp.datetime(f:'%a %Y-%m-%d %H:%M:%S') " [[block]] block = "battery" -interval = 10 -format = "{percentage} {time}" +format = " $icon $percentage {$time |}" +