From d4a389391e2e9a4840facc2825aac072271dabbb Mon Sep 17 00:00:00 2001 From: Jarkko Toivanen Date: Wed, 24 May 2023 05:43:55 +0300 Subject: [PATCH] Fancy i3 status --- i3/config | 2 +- i3/i3status.conf | 100 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 i3/i3status.conf diff --git a/i3/config b/i3/config index 247364a..559be4d 100644 --- a/i3/config +++ b/i3/config @@ -160,7 +160,7 @@ client.placeholder $bg-color $bg-color $yellow-color $bg-color client.background $fg-color bar { - status_command i3status + status_command i3status --config ~/.config/i3/i3status.conf position top #tray_output primary diff --git a/i3/i3status.conf b/i3/i3status.conf new file mode 100644 index 0000000..8809f39 --- /dev/null +++ b/i3/i3status.conf @@ -0,0 +1,100 @@ +############################################################################### +# ceerious i3 status config +# see "man i3status" for documentation. +# +# It is important that this file is edited as UTF-8. +# The following line should contain a sharp s: +# ß +# If the above line is not correctly displayed, fix your editor first! +############################################################################### + +general { + interval = 1 + colors = true + color_good = '#88b090' + color_degraded = '#ccdc90' + color_bad = '#e89393' +} + +#order += "disk /home" +#order += "run_watch DHCP" +#order += "ipv6" +#order += "run_watch VPN" +order += "ethernet _first_" +order += "wireless _first_" +order += "volume master" +order += "disk /" +order += "battery all" +order += "cpu_temperature 0" +order += "cpu_usage 0" +order += "memory" +order += "load" +order += "tztime local" + +wireless _first_ { + format_up = "%quality %essid %ip" + format_down = "" +} + +ethernet _first_ { + #if you use %speed, i3status requires root privileges + format_up = "πŸ–₯ %ip (%speed)" + format_down = "" +} + +battery all { + format = "%status %percentage %remaining" + format_down = "" + last_full_capacity = true + integer_battery_capacity = true + low_threshold = 11 + threshold_type = percentage + hide_seconds = true + status_chr = " " + status_bat = " " + status_unk = " " + status_full = " " +} + +run_watch DHCP { + pidfile = "/var/run/dhclient*.pid" +} + +run_watch VPN { + pidfile = "/var/run/vpnc/pid" +} + +tztime local { + format = " %a %d.%m.%Y ο€— %H:%M:%S" +} + +load { + format = "ο‚€ %1min" +} + +cpu_usage { + format = " %usage" +} + +memory { + format = "🐏 %used/%free" +} + +cpu_temperature 0 { + format = "🌑%degreesΒ°C" +} + +disk "/" { + format = "%avail" + prefix_type = custom + low_threshold = 20 + threshold_type = percentage_avail +} + +volume master { + format = "πŸ”Š%volume" + format_muted = "πŸ”ˆ%volume" + device = "default" + mixer = "Master" + mixer_idx = 0 +} \ No newline at end of file