Skip to content

Instantly share code, notes, and snippets.

@rafi
Last active February 1, 2023 12:33
Show Gist options
  • Star 55 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save rafi/6063132 to your computer and use it in GitHub Desktop.
Save rafi/6063132 to your computer and use it in GitHub Desktop.
Rafi's i3status configuration file
# github.com/rafi i3status config
# i3status configuration file
# 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 {
colors = true
color_good = "#BBBBBB"
color_bad = "#CC1616"
color_degraded = "#55858E"
interval = 2
}
order += "volume master"
order += "load"
order += "cpu_usage"
order += "cpu_temperature 0"
order += "cpu_temperature 1"
order += "cpu_temperature 2"
order += "cpu_temperature 3"
order += "disk /"
order += "disk /media/media"
order += "ethernet eth0"
order += "tztime local"
#order += "ipv6"
#order += "run_watch DHCP"
#order += "run_watch VPN"
#order += "wireless wlan0"
volume master {
# format = " ♪: %volume "
device = "default"
mixer = "Master"
mixer_idx = 0
# termsyn font
format = "À %volume "
}
load {
# format = " Δ: %1min "
# termsyn font
format = " Î %1min"
}
cpu_usage {
format = "%usage "
}
cpu_temperature 0 {
format = " ± %degrees°"
path = "/sys/devices/platform/coretemp.0/temp2_input"
max_threshold = 95
}
cpu_temperature 1 {
format = "%degrees°"
path = "/sys/devices/platform/coretemp.0/temp3_input"
max_threshold = 95
}
cpu_temperature 2 {
format = "%degrees°"
path = "/sys/devices/platform/coretemp.0/temp4_input"
max_threshold = 95
}
cpu_temperature 3 {
format = "%degrees° "
path = "/sys/devices/platform/coretemp.0/temp5_input"
max_threshold = 95
}
disk "/" {
format = " ¨ %avail:/ "
}
disk "/media/media" {
format = " ¨ %avail:m "
}
wireless wlan0 {
format_up = " W: (%quality at %essid) %ip "
format_down = " ☡ WiFi "
}
ethernet eth0 {
# if you use %speed, i3status requires root privileges
# format_up = " Ω: %ip "
# format_down = " ∅ eth0 "
# termsyn font
format_up = " ­ %ip "
format_down = " Ð eth0 "
}
run_watch DHCP {
pidfile = "/var/run/dhclient*.pid"
}
run_watch VPN {
pidfile = "/var/run/vpnc/pid"
}
tztime local {
# format = " %h-%d %H:%M ☰ "
# termsyn font
format = " %h-%d É %H:%M ¸ ÈÈÈ È "
}
@RX14
Copy link

RX14 commented Aug 29, 2014

I am using this now, it works brilliantly thanks!

@1ay1
Copy link

1ay1 commented Jul 1, 2016

this is so fucking good!!!

@Hi-Angel
Copy link

Hi-Angel commented Oct 13, 2016

Note: I've had to change /sys/devices/platform/coretemp.0/temp2_input/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input. Otherwise I was getting errors like:

i3status: Cannot read temperature. Verify that you have a thermal zone in /sys/class/thermal or disable the cpu_temperature module in your i3status config.

FTR (just in case the path get lost again):I found the path with find /sys/devices/platform/coretemp.*/ | grep input.

@LRDPRDX
Copy link

LRDPRDX commented Mar 26, 2018

In Ubuntu 14.04 I had to change /sys/devices/platform/coretemp.0/temp2_input to /sys/class/thermal/thermal_zone0/temp or to /sys/class/hwmon/hwmon0/temp_input0

@vininjr
Copy link

vininjr commented Mar 5, 2019

Thanks my friends !!!

@rogerbosman
Copy link

How can I display the unicode symbols in my i3 status? They show up just fine in my editor, but when loading in i3 status the wrong symbol is displayed

@nosrednawall
Copy link

Thanks guys, worked perfect here.

@shirobachi
Copy link

I love it <3 thanks!

@shirobachi
Copy link

How can I display the unicode symbols in my i3 status? They show up just fine in my editor, but when loading in i3 status the wrong symbol is displayed

Not sure but probably u need to use utf-8

@saki92
Copy link

saki92 commented Mar 9, 2021

Hi. To me the format displayed doesn't make much sense. For example, in my editor I see À in volume and ÈÈÈ È after time. And I see the same on the i3status. Is this how its supposed to be?
I pasted the output of i3status below.
À 66% | Î 0,88 | -4% | ± 54° | 58° | ¨ 307,0 GiB:/ | | Ð eth0 | mars-09 É 18:34 ¸ ÈÈÈ È | DHCP: yes | VPN: no | ☡ WiFi

@fuzunspm
Copy link

fuzunspm commented Apr 6, 2021

Hi. To me the format displayed doesn't make much sense. For example, in my editor I see À in volume and ÈÈÈ È after time. And I see the same on the i3status. Is this how its supposed to be?
I pasted the output of i3status below.
À 66% | Î 0,88 | -4% | ± 54° | 58° | ¨ 307,0 GiB:/ | | Ð eth0 | mars-09 É 18:34 ¸ ÈÈÈ È | DHCP: yes | VPN: no | ☡ WiFi

did you find a solution?

@saki92
Copy link

saki92 commented Apr 6, 2021

No. I am using plain text now. Check it our here https://github.com/saki92/i3status/blob/main/config

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment