mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-05-18 23:14:24 +02:00
update to new i3status-rust version
This commit is contained in:
parent
96f62f2283
commit
34c529b20c
|
@ -12,3 +12,4 @@ i3status-rs = { git = "https://github.com/greshake/i3status-rust.git" }
|
|||
serde_json = "1.0.96"
|
||||
tokio = "1.28.1"
|
||||
toml = "0.7.4"
|
||||
unicode-segmentation = "1.10.1"
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
use std::sync::Arc;
|
||||
use unicode_segmentation::UnicodeSegmentation;
|
||||
|
||||
use i3status_rs::{
|
||||
blocks,
|
||||
|
@ -19,7 +20,7 @@ use i3status_rs::{
|
|||
async fn main() {
|
||||
if let Err(e) = try_main().await {
|
||||
let err_widget = Widget::new()
|
||||
.with_text(e.to_string().chars().collect_pango_escaped())
|
||||
.with_text(e.to_string().graphemes(true).collect_pango_escaped())
|
||||
.with_state(State::Critical);
|
||||
|
||||
serde_json::to_writer(
|
||||
|
|
Loading…
Reference in a new issue