From 9a7f7867d404858eee973cbc481d05adfd17ef65 Mon Sep 17 00:00:00 2001 From: Compiler Date: Wed, 7 Jun 2023 20:47:36 +0200 Subject: [PATCH] Add i3status --- .config/i3status/config | 71 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 .config/i3status/config diff --git a/.config/i3status/config b/.config/i3status/config new file mode 100644 index 0000000..3754868 --- /dev/null +++ b/.config/i3status/config @@ -0,0 +1,71 @@ +general { + output_format = "i3bar" + colors = true + color_good = "#6699ff" + color_degraded = "#ff9933" + interval = 5 +} + +order += "ipv6" +order += "ethernet enp4s0" +order += "disk /" +order += "run_watch DHCP" +order += "run_watch VPNC" +order += "path_exists VPN" +order += "cpu_temperature 0" +order += "memory" +order += "load" +order += "tztime local" +order += "tztime berlin" + +ethernet enp4s0 { + format_up = "E: %ip (%speed)" + format_down = "E: down" +} + +run_watch DHCP { + pidfile = "/var/run/dhclient*.pid" +} + +run_watch VPNC { + # file containing the PID of a vpnc process + pidfile = "/var/run/vpnc/pid" +} + +path_exists VPN { + # path exists when a VPN tunnel launched by nmcli/nm-applet is active + path = "/proc/sys/net/ipv4/conf/tun0" +} + +tztime local { + format = "%Y-%m-%d %H:%M:%S" + hide_if_equals_localtime = true +} + +tztime berlin { + format = "%Y-%m-%d %H:%M:%S %Z" + timezone = "Europe/Berlin" +} + +load { + format = "%5min" +} + +cpu_temperature 0 { + format = "T: %degrees °C" + path = "/sys/devices/platform/coretemp.0/hwmon/hwmon3/temp1_input" +} + +memory { + format = "%used" + threshold_degraded = "10%" + format_degraded = "MEMORY: %free" +} + +disk "/" { + format = "%free" +} + +read_file uptime { + path = "/proc/uptime" +}