LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-19-2016, 06:00 PM   #1
Alpha90
Member
 
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)

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}
 
Old 01-21-2016, 01:47 PM   #2
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Yawnstown, Ohio
Distribution: High Sierra
Posts: 8,895
Blog Entries: 28

Rep: Reputation: Disabled
N/M. Sorry.

Last edited by Habitual; 01-21-2016 at 01:49 PM.
 
Old 01-21-2016, 03:00 PM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 8,164
Blog Entries: 5

Rep: Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960Reputation: 1960
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.
 
Old 01-24-2016, 02:03 PM   #4
Alpha90
Member
 
Registered: Jul 2012
Posts: 97

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


Reply


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 04:10 PM
FC10: Spanning Desktop Across Two Monitors zokken Fedora 4 12-17-2008 01:32 PM
spanning display across two monitors using xinerama selva_irtt Linux - Software 0 10-16-2007 07:34 AM
Backup problem when spanning multiple removable disks wayne.liu Linux - General 3 07-03-2006 03:44 PM
DISCUSSION: Spanning Multiple DSLs michaelsanford LinuxAnswers Discussion 2 10-19-2005 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:53 PM.

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