S
S
Sergey Burduzha2019-06-21 00:43:35
linux
Sergey Burduzha, 2019-06-21 00:43:35

How to find information about settings in the i3wm config file?

Good evening.
Tell me how to understand how the settings are formed and where to get them for the config file from i3wm?
Here's what I get in the bar:

# 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
        interval = 1
}

order += "disk /"
order += "cpu_usage"
#order += "wireless _first_"
order += "ethernet _first_"
order += "volume master"
order += "tztime local"
#order += "battery 1"
order += "load"

disk "/" {
        format = " %avail/%total"
}

cpu_usage {
        format = " %usage"
}

wireless _first_ {
        # format_up = " (%quality at %essid) %ip"
        format_up = " %quality at %essid"
        format_down = " down"
}

ethernet _first_ {
        # if you use %speed, i3status requires root privileges
        format_up = "E: %ip (%speed)"
        #format_up = "  up"
        format_down = "  down"
}

volume master {
        format = " %volume"
        format_muted = " muted (%volume)"
}

tztime local {
        format = " %A %Y-%m-%d %H:%M:%S"
}

battery 1 {
        format = "%status %percentage"
        format_down = "No battery"
        status_chr = "⚡ CHR"
        status_bat = " BAT"
        status_full = "☻ FULL"
        low_threshold = 20
        threshold_type = "percentage"
        path = "/sys/class/power_supply/BAT%d/uevent"
}

load {
        format = " %1min"
}

Let's say I want to add information about the system or the temperature of the video card or processor.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
B
brar, 2019-06-21
@serii81

i3status/i3blocks config and i3wm config itself are different files.
System-wide is in /etc/i3blocks.conf and /etc/i3status.conf
If you use i3blocks, then there is a section

# Temperature
# Support multiple chips, though lm-sensors.
# The script may be called with -w and -c switches to specify thresholds,
# see the script for details.
[temperature]
label=TEMP
interval=10

As you understand, you need to install lm-sensors and run it once for configuration.
For i3status here: https://i3wm.org/i3status/manpage.html#_cpu_temperature

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question