LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Formatting conky1.9.0 spanning multiple monitors (https://www.linuxquestions.org/questions/linux-software-2/formatting-conky1-9-0-spanning-multiple-monitors-4175564422/)

Alpha90 01-19-2016 06:00 PM

Formatting conky1.9.0 spanning multiple monitors
 
I have set up my conky configuration to be its own window in override mode as single bar running along the bottom of my screens. For the Most part everything is good except at the corner of the monitors where it because very hard to read. Is there any way to set conky to detect that it is at the edge of one monitor and add a gap to make it easier to read.

to put it visually what im going for. (where | is the edge of one of the screens)

Current:
foobarfoobarfo|obarfoobar

Desired
foobarfoobar<tab>|<tab>foobarfoobar

My current config
Code:

color1 005577
color3 1c4279
color2 0077ff
own_window yes
own_window_type override
own_window_colour 000000
own_window_transparent yes
own_window_hints undecorated below sticky skip_taskbar skip_pager
double_buffer yes
cpu_avg_samples 2
net_avg_samples 2
use_xft yes
xftfont Terminus:size=10
update_interval 1
#minimum_size 2160
#maximum_width 2160
border_width 1
draw_outline no
default_color white
use_spacer right
no_buffers yes
uppercase no
alignment bottom_middle
border_outer_margin 10
#gap_x 0
gap_y 0

TEXT
$nodename${color1} \
 CPU: ${color white}${cpu}%${color1} |\
 CPU Temp: ${color white}${hwmon 1 temp 1}°C ${color1} |\
 Ram Usage: ${color white}${memperc}%${color1} |\
 RAM: ${color white}${mem}/${memmax}${color1} |\
 Swap Usage: ${color white}${swapperc}%${color1} |\
 Swap: ${color white}${swap}/${swapmax}${color1} |\
 RootFS: ${color white}${fs_used /}/${fs_size /}${color1} |\
 RootFSRead: ${color white}${diskio_read /dev/sdc}${color1} |\
 RootFSWrite: ${color white}${diskio_write /dev/sdc}${color1} |\
 DataFS: ${color white}${fs_used /mnt/data}/${fs_size /mnt/data}${color1} |\
 DataFSRead: ${color white}${diskio_read /dev/sdb}${color1} |\
 DataFSWrite: ${color white}${diskio_write /dev/sdb}${color1} |\
 Up: ${color white}${upspeed eth0}${color1} |\
 Down: ${color white}${downspeed eth0}${color1} |\
 New Mail: ${color white}${new_mails}${color1} |\
 Volume: ${if_mixer_mute}Mute\
 ${else}${color white} ${exec amixer get Master | egrep -o "[0-9]+%" | head -6 | egrep -o "[0-9]*"|awk '{s+=$1} END {s=s/6} END {printf("%d",s) }'}% ${color1} $endif \
 ${if_running mocp}| Artist: ${color white}${moc_artist}${color1} |\
 Album: ${color white}${moc_album}${color1} |\
 Song: ${color white}${moc_song} ${moc_curtime}/${moc_totaltime} ${moc_state} ${endif}


Habitual 01-21-2016 01:47 PM

N/M. Sorry.

ondoho 01-21-2016 03:00 PM

not really.
all you can do is estimate how much text it outputs before the screen splits, and add a goto there.
e.g.
Code:

foobarfoobar${goto 1980}foobarfoobar
that said, i've recently been experimenting with shell scripts to generate conky syntax (to overcome conky's limitations) so my conky looks sth like this:
Code:

TEXT
${execi 5 ./script.sh}${execpi 5 cat ./data/finalconkyoutput}

so the script could count the characters of dynamic output, and put the goto accordingly.

Alpha90 01-24-2016 02:03 PM

Ah ok then thank you both.


All times are GMT -5. The time now is 11:02 PM.