From 281c7d569182f4f2280f6f31c6c4915907deb1a1 Mon Sep 17 00:00:00 2001 From: TheK4n Date: Thu, 19 May 2022 03:18:28 +0300 Subject: [PATCH] i3 font, i3status --- sub/i3/config | 2 +- sub/i3/statusconfig | 24 ++++++++++++++++++++---- 2 files changed, 21 insertions(+), 5 deletions(-) diff --git a/sub/i3/config b/sub/i3/config index 5240047..bb4c14f 100644 --- a/sub/i3/config +++ b/sub/i3/config @@ -22,7 +22,7 @@ exec --no-startup-id xset dpms 0 0 0 exec --no-startup-id nitrogen --restore; sleep 1; compton -b # Font for window titles. Will also be used by the bar unless a different font # is used in the bar {} block below. -font FiraCode:monospace 10 +font xft:Sans,FontAwesome 11 # This font is widely installed, provides lots of unicode glyphs, right-to-left # text rendering and scalability on retina/hidpi displays (thanks to pango). diff --git a/sub/i3/statusconfig b/sub/i3/statusconfig index 1bdb798..8bada2c 100644 --- a/sub/i3/statusconfig +++ b/sub/i3/statusconfig @@ -16,8 +16,10 @@ order += "wireless _first_" order += "ethernet _first_" order += "battery all" order += "disk /" -order += "load" +order += "disk /home" order += "memory" +order += "cpu_usage" +order += "cpu_temperature 0" order += "tztime local" wireless _first_ { @@ -26,7 +28,7 @@ wireless _first_ { } ethernet _first_ { - format_up = " %ip (%speed)" + format_up = " %ip" format_down = " down" } @@ -35,7 +37,11 @@ battery all { } disk "/" { - format = " %avail" + format = " %used/%total" +} + +disk "/home" { + format = " %used/%total" } load { @@ -43,11 +49,21 @@ load { } memory { - format = "%used | %available" + format = "%used/%available" threshold_degraded = "1G" format_degraded = "MEMORY < %available" } +cpu_usage { + format = " %usage" +} + +cpu_temperature 0 { + format = " %degrees" + max_threshold = "80" + path = "/sys/class/thermal/thermal_zone0/temp" +} + tztime local { format = " %Y-%m-%d  %H:%M:%S" }