Announcement

Collapse
No announcement yet.

Conky Not Transparent At Bootup

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Conky Not Transparent At Bootup

    For some reason, Conky isnt transparent whenever I startup. If I manually change the wallpaper, Conky then turns transparent. Conky runs in its own window and transparency is on... Is there a way around this?

    If not, could someone point me to a script that would reload the wallpaper after conky starts (or reloads the wallpaper, say, 12 seconds after the DE loads)? I wish I knew scripts.. Ive wanted to make quite a few, but I just dont know the commands or format.

    Thanks..

    #2
    Re: Conky Not Transparent At Bootup

    I also noticed that it turns transparent after a wallpaper change. I'll post back if I figure out the correct setting. I know there is a .conkyrc file that is hidden in your home directory, if not then you can try some from here:
    http://conky.sourceforge.net/screenshots.html

    You can then edit the .conkyrc file and adjust/tinker the settings as you need to.
    Here is a link to a description of some of the settings:
    http://conky.sourceforge.net/config_settings.html

    Comment


      #3
      Re: Conky Not Transparent At Bootup

      Originally posted by XstatyK
      I also noticed that it turns transparent after a wallpaper change. I'll post back if I figure out the correct setting. I know there is a .conkyrc file that is hidden in your home directory, if not then you can try some from here:
      http://conky.sourceforge.net/screenshots.html

      You can then edit the .conkyrc file and adjust/tinker the settings as you need to.
      Here is a link to a description of some of the settings:
      http://conky.sourceforge.net/config_settings.html
      If we can find out the terminal command to reload the wallpaper, that would be the best bet. Ive been all through the .conkyrc file and I havent had any luck. There is no doubt a terminal command executed when you click ok to change the wallpaper. If we can find that command, we could simply make a script, chmod it and throw it in the autostart folder to make the wallpaper manually refresh.

      Comment


        #4
        Re: Conky Not Transparent At Bootup

        I can't help with the solution but I think I can shed some light on the cause...

        "Transparency" in X (apart from Beryl et al) isn't true transparency. Rather it takes a snapshot of the desktop behind the window at the time it gets painted, and uses that as its background.

        If, as I suspect is happening here, the desktop wallpaper hasn't loaded when Conky starts, then it won't be using the correct image to fake transparency. Reloading the wallpaper obviously triggers a repaint.

        Comment


          #5
          Re: Conky Not Transparent At Bootup

          Originally posted by JamesM
          I can't help with the solution but I think I can shed some light on the cause...

          "Transparency" in X (apart from Beryl et al) isn't true transparency. Rather it takes a snapshot of the desktop behind the window at the time it gets painted, and uses that as its background.

          If, as I suspect is happening here, the desktop wallpaper hasn't loaded when Conky starts, then it won't be using the correct image to fake transparency. Reloading the wallpaper obviously triggers a repaint.
          The weird thing is, if I kill conky with htop and reload it through a terminal, it still isnt transparent. I must change the wallpaper in order for its psuedo transparency to kick in. What you are saying really makes sense, and what its currently doing doesnt make any. Conky loads up 3-4 AFTER KDE is finished loading, or at least it appears that way..

          I messed around with terminal crap last night, but I still havent figured out any commands. kcmshell background loads the background changing GUI, but beyond that the terminal doesnt give me any readouts as to what inputs its making whenever the paper is changed. Not only that, but id also have to figure out how to make the gui stay hidden (kcmshell background --silent didnt work).

          Jesus, maybe I should just switch to black wallpaper

          Comment


            #6
            Re: Conky Not Transparent At Bootup

            I think it's kdesktop that does the wallpaper. I'm sure you can make a DCOP call to reload the wallpaper, but there's no man page for kdesktop, and --help isn't helpful.
            For external use only.

            Comment


              #7
              Re: Conky Not Transparent At Bootup

              Originally posted by SheeEttin
              I think it's kdesktop that does the wallpaper. I'm sure you can make a DCOP call to reload the wallpaper, but there's no man page for kdesktop, and --help isn't helpful.
              Haha! I freakin got it 8)

              Ok, so I found this page:
              http://docs.kde.org/userguide/script...e-desktop.html

              Then with a little tinkering, I managed to get Conky transparent on every bootup. I first realized that the configure desktop GUI uses dcop to change the wallpaper, so I would have to manually change the wallpaper everytime before I shutdown so it would load transparent.

              I dont know any if/or arguments for bash. This made it impossible to ensure transparency with 1 script. So, i took the wallpaper I wanted and created a duplicate under a different name. I then made two scripts with delays to allow conky to load first, then made them executable. These are my scripts:

              sleep 1
              #!/bin/bash
              dcop kdesktop KBackgroundIface setWallpaper /home/user/punisher21.jpg 6

              sleep 2
              #!/bin/bash
              dcop kdesktop KBackgroundIface setWallpaper /home/user/punisher20.jpg 6

              The 6 at the end of the script makes the wallpaper 'scaled'. You change the numbers to get different effects. I just change the scripts to the name of the current wallpaper that I want and all is peachy.

              Kind of hacked I guess, but it works...

              Comment


                #8
                Re: Conky Not Transparent At Bootup

                Little advice on that script of yours: you only need one #!/bin/bash, and it goes at the top of your script.
                For external use only.

                Comment


                  #9
                  Re: Conky Not Transparent At Bootup

                  Ok, here we go. I have Beryl, Conky loading at boot, WITH x-parancy, and desktop icons. On boot, every boot.

                  I never heard of Conky until today, so I thought I'd try the challenge. Here is what my 4 hours of research, and trial fruited.

                  First of all, here is my .conkyrc; which lives in /home/-user-/
                  I left in the original authors personal tags. It was just 'right'.

                  Code:
                  # UBUNTU-CONKY
                  # A comprehensive conky script, configured for use on
                  # Ubuntu / Debian Gnome, without the need for any external scripts.
                  #
                  # Based on conky-jc and the default .conkyrc.
                  # INCLUDES:
                  # - tail of /var/log/messages 
                  # - netstat connections to your computer
                  #
                  # -- Pengo (conky@pengo.us)
                  #
                  
                  # Create own window instead of using desktop (required in nautilus)
                  own_window yes
                  own_window_type override
                  own_window_transparent yes
                  own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
                  
                  # Use double buffering (reduces flicker, may not work for everyone)
                  double_buffer yes
                  
                  # fiddle with window
                  use_spacer yes
                  use_xft no
                  
                  # 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 9
                  
                  # 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_left
                  alignment top_right
                  #alignment bottom_left
                  #alignment bottom_right
                  
                  # Gap between borders of screen and text
                  gap_x 10
                  gap_y 10
                  
                  # stuff after 'TEXT' will be formatted on screen
                  
                  TEXT
                  $color
                  ${color orange}SYSTEM ${hr 2}$color
                  $nodename $sysname $kernel on $machine
                  
                  ${color orange}CPU ${hr 2}$color
                  ${freq}MHz  Load: ${loadavg}  Temp: ${acpitemp}
                  $cpubar
                  ${cpugraph 000000 ffffff}
                  NAME       PID    CPU%   MEM%
                  ${top name 1} ${top pid 1}  ${top cpu 1}  ${top mem 1}
                  ${top name 2} ${top pid 2}  ${top cpu 2}  ${top mem 2}
                  ${top name 3} ${top pid 3}  ${top cpu 3}  ${top mem 3}
                  ${top name 4} ${top pid 4}  ${top cpu 4}  ${top mem 4}
                  
                  ${color orange}MEMORY / DISK ${hr 2}$color
                  RAM:  $memperc%  ${membar 6}$color
                  Swap: $swapperc%  ${swapbar 6}$color
                  
                  Root: ${fs_free_perc /}%  ${fs_bar 6 /}$color 
                  hda1: ${fs_free_perc /media/hda1}%  ${fs_bar 6 /media/hda1}$color
                  hdb3: ${fs_free_perc /media/hdb3}%  ${fs_bar 6 /media/hdb3}
                  
                  ${color orange}NETWORK (${addr eth0}) ${hr 2}$color
                  Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
                  ${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0 
                  25,140 000000 00ff00}$color
                  Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
                  Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 
                  61000 count}${alignr}Total: ${tcp_portmon 1 65535 count}
                  
                  ${color orange}LOGGING ${hr 2}$color
                  ${execi 30 tail -n3 /var/log/messages | fold -w50}
                  
                  ${color orange}FORTUNE ${hr 2}$color
                  ${execi 120 fortune -s | fold -w50}
                  Dell SC1425<br />1 Xeon 3GHZ CPU<br />1GB ECC-DDR2 RAM<br />Onboard ATI Radeon 7000-M&nbsp; w/ 16MB Fixed/unshared RAM<br />Dual 82541Gl Gigabit Nic&#39;s<br />DVD-ROM/CD-RW Combo<br />73GB SCSI Drive.<br />Never got Compiz to run properly on the ATI, but that is secondary of course.

                  Comment


                    #10
                    Re: Conky Not Transparent At Bootup

                    Here is what I added into /etc/X11/xorg.conf

                    Section "Module"
                    Load "dbe"
                    Load "i2c"
                    Load "bitmap"
                    Load "ddc"
                    Load "extmod"
                    Load "freetype"
                    Load "int10"
                    Load "vbe"
                    load "glx"
                    load "v4l"
                    The bolded is ALL I added

                    Then I installed feh
                    and wrote a script called conkyback.sh and put in the variables.
                    Code:
                    #!/bin/bash
                    feh --bg-scale `dcop kdesktop KBackgroundIface currentWallpaper 1`
                    This is a command line tool to sync the root and user backgrounds.

                    Ok, now to make sense of it all.

                    Sorry, I had to get it down before I forgot, and it fell into the bit-bucket.

                    Install Conky
                    open a terminal and type

                    cd /home/-user/ -enter-
                    nano -w .conkyrc -enter-

                    paste the above code into the new empty file. alt-o to save alt-x to exit. This can be done with your favorite editor also.

                    back in the terminal

                    cd .kde/Autostart -enter-
                    ln -s /usr/bin/conky -enter-
                    nano -w conkybak.sh -enter-

                    paste the script code into the empty file
                    alt-o to save, alt-x to exit or use your favorite editor.

                    you should be in the /home/-user-/.kde/Autostart directory still, if not repeat the above steps IN that directory.

                    in terminal type
                    cmod 755 conkybak.sh -enter-
                    ln -s /usr/bin/beryl-manager
                    exit
                    reboot


                    This should be it.
                    GL!
                    Dell SC1425<br />1 Xeon 3GHZ CPU<br />1GB ECC-DDR2 RAM<br />Onboard ATI Radeon 7000-M&nbsp; w/ 16MB Fixed/unshared RAM<br />Dual 82541Gl Gigabit Nic&#39;s<br />DVD-ROM/CD-RW Combo<br />73GB SCSI Drive.<br />Never got Compiz to run properly on the ATI, but that is secondary of course.

                    Comment


                      #11
                      Re: Conky Not Transparent At Bootup

                      I've played with several .conkyrc files, aka 'scripts', and this is the one I landed on. Please note that the 'bolded' section is all I've been adding/changing to the .conkyrc example files I've found online. Well, and colours and such. This thing is KEWL!!!! HERE Each script is a tad different, for this on please replace /home and /mame with the paths you'd like to monitor. i.e. / and /home

                      GL!!! Hope this all helped, sorry it's not layed out a tad better.

                      # set to yes if you want Conky to be forked in the background
                      background no

                      cpu_avg_samples 2
                      net_avg_samples 2

                      out_to_console no

                      # X font when Xft is disabled, you can pick one with program xfontsel
                      #font 7x12
                      #font 6x10
                      #font 7x13
                      #font 8x13
                      #font 7x12
                      #font *mintsmild.se*
                      #font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
                      #font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

                      # Use Xft?
                      use_xft yes

                      # Xft font when Xft is enabled
                      xftfont Bitstream Vera Sans Mono:size=8

                      # own_window_transparent yes
                      # own_window_colour hotpink
                      # Text alpha when using Xft
                      xftalpha 0.8

                      on_bottom yes

                      # mail spool
                      mail_spool $MAIL

                      # Update interval in seconds
                      update_interval 3.0
                      # Create own window instead of using desktop (required in nautilus)
                      own_window yes
                      own_window_type override
                      own_window_transparent yes
                      own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

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


                      # Minimum size of text area
                      #minimum_size 280 5
                      #maximum_width 150

                      # Draw shades?
                      draw_shades no

                      # Draw outlines?
                      draw_outline no

                      # Draw borders around text
                      draw_borders no

                      # Stippled borders?
                      stippled_borders 0

                      # border margins
                      border_margin 4

                      # border width
                      border_width 1

                      # Default colors and also border colors
                      default_color green
                      default_shade_color white
                      default_outline_color white

                      # Text alignment, other possible values are commented
                      #alignment top_left
                      #minimum_size 10 10
                      gap_x 13
                      gap_y 13
                      #alignment top_right
                      alignment top_right
                      #alignment bottom_right

                      # Gap between borders of screen and text

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

                      # Subtract file system buffers from used memory?
                      no_buffers yes

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

                      # boinc (seti) dir
                      # seti_dir /opt/seti

                      # Possible variables to be used:
                      #
                      # Variable Arguments Description
                      # acpiacadapter ACPI ac adapter state.
                      # acpifan ACPI fan state
                      # acpitemp ACPI temperature.
                      # adt746xcpu CPU temperature from therm_adt746x
                      # adt746xfan Fan speed from therm_adt746x
                      # battery (num) Remaining capasity in ACPI or APM
                      # battery. ACPI battery number can be
                      # given as argument (default is BAT0).
                      # buffers Amount of memory buffered
                      # cached Amount of memory cached
                      # color (color) Change drawing color to color
                      # cpu CPU usage in percents
                      # cpubar (height) Bar that shows CPU usage, height is
                      # bar's height in pixels
                      # downspeed net Download speed in kilobytes
                      # downspeedf net Download speed in kilobytes with one
                      # decimal
                      # exec shell command Executes a shell command and displays
                      # the output in torsmo. warning: this
                      # takes a lot more resources than other
                      # variables. I'd recommend coding wanted
                      # behaviour in C and posting a patch :-).
                      # execi interval, shell Same as exec but with specific interval.
                      # command Interval can't be less than
                      # update_interval in configuration.
                      # fs_bar (height), (fs) Bar that shows how much space is used on
                      # a file system. height is the height in
                      # pixels. fs is any file on that file
                      # system.
                      # fs_free (fs) Free space on a file system available
                      # for users.
                      # fs_free_perc (fs) Free percentage of space on a file
                      # system available for users.
                      # fs_size (fs) File system size
                      # fs_used (fs) File system used space
                      # hr (height) Horizontal line, height is the height in
                      # pixels
                      # i2c (dev), type, n I2C sensor from sysfs (Linux 2.6). dev
                      # may be omitted if you have only one I2C
                      # device. type is either in (or vol)
                      # meaning voltage, fan meaning fan or temp
                      # meaning temperature. n is number of the
                      # sensor. See /sys/bus/i2c/devices/ on
                      # your local computer.
                      # kernel Kernel version
                      # loadavg (1), (2), (3) System load average, 1 is for past 1
                      # minute, 2 for past 5 minutes and 3 for
                      # past 15 minutes.
                      # machine Machine, i686 for example
                      # mails Mail count in mail spool. You can use
                      # program like fetchmail to get mails from
                      # some server using your favourite
                      # protocol. See also new_mails.
                      # mem Amount of memory in use
                      # membar (height) Bar that shows amount of memory in use
                      # memmax Total amount of memory
                      # memperc Percentage of memory in use
                      # new_mails Unread mail count in mail spool.
                      # nodename Hostname
                      # outlinecolor (color) Change outline color
                      # pre_exec shell command Executes a shell command one time before
                      # torsmo displays anything and puts output
                      # as text.
                      # processes Total processes (sleeping and running)
                      # running_processes Running processes (not sleeping),
                      # requires Linux 2.6
                      # shadecolor (color) Change shading color
                      # stippled_hr (space), Stippled (dashed) horizontal line
                      # (height)
                      # swapbar (height) Bar that shows amount of swap in use
                      # swap Amount of swap in use
                      # swapmax Total amount of swap
                      # swapperc Percentage of swap in use
                      # sysname System name, Linux for example
                      # time (format) Local time, see man strftime to get more
                      # information about format
                      # totaldown net Total download, overflows at 4 GB on
                      # Linux with 32-bit arch and there doesn't
                      # seem to be a way to know how many times
                      # it has already done that before torsmo
                      # has started.
                      # totalup net Total upload, this one too, may overflow
                      # updates Number of updates (for debugging)
                      # upspeed net Upload speed in kilobytes
                      # upspeedf net Upload speed in kilobytes with one
                      # decimal
                      # uptime Uptime
                      # uptime_short Uptime in a shorter format
                      #
                      # seti_prog Seti@home current progress
                      # seti_progbar (height) Seti@home current progress bar
                      # seti_credit Seti@hoome total user credit


                      # variable is given either in format $variable or in ${variable}. Latter
                      # allows characters right after the variable and must be used in network
                      # stuff because of an argument
                      #${font Dungeon:style=Boldixelsize=10}I can change the font as well
                      #${font Verdana:size=10}as many times as I choose
                      #${font Perry:size=10}Including UTF-8,
                      #${font Luxi Mono:size=10}justo como este texto que o google traduz fêz o português
                      # stuff after 'TEXT' will be formatted on screen
                      #${font Grunge:size=12}${time %a %b %d}${alignr -25}${time %k:%M}

                      TEXT
                      $nodename - $sysname $kernel on $machine
                      $stippled_hr
                      ${color lightgrey}Uptime:$color $uptime ${color lightgrey}- Load:$color $loadavg
                      ${color lightgrey}CPU Usage:${color #5000a0} ${cpu}% ${cpubar}
                      ${color black}${cpugraph 000000 5000a0}
                      ${color lightgrey}RAM Usage:$color $mem/$memmax - $memperc% $membar
                      ${color lightgrey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar}
                      ${color lightgrey}Processes:$color $processes ${color grey}Running:$color $running_processes
                      $color$stippled_hr
                      ${color lightgrey}Networking:
                      Down:${color #8844ee} ${downspeed eth0} k/s${color lightgrey} ${offset 70}Up:${color #22ccff} ${upspeed eth0} k/s
                      ${color black}${downspeedgraph eth0 32,150 ff0000 0000ff} $alignr${color black}${upspeedgraph eth0 32,150 0000ff ff0000}
                      ${color lightgrey}File systems:
                      /home $color${fs_used /home}/${fs_size /home} ${fs_bar /home}
                      /mame $color${fs_used /mame}/${fs_size /mame} ${fs_bar /mame}
                      ${color lightgrey}Temperatures:
                      CPU:$color ${i2c temp 2}C${color grey} - MB:$color ${i2c temp 1}C
                      ${font Dungeon:style=Boldixelsize=12}${color #88aadd}MPD: ${alignc}$mpd_artist - $mpd_title
                      ${color #88aadd}$mpd_bar
                      ${color #88aadd}${alignc}$mpd_status
                      ${color}Name PID CPU% MEM%
                      ${color #ddaa00} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
                      ${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
                      ${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
                      ${color}Mem usage
                      ${color #ddaa00} ${top_mem name 1} ${top_mem pid 1} ${top_mem cpu 1} ${top_mem mem 1}
                      ${color lightgrey} ${top_mem name 2} ${top_mem pid 2} ${top_mem cpu 2} ${top_mem mem 2}
                      ${color lightgrey} ${top_mem name 3} ${top_mem pid 3} ${top_mem cpu 3} ${top_mem mem 3}
                      Dell SC1425<br />1 Xeon 3GHZ CPU<br />1GB ECC-DDR2 RAM<br />Onboard ATI Radeon 7000-M&nbsp; w/ 16MB Fixed/unshared RAM<br />Dual 82541Gl Gigabit Nic&#39;s<br />DVD-ROM/CD-RW Combo<br />73GB SCSI Drive.<br />Never got Compiz to run properly on the ATI, but that is secondary of course.

                      Comment

                      Working...
                      X