LINUX.ORG.RU

i3 & conky

 , ,


1

1

Не хавает панелька вывод, хз по чему:

config
bar {
        status_command ~/.i3/conky.sh
}

conky.sh (исполняемый)
#!/bin/sh

echo '{"version":1}
[
 [].

 [ { "full_text":"Home 84.0G Free", "color":"#ffffff" },
   { "full_text":"RAM 32%" , "color":"#ffffff" } ],

 [ { "full_text":"Home 84.0G Free", "color":"#ffffff" },
   { "full_text":"RAM 34%" , "color":"#ffffff" } ],

 [....],
 [....],
 ...'

Deleted

Ответ на: комментарий от sci-fi
config
bar {
    status_command $HOME/bin/conky-i3bar
}

conky-i3bar

#!/bin/sh

# Send the header so that i3bar knows we want to use JSON:
echo '{"version":1}'

# Begin the endless array.
echo '['

# We send an empty first array of blocks to make the loop simpler:
echo '[],'

# Now send blocks with information forever:
exec conky -c $HOME/.conkyrc

/.conkyrc

out_to_x no
own_window no
out_to_console yes
background no
max_text_width 0
 
# Update interval in seconds
update_interval 1.0
 
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
#total_run_times 0
 
# Shortens units to a single character (kiB->k, GiB->G, etc.). Default is off.
short_units yes
 
# How strict should if_up be when testing an interface for being up?
# The value is one of up, link or address, to check for the interface
# being solely up, being up and having link or being up, having link
# and an assigned IP address. 
if_up_strictness route
 
# Add spaces to keep things from moving about?  This only affects certain objects.
# use_spacer should have an argument of left, right, or none
use_spacer left
 
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
 
# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2
 
# Stuff after 'TEXT' will be formatted on screen
TEXT
# JSON for i3bar
[

{ "full_text" : "${top name 1} cpu $cpu%${acpitemp}°C mem ${memperc}% +-${battery_percent}% " , "color" : "\#ffffff" },
{ "full_text" : "${exec setxkbmap -v 7 | grep layout | awk '{print $2}'}" , "color" : "\#FFD700" },
{ "full_text" :" ${time %a %d/%b %R}"},
sci-fi
()
Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.