Çözüldü i3 Status Bar çalışmıyor

Bu konu çözüldü olarak işaretlenmiştir. Çözülmediğini düşünüyorsanız konuyu rapor edebilirsiniz.

342746

Megapat
Katılım
2 Haziran 2020
Mesajlar
5.446
Makaleler
10
Çözümler
84
Burada bir arkadaşın paylaştığı config dosyasını denemek istedim. Kendi Polybar'ımdan çok memnunum ancak biraz bloat. Bahsettiğim mesaj;

Arkadaşın paylaştığı config:
Bash:
general {
        colors = true
        interval = 1
        color_good = "#e96304"
        color_degraded = "#FF1493"
        color_bad = "#FFFFFF"
}

order += "ethernet _first_"
order += "wireless _first_"
order += "volume master"
order += "battery all"
order += "cpu_temperature 0"
order += "cpu_usage"
order += "disk /"
order += "memory"
order += "tztime local"

ethernet _first_ {
        format_up = " "
        format_down = " "
        separator_block_width = 20
}

wireless _first_ {
        format_up = "%quality"
        format_down = " "
        separator_block_width = 20
}

volume master {
                   format = "♪ %volume"
                   format_muted = "♪ [%volume]"
                   device = "default"
                   mixer = "Master"
                   mixer_idx = 0
                   separator_block_width = 20
           }


 battery all {
                   format = "%status %percentage"
                   format_down = "No battery"
                   status_chr = "⚡"
                   status_bat = ""
                   status_unk = "?"
                   status_full = ""
                   path = "/sys/class/power_supply/BAT%d/uevent"
                   low_threshold = 20
                   threshold_type = percentage
                   last_full_capacity = true
                   integer_battery_capacity = true
                   separator_block_width = 20
           }

cpu_temperature 0 {
        format = " %degrees°C"
        path = "/sys/class/thermal/thermal_zone0/temp"
        max_threshold = 70
        separator_block_width = 20
}

cpu_usage {
        format = " %usage"
        max_threshold = 90
        #degraded_threshold = 50
        separator_block_width = 20
}

disk "/" {
        format = " %avail"
        low_threshold = 20
        separator_block_width = 20
}

memory {
        format = " %used"
        #threshold_degraded = 50%
        threshold_critical = 10%
        separator_block_width = 20
}

tztime local {
        format =" %a %d/%m/%Y   %I:%M %p  |"
        separator_block_width = 20
}

Benim kullanmaya çalıştığım şekil:
Kod:
bar {

     i3status -c /home/kyronex/.config/i3status/i3status.conf

position top

}

Aldığım hata:
Kod:
ERROR: CONFIG: Expected one of these tokens: <end>, '#', 'set', 'i3bar_command', 'status_command', 'socket_path', 'mode', 'hidden_state', 'id', 'modifier', 'wheel_up_cmd', 'wheel_down_cmd', 'bindsym', 'position', 'output', 'tray_output', 'tray_padding', 'font', 'separator_symbol', 'binding_mode_indicator', 'workspace_buttons', 'workspace_min_width', 'strip_workspace_numbers', 'strip_workspace_name', 'verbose', 'height', 'colors', '}'
ERROR: CONFIG: (in file /home/kyronex/.config/i3/config)
ERROR: CONFIG: Line 180: bar {
ERROR: CONFIG: Line 181:
ERROR: CONFIG: Line 182: i3status -c /home/kyronex/.config/i3status/i3status.conf
ERROR: CONFIG:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: CONFIG: Line 183:
ERROR: CONFIG: Line 184: #position top
ERROR: FYI: You are using i3 version 4.19.1 (2021-02-01)
ERROR: Received ConfigureNotify for unknown window 0x00800000
ERROR: Received ExposeEvent for unknown window 0x00800000
ERROR: Received ConfigureNotify for unknown window 0x00800000
ERROR: Received ConfigureNotify for unknown window 0x00800003
ERROR: Received ExposeEvent for unknown window 0x00800003
ERROR: Received ConfigureNotify for unknown window 0x00800003

Yardım edebilecek var mı?
 
Çözüm
~/.config/i3/config dosyasındaki bar değişkenini şu şekilde değiştirmeyi deneyin önce.

Kod:
bar {
       position top
       font pango:Inconsolata 8
       status_command exec i3status -c ~/.config/i3status/i3status.conf
}
Burada bir arkadaşın paylaştığı config dosyasını denemek istedim. Kendi Polybar'ımdan çok memnunum ancak biraz bloat. Bahsettiğim mesaj;

Arkadaşın paylaştığı config:
Bash:
general {
        colors = true
        interval = 1
        color_good = "#e96304"
        color_degraded = "#FF1493"
        color_bad = "#FFFFFF"
}

order += "ethernet _first_"
order += "wireless _first_"
order += "volume master"
order += "battery all"
order += "cpu_temperature 0"
order += "cpu_usage"
order += "disk /"
order += "memory"
order += "tztime local"

ethernet _first_ {
        format_up = " "
        format_down = " "
        separator_block_width = 20
}

wireless _first_ {
        format_up = "%quality"
        format_down = " "
        separator_block_width = 20
}

volume master {
                   format = "♪ %volume"
                   format_muted = "♪ [%volume]"
                   device = "default"
                   mixer = "Master"
                   mixer_idx = 0
                   separator_block_width = 20
           }


 battery all {
                   format = "%status %percentage"
                   format_down = "No battery"
                   status_chr = "⚡"
                   status_bat = ""
                   status_unk = "?"
                   status_full = ""
                   path = "/sys/class/power_supply/BAT%d/uevent"
                   low_threshold = 20
                   threshold_type = percentage
                   last_full_capacity = true
                   integer_battery_capacity = true
                   separator_block_width = 20
           }

cpu_temperature 0 {
        format = " %degrees°C"
        path = "/sys/class/thermal/thermal_zone0/temp"
        max_threshold = 70
        separator_block_width = 20
}

cpu_usage {
        format = " %usage"
        max_threshold = 90
        #degraded_threshold = 50
        separator_block_width = 20
}

disk "/" {
        format = " %avail"
        low_threshold = 20
        separator_block_width = 20
}

memory {
        format = " %used"
        #threshold_degraded = 50%
        threshold_critical = 10%
        separator_block_width = 20
}

tztime local {
        format =" %a %d/%m/%Y   %I:%M %p  |"
        separator_block_width = 20
}

Benim kullanmaya çalıştığım şekil:
Kod:
bar {

     i3status -c /home/kyronex/.config/i3status/i3status.conf

position top

}

Aldığım hata:
Kod:
ERROR: CONFIG: Expected one of these tokens: <end>, '#', 'set', 'i3bar_command', 'status_command', 'socket_path', 'mode', 'hidden_state', 'id', 'modifier', 'wheel_up_cmd', 'wheel_down_cmd', 'bindsym', 'position', 'output', 'tray_output', 'tray_padding', 'font', 'separator_symbol', 'binding_mode_indicator', 'workspace_buttons', 'workspace_min_width', 'strip_workspace_numbers', 'strip_workspace_name', 'verbose', 'height', 'colors', '}'
ERROR: CONFIG: (in file /home/kyronex/.config/i3/config)
ERROR: CONFIG: Line 180: bar {
ERROR: CONFIG: Line 181:
ERROR: CONFIG: Line 182: i3status -c /home/kyronex/.config/i3status/i3status.conf
ERROR: CONFIG:           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ERROR: CONFIG: Line 183:
ERROR: CONFIG: Line 184: #position top
ERROR: FYI: You are using i3 version 4.19.1 (2021-02-01)
ERROR: Received ConfigureNotify for unknown window 0x00800000
ERROR: Received ExposeEvent for unknown window 0x00800000
ERROR: Received ConfigureNotify for unknown window 0x00800000
ERROR: Received ConfigureNotify for unknown window 0x00800003
ERROR: Received ExposeEvent for unknown window 0x00800003
ERROR: Received ConfigureNotify for unknown window 0x00800003

Yardım edebilecek var mı?
Bahsi geçen tokenlardan bir tanesinin varlığı gerekiyormuş.
 
Satır 180-184 arasında orada listelenmiş tokenlardan en az bir tanesinin varlığı gerekiyormuş.
Vallahi ne yalan söyleyeyim anlayamadım hocam. Kullanmaya çalıştığım şekil bu. Ne
Bash:
bar {
#       position top
#       font pango:Inconsolata 8
        i3status -c /home/kyronex/.config/i3status/i3status.conf
#       #status_command i3status
#       status_command .config/bumblebee-status/bumblebee-status \
#       -t gruvbox-powerline \
#       -m disk cpu battery amixer datetime \


}
yin varlığı yok acabaç
 
yin varlığı yok acabaç
ERROR: CONFIG: Expected one of these tokens: <end>, '#', 'set', 'i3bar_command', 'status_command', 'socket_path', 'mode', 'hidden_state', 'id', 'modifier', 'wheel_up_cmd', 'wheel_down_cmd', 'bindsym', 'position', 'output', 'tray_output', 'tray_padding', 'font', 'separator_symbol', 'binding_mode_indicator', 'workspace_buttons', 'workspace_min_width', 'strip_workspace_numbers', 'strip_workspace_name', 'verbose', 'height', 'colors', '}'
 
ERROR: CONFIG: Expected one of these tokens: <end>, '#', 'set', 'i3bar_command', 'status_command', 'socket_path', 'mode', 'hidden_state', 'id', 'modifier', 'wheel_up_cmd', 'wheel_down_cmd', 'bindsym', 'position', 'output', 'tray_output', 'tray_padding', 'font', 'separator_symbol', 'binding_mode_indicator', 'workspace_buttons', 'workspace_min_width', 'strip_workspace_numbers', 'strip_workspace_name', 'verbose', 'height', 'colors', '}'
Hmm. Sanırım şimdi anladım. Düşündüğüm şey ise o kadar uğraşamayacağım. Polybar ile devam sanırım. Sağ olun hocam size de.
 
~/.config/i3/config dosyasındaki bar değişkenini şu şekilde değiştirmeyi deneyin önce.

Kod:
bar {
       position top
       font pango:Inconsolata 8
       status_command exec i3status -c ~/.config/i3status/i3status.conf
}
 
Çözüm
~/.config/i3/config dosyasındaki bar değişkenini şu şekilde değiştirmeyi deneyin önce.

Kod:
bar {
       position top
       font pango:Inconsolata 8
       status_command exec i3status -c ~/.config/i3status/i3status.conf
}
Evet çalıştı, ama gözüme pek hitap etmedi. Sağ olun, belki ileride kullanırım :)
 

Geri
Yukarı