From 77b618ce3b587f18c5bd2655e7609fdeb2fe782b Mon Sep 17 00:00:00 2001 From: c0de Date: Tue, 29 Nov 2022 21:18:58 -0600 Subject: [PATCH] Replace i3blocks with i3status-rust Requires the i3status-rust package You should also install Font Awesome 6 and the Powerline fonts, otherwise you will get a broken looking bar --- home/.config/i3/conf.d/i3bar.conf | 3 +- home/.config/i3/config | 3 +- home/.config/i3/i3status-rs.toml | 69 +++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+), 2 deletions(-) create mode 100644 home/.config/i3/i3status-rs.toml diff --git a/home/.config/i3/conf.d/i3bar.conf b/home/.config/i3/conf.d/i3bar.conf index 9ef8ca5..ae8a7fb 100644 --- a/home/.config/i3/conf.d/i3bar.conf +++ b/home/.config/i3/conf.d/i3bar.conf @@ -9,7 +9,8 @@ bar { font pango:FontAwesome6Free 11, SourceCodeProforPowerline 11 - status_command i3blocks -c $i3_path/i3blocks.conf + #status_command i3blocks -c $i3_path/i3blocks.conf + status_command i3status-rs $i3_path/i3status-rs.toml colors { background #161821 diff --git a/home/.config/i3/config b/home/.config/i3/config index f3acd02..f64c0f6 100644 --- a/home/.config/i3/config +++ b/home/.config/i3/config @@ -203,7 +203,8 @@ bar { font pango:FontAwesome6Free 11, SourceCodeProforPowerline 11 - status_command i3blocks -c $i3_path/i3blocks.conf + #status_command i3blocks -c $i3_path/i3blocks.conf + status_command i3status-rs $i3_path/i3status-rs.toml colors { background #161821 diff --git a/home/.config/i3/i3status-rs.toml b/home/.config/i3/i3status-rs.toml new file mode 100644 index 0000000..8497c0c --- /dev/null +++ b/home/.config/i3/i3status-rs.toml @@ -0,0 +1,69 @@ +[theme] +name = "nord-dark" + +[icons] +name = "awesome6" + +[[block]] +block = "focused_window" +max_width = 35 +format = "{title}" + +[[block]] +block = "cpu" +interval = 2 +format = "{utilization}" + +#[[block]] +#block = "load" +#format = "{1m}" +#interval = 15 + +[[block]] +block = "memory" +format_mem = "{mem_used}" +icons = true +interval = 5 + +[[block]] +block = "net" +interval = 2 +hide_missing = true +hide_inactive = true + +[[block]] +block = "temperature" +# TODO: Only if I have temp sensors + +#[[block]] +#block = "backlight" +# TODO: Only if I'm a laptop + +[[block]] +block = "pacman" +interval = 600 +format = "{both} updates available" +format_singular = "{both} update available" +critical_updates_regex = "(linux|linux-lts|linux-zen)" +aur_command = "yay -Qua" +hide_when_uptodate = true + +[[block]] +block = "battery" +interval = 15 +hide_missing = true +format = " {percentage} ({time})" +full_threshold = 99 +full_format = " " + +[[block]] +block = "sound" +format = "{volume}" +headphones_indicator = true + +[[block]] +block = "time" +format = "%h %d %R" +interval = 15 +on_click = "notify-send \"$(cal)\"" +