You are not logged in.

#1 2009-04-25 15:43:24

deadlylife
Member
Registered: 2008-12-24
Posts: 120

Conky "bar" across screen in Openbox.

Hello, I am trying to configure conky aligned on the top of the screen stretching all the way across. How would I do that?

Offline

#2 2009-04-25 15:44:22

deadlylife
Member
Registered: 2008-12-24
Posts: 120

Re: Conky "bar" across screen in Openbox.

Also, I'm using tint2 as a panel, how do I make tint2 dock under conky?

Last edited by deadlylife (2009-04-25 15:44:52)

Offline

#3 2009-04-25 16:31:04

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: Conky "bar" across screen in Openbox.

Just use a .conkyrc--one from the forums or one of your own--and after the TEXT line use one continuous line for the things you want to monitor.  You will be limited by the width of your screen as to how much stuff you can output but you can always use 2 lines of output as well.  You'll also probably have to set a maximum_width in your .conkyrc that you'll have to play around with to fill the top of the screen.

Tint2 I don't use so can't help you with that.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#4 2009-04-25 16:34:21

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: Conky "bar" across screen in Openbox.

By reading the respective manuals?

All the conky help you need

Tint2 configuration

I strongly advise you to read the links above. All you need for conky to be displayed on one line is (you guessed it) put the content on one line in the configuration file. You should be able to figure out the rest yourself.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#5 2009-04-25 16:44:18

jack.mitchell
Member
From: Ely, Cambridgeshire, UK
Registered: 2008-08-28
Posts: 156
Website

Re: Conky "bar" across screen in Openbox.

To make it stretch across the whole screen look into the minimum size variables that you can set.

Offline

#6 2009-04-25 17:36:32

SomeGuyDude
Member
Registered: 2008-10-09
Posts: 271

Re: Conky "bar" across screen in Openbox.

My conkyrc:

alignment top_left
border_margin 5
border_width 1
default_color bbbbbb
double_buffer yes
draw_borders no
draw_outline no
draw_shades no
gap_x 0
gap_y 0
maximum_width 765
no_buffers yes
override_utf8_locale yes
own_window_colour eeeeee
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_transparent yes
own_window_type override
own_window yes
stippled_borders 0
update_interval 5
uppercase no
#use_spacer yes
use_xft yes
xftfont Nu:size=9

TEXT
${offset 19}${color eeeeee}${time %I:%M %p}$color ${time %A, %b %d %Y} ${color} | CPU: ${color eeeeee}$cpu %$color | ${color eeeeee}${voffset 1}${membar 6,75}${offset -75}${voffset -1}${color 000044}Mem${color eeeeee}${offset 55}${color}  | ${voffset 1}${color eeeeee}${fs_bar 6,75 /home}${offset -75}${color 000044}${voffset -1}Home${color eeeeee}${offset 55}${color} | ${voffset 1}${color eeeeee}${fs_bar 6,75 /}${offset -75}${voffset -1}${color 000044}Root${color eeeeee}${offset 55} ${color}| ${color}Battery: ${color eeeeee}${battery}  ${color}| ${color}Temp: ${color eeeeee}${acpitemp}
${voffset -8}${font OpenLogos:size=15}A${font}${voffset -3}${offset 1}Email: ${color eeeeee}${execi 300 python ~/scripts/gmail.py}  ${color}| Arch:${color eeeeee} ${texeci 3550 perl ~/scripts/conky-updates.pl}  ${color}| Weather: ${color eeeeee}${execi 3550 python ~/scripts/conkyForecast.py --location=USPA0796 --datatype=HT -i} ${color}| ${color}$mpd_status ${color eeeeee} ${scroll 75 ${mpd_smart}    }

My tint2 rc (tint2 from the AUR):

#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------

#---------------------------------------------
# BACKGROUND AND BORDER
#---------------------------------------------
rounded = 7
border_width = 0
background_color = #000000 0
border_color = #ffffff 18

rounded = 5
border_width = 0
background_color = #666666 30
border_color = #ffffff 18

rounded = 5
border_width = 0
background_color = #333333 50
border_color = #ffffff 70

#---------------------------------------------
# PANEL
#---------------------------------------------
panel_monitor = all
panel_position = top right
panel_size = 510 21
panel_margin = 0 0
panel_padding = 0 0
font_shadow = 0
panel_background_id = 1

#---------------------------------------------
# TASKBAR
#---------------------------------------------
taskbar_mode = single_desktop
taskbar_padding = 0 0 2
taskbar_background_id = 0

#---------------------------------------------
# TASK
#---------------------------------------------
task_icon = 1
task_text = 1
task_width = 0
task_centered = 0
task_padding = 1 1
task_font = Liberation Sans 8
task_font_color = #ffffff 70
task_active_font_color = #ffffff 85
task_background_id = 2
task_active_background_id = 3

#---------------------------------------------
# SYSTRAYBAR
#---------------------------------------------
systray_padding = 4 3 4
systray_background_id = 0

#---------------------------------------------
# CLOCK
#---------------------------------------------
#time1_format = %H:%M
time1_font = (null)
#time2_format = %A %d %B
time2_font = (null)
clock_font_color = #000000 0
clock_padding = 2 2
clock_background_id = 0

#---------------------------------------------
# MOUSE ACTION ON TASK
#---------------------------------------------
mouse_middle = none
mouse_right = close
mouse_scroll_up = toggle
mouse_scroll_down = iconify

It's all in one row up at the top of the screen. Try it out, then tweak as you see fit.


And in the midst of such perfection,
I can't help but feel diseased.

Offline

#7 2009-04-25 18:03:00

deadlylife
Member
Registered: 2008-12-24
Posts: 120

Re: Conky "bar" across screen in Openbox.

@SomeGuyDude can I see a screenshot of yours?

Offline

#8 2009-04-25 18:49:38

Isengrin
Member
Registered: 2008-08-07
Posts: 166

Re: Conky "bar" across screen in Openbox.

Here is mine, hope it helps.

Openbox_09-04-2009_1280x800-clean-thumb.png

.conkyrc http://isengrin.iespana.es/Config/.conkyrc


By the way, SomeGuyDude's look great, if I had a better resolution I'd use that as base.

Last edited by Isengrin (2009-04-25 18:51:51)


The Wheel weaves as the Wheel wills, and we are only the thread of the Pattern."
—Moiraine Damodred

Offline

#9 2009-04-25 23:18:27

makimaki
Member
From: Ireland
Registered: 2009-04-02
Posts: 109

Re: Conky "bar" across screen in Openbox.

Here's mine if it is any use.
screen2p.th.png

Conky on LXDE/Openbox on an NC10 (netbook, with res 1024x600)

own_window_type desktop
own_window yes
own_window_transparent yes
own_window_class Conky
draw_outline no
draw_borders no

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

#text_buffer_size 512

# fiddle with window
use_spacer none
use_xft yes
# Xft font when Xft is enabled
#xftfont Bitstream Vera Sans Mono:size=6
xftfont Constantia:size=7

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
#font arial
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 2

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
alignment top_center
#alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 2
gap_y 2

# stuff after 'TEXT' will be formatted on screen

TEXT
CPU:  ${cpu cpu0}%  | PID:${top pid 1} CPU:${color white}${top cpu 1}%$color MEM:${color white}${top mem 1}$color | RAM: ${color white}$memperc%$color | SWAP: ${color white}$swapperc%$color | HOME: ${color white}${fs_free_perc /home}%$color | STORAGE:  ${color white}${fs_free_perc /media/storage}%$color | NETWORK: ${color white}${wireless_essid wlan0}$color IP: ${color white}${addr wlan0}$color Down: ${color white}${downspeed wlan0}k/s$color Up: ${upspeed wlan0} k/s Battery ${color white}${battery_percent BAT1}% ${battery_time BAT1}$color | UPDATES: ${color white}${texeci 3600 iwgetid | grep -q 'ESSID' && perl ~/bin/update.pl}$color | Mail - ${color white}${execi 60 iwgetid | grep -q 'ESSID' && python ~/bin/gmail.py} ${color FFFFFF}

You might have noticed that I use two small scripts (perl and python) to check pacman for updates, and gmail for new emails. I have the scripts included below.

The gmail script came from someone on the arch forums, I can't remember where, but I'm not going to take credit for someone elses good work smile

update.pl

#!/usr/bin/perl
use strict;
use warnings;
my $n = ((`pacman -Qu` =~ m/^[^\s]+\s\((\d+)\):/m) ? $1 : 0);
print "$n"

gmail.py

NOTE: if you have $%& etc in your password you need to \$ \% \& to use it

import os
import string

#Enter your username and password below within double quotes
# eg. username="username" and password="password"
username="user"
password="pass"

com="wget -O - https://"+username+":"+password+"@mail.google.com/mail/feed/atom --no-check-certificate"
temp=os.popen(com)
msg=temp.read()
index=string.find(msg,"<fullcount>")
index2=string.find(msg,"</fullcount>")
fc=int(msg[index+11:index2])
if fc==0:
    print "0 new"    
else:
    print str(fc)+" new"

====* -- Joke
    O
    \|/ --- Me
    / \             Whooooosh

Offline

#10 2009-04-26 03:08:33

Tenken
Member
Registered: 2008-02-01
Posts: 126

Re: Conky "bar" across screen in Openbox.

If your looking for sample conky layouts, there is a whole thread just for posting screen shots and config files.
http://bbs.archlinux.org/viewtopic.php?id=39906

And there is a massive thread in the Ubuntu forums.
http://ubuntuforums.org/showthread.php?t=281865

Offline

Board footer

Powered by FluxBB