brndnmtthws / conky

Light-weight system monitor for X, Wayland (sort of), and other things, too
https://conky.cc
GNU General Public License v3.0
7.17k stars 615 forks source link

alignment and gap_x gap_y not working #89

Closed milushv closed 6 years ago

milushv commented 9 years ago

I am using conky 1.9.0-6 on debian jessie with Gnome 3.14 DE. I'm not able to position Conky on the desktop using alignment or/and gap_x, gap_y. It always starts in the upper left corner of the screen. I am not able to reproduce the same issue in MATE DE. Perhaps it is something Gnome specific? However I am able to push the text all the way to the right edge of the screen with ${offset xxxx}.

conky-all:
  Installed: 1.9.0-6
  Candidate: 1.9.0-6
  Version table:
 *** 1.9.0-6 0
        500 http://ftp.fr.debian.org/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

gnome:
  Installed: 1:3.14+3
  Candidate: 1:3.14+3
  Version table:
 *** 1:3.14+3 0
        500 http://ftp.fr.debian.org/debian/ jessie/main amd64 Packages
        100 /var/lib/dpkg/status

Here's my conky --debug output:

DEBUG(0) [../../src/conky.c:5338]: reading contents from config file '/home/xxxx/.conkyrc'
Conky: desktop window (1200016) is subwindow of root window (2a9)
DEBUG(0) [../../src/x11.c:240]: Found ARGB Visual
Conky: window type - normal
Conky: drawing to created window (0x1800002)
Conky: drawing to double buffer
DEBUG(0) [../../src/specials.c:421]: reallocing graph from 0 to 120
DEBUG(0) [../../src/specials.c:421]: reallocing graph from 0 to 120
DEBUG(0) [../../src/specials.c:421]: reallocing graph from 0 to 120

Here's my .conkyrc

#This config I found at http://blog.segfault.co.in/?p=73 and it was
#written by Rahul.  I only take credit for the heavy modifications I have
#put into it.  Thank you to Rahul for such a clean explanation of how to
#set it up.  I suggest checking out his blog at the above URI.
#strungoutfan78

# Use Xft?
use_xft yes
xftfont OFL Sorts Mill Goudy:size=8
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type normal
own_window_argb_visual yes
own_window_argb_value 100
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#background yes

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

# Minimum size of text area
minimum_size 250 750
#maximum_width 200

# Draw shades?
draw_shades yes

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
border_inner_margin 1

# border width
border_width 1

# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color black
own_window_colour white
color1 white

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

# Gap between borders of screen and text
# same thing as passing -x at command line
#gap_x 0 
#gap_y 0

# Subtract file system buffers from used memory?
no_buffers yes

# set to yes if you want all text to be in uppercase
uppercase no

# number of cpu samples to average
# set to 1 to disable averaging
cpu_avg_samples 2

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none
if_up_strictness address

default_bar_size 120 8

TEXT
################################Weather################################
#${color AA0000}${font Goudy Bookletter 1911:style=Bold}WEATHER${color}${font} ${hr 2}
#                           ${execi 3}${font ConkyWeather:size=44}${execi 3 conkyForecast --location=FRXX0095 --datatype=WF -i}${font}
#${alignc}City: ${execi 3 conkyForecast --location=FRXX0095 --datatype=OB --hideunits}
#${alignc}Weather: ${execi 3 conkyForecast --location=FRXX0095 --datatype=CC --hideunits}
#${alignc}Temperature: ${execi 3 conkyForecast --location=FRXX0095 --datatype=HT}
#${alignc}Feels like: ${execi 3 conkyForecast --location=FRXX0095 --datatype=LT}
#${alignc}Humidity: ${execi 3 conkyForecast --location=FRXX0095 --datatype=HM --hideunits}
#${color AA0000}${font Goudy Bookletter 1911:style=Bold}SYSTEM${color}${font} ${hr 2}
${font openlogos:size=64}${alignc}${color red}J${color}t$color${font}
${font Goudy Bookletter 1911:size=11:style=Bold}${alignc}debian GNU/Linux${font}
#${image $HOME/Debian-OpenLogo.png -p 90,20 -s 100x32}
${font StyleBats:size=16}i${font}   Kernel:  ${alignr}${kernel}
${font StyleBats:size=16}A$color${font} CPU1: ${cpu cpu1}% ${alignr}${freq_g 1}GHz ${cpubar cpu1 8,100}
${font StyleBats:size=16}A$color${font} CPU2: ${cpu cpu2}% ${alignr}${freq_g 2}GHz ${cpubar cpu2 8,100}
${font StyleBats:size=16}A$color${font} CPU3: ${cpu cpu3}% ${alignr}${freq_g 3}GHz ${cpubar cpu3 8,100}
${font StyleBats:size=16}A$color${font} CPU4: ${cpu cpu4}% ${alignr}${freq_g 4}GHz ${cpubar cpu4 8,100}
${font StyleBats:size=16}l${font} RAM:${mem}/${memmax} ${alignr}${membar 8,90}
#${font Webdings:size=16}~$color${font}  Battery: ${battery_percent BAT0}% ${alignr}${battery_bar 8,120 BAT0}
#${font Webdings:size=16}~$color${font}  Battery Time Left:${alignr}${battery_time BAT0 |  cut -c1 }
${font StyleBats:size=16}k$color${font}  Core Temps: ${alignr}${execi 2 sensors | grep 'Core 0' | awk '{print $3}' | cut -c2-3}°C / ${execi 2 sensors | grep 'Core 1' | awk '{print $3}' | cut -c2-3}°C / ${execi 2 sensors | grep 'Core 2' | awk '{print $3}' | cut -c2-3}°C / ${execi 2 sensors | grep 'Core 3' | awk '{print $3}' | cut -c2-3}°C
${font PizzaDude Bullets:size=16}p$color${font}CPU Fan Speed: ${alignr}${execi 2 sensors | grep 'fan2' | awk '{print $2}' | cut -c1-4} RPM
${font PizzaDude Bullets:size=16}p$color${font}Exhaust Fan Speed: ${alignr}${execi 2 sensors | grep 'fan3' | awk '{print $2}' | cut -c1-4} RPM
${font PizzaDude Bullets:size=16}p$color${font}Exhaust Fan 2 Speed: ${alignr}${execi 2 sensors | grep 'fan1' | awk '{print $2}' | cut -c1-4} RPM
${font PizzaDude Bullets:size=16}p$color${font}Intake Fan Speed: ${alignr}${execi 2 sensors | grep 'fan4' | awk '{print $2}' | cut -c1-4} RPM
${font StyleBats:size=16}j${font} SSD Temp: ${alignr}${execi 5 udisks --show-info /dev/sda | grep temp | cut -c 52-53}°C
${font StyleBats:size=16}j${font} HDD Temp: ${alignr}${execi 5 udisks --show-info /dev/sdb | grep temp | cut -c 52-53}°C
${font StyleBats:size=16}q${font} Uptime: ${alignr}${uptime}
################################Graphics Adapter################################
${color AA0000}${font Goudy Bookletter 1911:style=Bold}GRAPHICS${color}${font} ${hr 2}
${color2}GPU Temp: ${alignr}${color0}${nvidia temp} °C
${color2}Fan Speed: ${alignr}${color0}${execi 5 nvidia-settings -q [fan:0]/GPUCurrentFanSpeed -t} %
${voffset 5}${font StyleBats:size=16}k$color${font} GPU Clock: ${alignr}${nvidia gpufreq} MHz
${font StyleBats:size=16}l${font} Mem Clock: ${alignr}${nvidia memfreq} MHz
${font StyleBats:size=16}l${font} Mem Used: ${alignr}${execbar echo "scale=2; $(nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t)/30.72" | bc -q}
${alignr}${execi 2 nvidia-settings -q [gpu:0]/UsedDedicatedGPUMemory -t} / ${execi 2 nvidia-settings -q [gpu:0]/TotalDedicatedGPUMemory -t} MiB    
################################ SSD ################################
${color AA0000}${font Goudy Bookletter 1911:style=Bold}STORAGE${color}${font} ${hr 2}
${voffset 4}${font Pie charts for maps:size=8}/dev/sda${font} ${alignr}${fs_used /}/${fs_size /}
${alignr}${fs_bar 8,120 /}
#${font Pie charts for maps:size=14}/${font}   
${voffset 16}${voffset -5}Disk Write: ${diskio_write sda} 
${alignr}${voffset -24}${diskiograph_write sda 32,120 FFFFFF AA0000 -t}
${font Pie charts for maps:size=8}/dev/sdb${font} ${alignr}${fs_used /media/hdd1}/${fs_size /media/hdd1}    
${alignr}${fs_bar 8,120 /media/hdd1}
################################ WLAN ################################
${if_up wlan0}${color AA0000}${font Goudy Bookletter 1911:style=Bold}WIRELESS${color}${font} ${hr 2}
${voffset 4}${font PizzaDude Bullets:size=14}O$color${font}   Up: ${upspeed wlan0} ${alignr}${voffset -6}${upspeedgraph wlan0 16,120 AA0000 AA0000}
${voffset 4}${font PizzaDude Bullets:size=14}U$color${font}   Down: ${downspeed wlan0} ${alignr}${voffset -6}${downspeedgraph wlan0 16,120 AA0000 AA0000}
${voffset 4}${font PizzaDude Bullets:size=14}N$color${font}   Upload: ${alignr}${totalup wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}T$color${font}   Download: ${alignr}${totaldown wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}Z${font}   Signal: ${wireless_link_qual_perc wlan0}% ${alignr}${wireless_link_bar 8,120 wlan0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr wlan0}
${endif}${if_up usb0}
${color AA0000}${font Goudy Bookletter 1911:style=Bold}USB TETHER${color}${font} ${hr 2}
${voffset 4}${font PizzaDude Bullets:size=14}O$color${font}   Up: ${upspeed usb0} ${alignr}${voffset -6}${upspeedgraph usb0 16,120 AA0000 AA0000}
${voffset 4}${font PizzaDude Bullets:size=14}U$color${font}   Down: ${downspeed usb0} ${alignr}${voffset -6}${downspeedgraph usb0 16,120 AA0000 AA0000}
${voffset 4}${font PizzaDude Bullets:size=14}N$color${font}   Upload: ${alignr}${totalup usb0}
${voffset 4}${font PizzaDude Bullets:size=14}T$color${font}   Download: ${alignr}${totaldown usb0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr usb0}
${endif}${if_up eth0}${color AA0000}${font Goudy Bookletter 1911:style=Bold}ETHERNET${color}${font} ${hr 2}
${voffset 4}${font PizzaDude Bullets:size=14}O$color${font}   Up: ${upspeed eth0} ${alignr}${voffset -6}${upspeedgraph eth0 16,120 AA0000 AA0000}
${voffset 4}${font PizzaDude Bullets:size=14}U$color${font}   Down: ${downspeed eth0} ${alignr}${voffset -6}${downspeedgraph eth0 16,120 AA0000 AA0000}
${voffset 4}${font PizzaDude Bullets:size=14}N$color${font}   Upload: ${alignr}${totalup eth0}
${voffset 4}${font PizzaDude Bullets:size=14}T$color${font}   Download: ${alignr}${totaldown eth0}
${voffset 4}${font PizzaDude Bullets:size=14}a${font}   Local Ip: ${alignr}${addr eth0}
${endif}${color AA0000}${font Goudy Bookletter 1911:style=Bold}PROCESSES${color}${font} ${hr 2}
NAME $alignr PID      CPU       MEM
${top_mem name 1} $alignr ${top_mem pid 1}  ${top_mem cpu 1}   ${top_mem mem_res 1}
${top_mem name 2} $alignr ${top_mem pid 2}  ${top_mem cpu 2}   ${top_mem mem_res 2}
${top_mem name 3} $alignr ${top_mem pid 3}  ${top_mem cpu 3}   ${top_mem mem_res 3}
${top_mem name 4} $alignr ${top_mem pid 4}  ${top_mem cpu 4}   ${top_mem mem_res 4}
${top_mem name 5} $alignr ${top_mem pid 5}  ${top_mem cpu 5}   ${top_mem mem_res 5}
${top_mem name 6} $alignr ${top_mem pid 6}  ${top_mem cpu 6}   ${top_mem mem_res 6}
${top_mem name 7} $alignr ${top_mem pid 7}  ${top_mem cpu 7}   ${top_mem mem_res 7}
${top_mem name 8} $alignr ${top_mem pid 8}  ${top_mem cpu 8}   ${top_mem mem_res 8}
#${color}${font}${execpi 60 DJS=`date +%_d`; cal -h | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color red}'"$DJS"'$color'/}

If you need additional information I'll be happy to help.

oberon-manjaro commented 9 years ago

Are you aware that in the conkyrc you post the positioning is commented out (and set to 0)?

milushv commented 9 years ago

I am aware of that. I tried alignment, gap and the combination of both. Nothing seems to change conky's position. As you can probably see the alignment parameter is not commented, yet it does not work.

lasers commented 6 years ago

3 years 2 months passed. Can you try this again with the new syntax? I don't know if you're still using conky, MATE DE, or Gnome DE. What's the status of this issue now? Let me know. Thanks.

lasers commented 6 years ago

Closed via https://github.com/brndnmtthws/conky/pull/615.