serii81
@serii81
Я люблю phр...

Как узнать информацию о настройках в файле конфиг i3wm?

Добрый вечер.
Подскажите как понять как формируются настройки и где их брать для файла config от i3wm?

Вот, что у меня выводится в баре:
# 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"
}


Я допустим хочу добавить информацию о системе или температуру видеокарту или процессора.

Заранее благодарен.
  • Вопрос задан
  • 103 просмотра
Решения вопроса 1
@brar
Конфиг i3status/i3blocks и конфиг самого i3wm - это разные файлы.
System-wide это в /etc/i3blocks.conf и /etc/i3status.conf
Если юзать i3blocks, то там секция
# 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

Как вы понимаете, нужно устновить lm-sensors и запустить один раз для настройки.

За i3status сюда: https://i3wm.org/i3status/manpage.html#_cpu_temperature
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
25 апр. 2024, в 11:02
5000 руб./за проект
25 апр. 2024, в 10:42
150000 руб./за проект
25 апр. 2024, в 10:41
2000 руб./за проект