Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-19-2016, 07:00 PM   #1
Registered: Jul 2012
Posts: 97

Rep: Reputation: Disabled
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)



My current config
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

$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}
Old 01-21-2016, 02:47 PM   #2
LQ Veteran
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: Mojave
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
N/M. Sorry.

Last edited by Habitual; 01-21-2016 at 02:49 PM.
Old 01-21-2016, 04:00 PM   #3
LQ Addict
Registered: Dec 2013
Posts: 13,422
Blog Entries: 9

Rep: Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668Reputation: 3668
not really.
all you can do is estimate how much text it outputs before the screen splits, and add a goto there.
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:
${execi 5 ./}${execpi 5 cat ./data/finalconkyoutput}
so the script could count the characters of dynamic output, and put the goto accordingly.
Old 01-24-2016, 03:03 PM   #4
Registered: Jul 2012
Posts: 97

Original Poster
Rep: Reputation: Disabled
Ah ok then thank you both.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
root partition spanning multiple LUKS volumes Z038 Slackware 10 05-07-2013 05:10 PM
FC10: Spanning Desktop Across Two Monitors zokken Fedora 4 12-17-2008 02:32 PM
spanning display across two monitors using xinerama selva_irtt Linux - Software 0 10-16-2007 08:34 AM
Backup problem when spanning multiple removable disks wayne.liu Linux - General 3 07-03-2006 04:44 PM
DISCUSSION: Spanning Multiple DSLs michaelsanford LinuxAnswers Discussion 2 10-19-2005 04:41 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration