Conky width and height issue [SOLVED]

Forum rules
Before you post please read this

Conky width and height issue [SOLVED]

Postby edtheuniquegeek on Tue Mar 13, 2012 10:15 am

I am having a problem with getting a wider and higher window in my script. Here is a screenshot of what I have:

Image

As you can see some of the lettering is cut off on the right and at the bottom. Here is my config:

Code: Select all
background yes
update_interval 1

cpu_avg_samples 2
net_avg_samples 2
temperature_unit fahrenheit

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 10
gap_y 10
minimum_size 5 5
maximum_width 300
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
#alignment tr
alignment top_middle

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 00EE00
color5 EF5A29
color6 5abdf6


TEXT
${font Droid Sans:size=10,weight:bold}${color4}File Commands
${font Droid Sans:size=8}${color}+ ls : directory listing
${font Droid Sans:size=8}${color}+ ls -al : formatted listing with hidden files
${font Droid Sans:size=8}${color}+ cd dir : change directory to dir
${font Droid Sans:size=8}${color}+ cd : change to home
${font Droid Sans:size=8}${color}+ pwd : show current directory
${font Droid Sans:size=8}${color}+ mkdir dir : create a directory dir
${font Droid Sans:size=8}${color}+ rm file : delete file
${font Droid Sans:size=8}${color}+ rm -r dir : delete directory dir
${font Droid Sans:size=8}${color}+ rm -f file : force remove file
${font Droid Sans:size=8}${color}+ rm -rf dir : force remove directory dir *
${font Droid Sans:size=8}${color}+ cp file1 file2 : copy file1 to file2
${font Droid Sans:size=8}${color}+ cp -r dir1 dir2 : copy dir1 to dir2
${font Droid Sans:size=8}${color}+ mv file1 file2 : rename or move file1 to file2

${font Droid Sans:size=10,weight:bold}${color4}Process Management
${font Droid Sans:size=8}${color}+ ps : Show snapshot of processes
${font Droid Sans:size=8}${color}+ top : Show real time processes
${font Droid Sans:size=8}${color}+ kill pid : Kill process with id pid
${font Droid Sans:size=8}${color}+ pkill name : Kill process with name name
${font Droid Sans:size=8}${color}+ killall name : Kill all processes with names beginning name

${font Droid Sans:size=10,weight:bold}${color4}Search Files
${font Droid Sans:size=8}${color}+ grep pattern files : Search for pattern in files
${font Droid Sans:size=8}${color}+ grep -i : Case insens­itive search
${font Droid Sans:size=8}${color}+ grep -r : Recursive search
${font Droid Sans:size=8}${color}+ grep -v : Inverted search
${font Droid Sans:size=8}${color}+ grep -o : Show matched part of file only
${font Droid Sans:size=8}${color}+ find /dir/ -name name* : Find files starting with name in dir
${font Droid Sans:size=8}${color}+ find /dir/ -user name : Find files owned by name in dir
${font Droid Sans:size=8}${color}+ find /dir/ -mmin num : Find files modifed less than num minutes ago in dir
${font Droid Sans:size=8}${color}+ whereis command : Find binary / source / manual for command
${font Droid Sans:size=8}${color}+ locate file : Find file (quick search of system index)


What can I change to get a wider and higher window?
Thanks.
Last edited by edtheuniquegeek on Tue Mar 13, 2012 2:59 pm, edited 1 time in total.
User avatar
edtheuniquegeek
Level 3
Level 3
 
Posts: 153
Joined: Wed Apr 07, 2010 6:28 am
Location: Florida

Linux Mint is funded by ads and donations.
 

Re: Conky width and height issue

Postby pluraldave on Tue Mar 13, 2012 12:07 pm

maximum_width is cropping the side. Not sure what's going on with the bottom, could be as simple as you adding extra information after starting conky but gap_y is the only thing in there to do with height.
User avatar
pluraldave
Level 5
Level 5
 
Posts: 709
Joined: Mon Sep 01, 2008 8:05 am

Re: Conky width and height issue

Postby edtheuniquegeek on Tue Mar 13, 2012 12:49 pm

Interestingly enough, I put the config on my laptop and changed it to alignment top_left and all the text is visible.

Image

Code: Select all
background yes
#update_interval 1

double_buffer yes
#no_buffers yes
text_buffer_size 3072

gap_x 1
gap_y 1
#minimum_size 500 0
maximum_width 1200
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_margin 0
#border_outer_margin 0
alignment top_left

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 00EE00
color5 EF5A29
color6 5abdf6


TEXT
###FILE COMMANDS###
${font Droid Sans:size=10,weight:bold}${color4}File Commands
${font Droid Sans:size=8}${color}+ ls : directory listing
${font Droid Sans:size=8}${color}+ ls -al : formatted listing with hidden files
${font Droid Sans:size=8}${color}+ cd dir : change directory to dir
${font Droid Sans:size=8}${color}+ cd : change to home
${font Droid Sans:size=8}${color}+ pwd : show current directory
${font Droid Sans:size=8}${color}+ mkdir dir : create a directory dir
${font Droid Sans:size=8}${color}+ rm file : delete file
${font Droid Sans:size=8}${color}+ rm -r dir : delete directory dir
${font Droid Sans:size=8}${color}+ rm -f file : force remove file
${font Droid Sans:size=8}${color}+ rm -rf dir : force remove directory dir *
${font Droid Sans:size=8}${color}+ cp file1 file2 : copy file1 to file2
${font Droid Sans:size=8}${color}+ cp -r dir1 dir2 : copy dir1 to dir2
${font Droid Sans:size=8}${color}+ mv file1 file2 : rename or move file1 to file2

###PROCESS MANAGEMENT###
${font Droid Sans:size=10,weight:bold}${color4}Process Management
${font Droid Sans:size=8}${color}+ ps : Show snapshot of processes
${font Droid Sans:size=8}${color}+ top : Show real time processes
${font Droid Sans:size=8}${color}+ kill pid : Kill process with id pid
${font Droid Sans:size=8}${color}+ pkill name : Kill process with name name
${font Droid Sans:size=8}${color}+ killall name : Kill all processes with names beginning name

###SEARCH FILES###
${font Droid Sans:size=10,weight:bold}${color4}Search Files
${font Droid Sans:size=8}${color}+ grep pattern files : Search for pattern in files
${font Droid Sans:size=8}${color}+ grep -i : Case insens­itive search
${font Droid Sans:size=8}${color}+ grep -r : Recursive search
${font Droid Sans:size=8}${color}+ grep -v : Inverted search
${font Droid Sans:size=8}${color}+ grep -o : Show matched part of file only
${font Droid Sans:size=8}${color}+ find /dir/ -name name* : Find files starting with name in dir
${font Droid Sans:size=8}${color}+ find /dir/ -user name : Find files owned by name in dir
${font Droid Sans:size=8}${color}+ find /dir/ -mmin num : Find files modifed less than num minutes ago in dir
${font Droid Sans:size=8}${color}+ whereis command : Find binary / source / manual for command
${font Droid Sans:size=8}${color}+ locate file : Find file (quick search of system index)

${font Droid Sans:size=10,weight:bold}${color4}Change DNS IP
${font Droid Sans:size=8}${color}+ cp /etc/resolv.conf /etc/resolv.conf.bak.`date +%m%d%y`
${font Droid Sans:size=8}${color}+ cp /etc/resolv.conf.static /etc/resolv.conf
User avatar
edtheuniquegeek
Level 3
Level 3
 
Posts: 153
Joined: Wed Apr 07, 2010 6:28 am
Location: Florida

Re: Conky width and height issue

Postby edtheuniquegeek on Tue Mar 13, 2012 1:26 pm

I spoke too soon. I added more to the config on my laptop and the bottom is being cut off.

Image

Code: Select all
background yes
#update_interval 1

double_buffer yes
#no_buffers yes
text_buffer_size 3072

gap_x 1
gap_y 1
#minimum_size 500 0
maximum_width 1200
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_margin 0
#border_outer_margin 0
alignment top_left

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 00EE00
color5 EF5A29
color6 5abdf6


TEXT
###FILE COMMANDS###
${font Droid Sans:size=10,weight:bold}${color4}File Commands
${font Droid Sans:size=8}${color}+ ls : directory listing
${font Droid Sans:size=8}${color}+ ls -al : formatted listing with hidden files
${font Droid Sans:size=8}${color}+ cd dir : change directory to dir
${font Droid Sans:size=8}${color}+ cd : change to home
${font Droid Sans:size=8}${color}+ pwd : show current directory
${font Droid Sans:size=8}${color}+ mkdir dir : create a directory dir
${font Droid Sans:size=8}${color}+ rm file : delete file
${font Droid Sans:size=8}${color}+ rm -r dir : delete directory dir
${font Droid Sans:size=8}${color}+ rm -f file : force remove file
${font Droid Sans:size=8}${color}+ rm -rf dir : force remove directory dir *
${font Droid Sans:size=8}${color}+ cp file1 file2 : copy file1 to file2
${font Droid Sans:size=8}${color}+ cp -r dir1 dir2 : copy dir1 to dir2
${font Droid Sans:size=8}${color}+ mv file1 file2 : rename or move file1 to file2

###PROCESS MANAGEMENT###
${font Droid Sans:size=10,weight:bold}${color4}Process Management
${font Droid Sans:size=8}${color}+ ps : Show snapshot of processes
${font Droid Sans:size=8}${color}+ top : Show real time processes
${font Droid Sans:size=8}${color}+ kill pid : Kill process with id pid
${font Droid Sans:size=8}${color}+ pkill name : Kill process with name name
${font Droid Sans:size=8}${color}+ killall name : Kill all processes with names beginning name

###SEARCH FILES###
${font Droid Sans:size=10,weight:bold}${color4}Search Files
${font Droid Sans:size=8}${color}+ grep pattern files : Search for pattern in files
${font Droid Sans:size=8}${color}+ grep -i : Case insens­itive search
${font Droid Sans:size=8}${color}+ grep -r : Recursive search
${font Droid Sans:size=8}${color}+ grep -v : Inverted search
${font Droid Sans:size=8}${color}+ grep -o : Show matched part of file only
${font Droid Sans:size=8}${color}+ find /dir/ -name name* : Find files starting with name in dir
${font Droid Sans:size=8}${color}+ find /dir/ -user name : Find files owned by name in dir
${font Droid Sans:size=8}${color}+ find /dir/ -mmin num : Find files modifed less than num minutes ago in dir
${font Droid Sans:size=8}${color}+ find / -name "sophie*.jpg" : Looks for any file on the system that starts with sophie and ends in extension .jpg
${font Droid Sans:size=8}${color}+ find / -name "*.html" : Looks for any file with .html extension
${font Droid Sans:size=8}${color}+ whereis command : Find binary / source / manual for command
${font Droid Sans:size=8}${color}+ locate file : Find file (quick search of system index)

###DNS CHANGE###
${font Droid Sans:size=10,weight:bold}${color4}Change DNS IP
${font Droid Sans:size=8}${color}+ cp /etc/resolv.conf /etc/resolv.conf.bak.`date +%m%d%y`

###NETWORK MAPPING###
${font Droid Sans:size=10,weight:bold}${color4}Open network resource
${font Droid Sans:size=8}${color}+ nautilus smb://ipaddress/folder
User avatar
edtheuniquegeek
Level 3
Level 3
 
Posts: 153
Joined: Wed Apr 07, 2010 6:28 am
Location: Florida

Re: Conky width and height issue

Postby zerozero on Tue Mar 13, 2012 2:33 pm

i believe this works (if it doesn't no harm done): try putting an empty line at the end of the conkyrc.
Image

[ bliss of ignorance ]
zerozero
Level 16
Level 16
 
Posts: 6484
Joined: Tue Jul 07, 2009 2:29 pm

Re: Conky width and height issue [SOLVED]

Postby edtheuniquegeek on Tue Mar 13, 2012 2:55 pm

I already fixed it and I have no idea how I did it.

Image

Code: Select all
background yes
#update_interval 1

double_buffer yes
#no_buffers yes
text_buffer_size 3082

gap_x 1
gap_y 10
minimum_size 180 500
maximum_width 1200
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_margin 0
#border_inner_margin 0
#border_outer_margin 0
alignment top_left

draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders no

override_utf8_locale yes
use_xft yes
xftfont caviar dreams:size=8
xftalpha 0.5
uppercase no

default_color FFFFFF
color1 DDDDDD
color2 AAAAAA
color3 888888
color4 00EE00
color5 EF5A29
color6 5abdf6


TEXT
###FILE COMMANDS###
${font Droid Sans:size=9,weight:bold}${color4}File Commands
${font Droid Sans:size=7}${color}+ ls : directory listing
${font Droid Sans:size=7}${color}+ ls -al : formatted listing with hidden files
${font Droid Sans:size=7}${color}+ cd dir : change directory to dir
${font Droid Sans:size=7}${color}+ cd : change to home
${font Droid Sans:size=7}${color}+ pwd : show current directory
${font Droid Sans:size=7}${color}+ mkdir dir : create a directory dir
${font Droid Sans:size=7}${color}+ rm file : delete file
${font Droid Sans:size=7}${color}+ rm -r dir : delete directory dir
${font Droid Sans:size=7}${color}+ rm -f file : force remove file
${font Droid Sans:size=7}${color}+ rm -rf dir : force remove directory dir *
${font Droid Sans:size=7}${color}+ cp file1 file2 : copy file1 to file2
${font Droid Sans:size=7}${color}+ cp -r dir1 dir2 : copy dir1 to dir2
${font Droid Sans:size=7}${color}+ mv file1 file2 : rename or move file1 to file2

###PROCESS MANAGEMENT###
${font Droid Sans:size=9,weight:bold}${color4}Process Management
${font Droid Sans:size=7}${color}+ ps : Show snapshot of processes
${font Droid Sans:size=7}${color}+ top : Show real time processes
${font Droid Sans:size=7}${color}+ kill pid : Kill process with id pid
${font Droid Sans:size=7}${color}+ pkill name : Kill process with name name
${font Droid Sans:size=7}${color}+ killall name : Kill all processes with names beginning name

###SEARCH FILES###
${font Droid Sans:size=9,weight:bold}${color4}Search Files
${font Droid Sans:size=7}${color}+ grep pattern files : Search for pattern in files
${font Droid Sans:size=7}${color}+ grep -i : Case insens­itive search
${font Droid Sans:size=7}${color}+ grep -r : Recursive search
${font Droid Sans:size=7}${color}+ grep -v : Inverted search
${font Droid Sans:size=7}${color}+ grep -o : Show matched part of file only
${font Droid Sans:size=7}${color}+ find /dir/ -name name* : Find files starting with name in dir
${font Droid Sans:size=7}${color}+ find /dir/ -user name : Find files owned by name in dir
${font Droid Sans:size=7}${color}+ find /dir/ -mmin num : Find files modifed less than num minutes ago in dir
${font Droid Sans:size=7}${color}+ find / -name "sophie*.jpg" : Looks for any file that starts with sophie and ends in .jpg
${font Droid Sans:size=7}${color}+ find / -name "*.html" : Looks for any file with .html extension
${font Droid Sans:size=7}${color}+ whereis command : Find binary / source / manual for command
${font Droid Sans:size=7}${color}+ locate file : Find file (quick search of system index)

###DNS CHANGE###
${font Droid Sans:size=9,weight:bold}${color4}Change DNS IP
${font Droid Sans:size=7}${color}+ cp /etc/resolv.conf /etc/resolv.conf.bak.`date +%m%d%y`

###NETWORK UTILITIES###
${font Droid Sans:size=9,weight:bold}${color4}Open network resource
${font Droid Sans:size=7}${color}+ nautilus smb://ipaddress/folder

${font Droid Sans:size=9,weight:bold}${color4}NMAP
${font Droid Sans:size=7}${color}+ nmap -sP 192.168.0.1/24 : Scan the network
User avatar
edtheuniquegeek
Level 3
Level 3
 
Posts: 153
Joined: Wed Apr 07, 2010 6:28 am
Location: Florida


Return to Compiz, Conky, Docks, & Widgets

Who is online

Users browsing this forum: No registered users and 1 guest