I cleaned up antiX default conky script.

Forum Forums antiX-development Development I cleaned up antiX default conky script.

  • This topic has 19 replies, 5 voices, and was last updated Oct 13-10:36 pm by Anonymous.
Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #42749
    Member
    ex_Koo

      This is for <1.09 version of conky I also fixed the battery code not working and add a battery bar.(Will do 1.10> soon.)

      # Standard antiX .conkyrc file
      #
      # Note: delete the line above to disable automatic scaling with DPI
      # on the live system.
      
      # set to yes if you want Conky to be forked in the background
      background yes
      
      short_units yes
      
      cpu_avg_samples 1
      net_avg_samples 1
      
      out_to_console no
      
      # X font when Xft is disabled, you can pick one with program xfontsel
      #font 7x12
      #font 6x10
      #font 7x13
      font 8x12
      #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 gentium:size=12
      #ftfont DejaVu Sans:size=10
      xftfont DejaVu Sans:bold:size=9
      #xftfont DejaVu Sans:size=9
      
      # Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
      own_window yes
      own_window_transparent yes
      own_window_hints undecorated,below,sticky,skip_taskbar
      own_window_type desktop
      
      # Text alpha when using Xft
      xftalpha 1.0
      
      #on_bottom no
      
      # mail spool
      mail_spool $MAIL
      
      # Update interval in seconds
      update_interval 1
      
      # Use double buffering (reduces flicker, may not work for everyone)
      double_buffer yes
      
      # Minimum size of text area
      minimum_size 55
      maximum_width 180
      
      # 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 10
      
      # border width
      border_width 2
      
      # Default colors and also border colors
      default_color white
      default_shade_color white
      default_outline_color white
      
      color ffffff
      color4 yellow
      color8 77ccff
      color9 5599cc
      
      # 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 20
      gap_y 40
      
      # Add spaces to keep things from moving about?  This only affects certain objects.
      use_spacer right
      
      # Subtract file system buffers from used memory?
      no_buffers yes
      
      # if_up_strictness link:  up | link | address
      if_up_strictness address
      
      # 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
      
      ## antiX additives examples. Add below Text##
      ##Battery examples##
      ##battery: $acpiacadapter, ${battery_percent BAT1}% 
      ##battery: ${battery}
      #ACPI Battery: $battery
      #${battery_bar 11,0}
      ##Wireless example##
      #Wireless:
      #essid: ${wireless_essid wlan0}
      #IP: ${addr wlan0}
      #speed: ${wireless_bitrate wlan0}
      #link strength: ${wireless_link_bar 7,50 wlan0}
      #${execi 1000 acpi 2>/dev/null | grep -q . && echo "Batt: "}${execi 10 acpi -b 2>/dev/null | cut -d" " -f3,4 | sed 's/,$//'}  <<<<This was not working.
      #Your conky code is below the word 'TEXT' and will be formatted on screen.
      
      TEXT
      ${alignc}antiX
      ${alignc}${color8}${font DejaVu Sans:size=12}${time %I:%M} ${font} ${color}
      ${alignc}${time %a %d %b}
      ${alignc}Uptime: $uptime
      ${alignc}${exec disp=${DISPLAY#:}; disp=${disp%.[0-9]}; cat $HOME/.desktop-session/desktop-code.$disp 2>/dev/null}
      res:${alignr}${execi 60 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
      dpi:${alignr}${execi 60 sed -nr "s/^\s*Xft.dpi:\s*([0-9]+(x[0-9]+)?).*/\1/p" $HOME/.Xresources | grep "[0-9]" || echo 96}
      Automount: ${alignr}${execi 60 grep -q "^automount=TRUE" $HOME/.desktop-session/automount.conf 2>/dev/null && echo "enabled" || echo "disabled"}
      CPU:${alignr}${cpu}%
      Freq:${alignr}${freq}
      ${alignr}${cpugraph cpu0 30,170 5599cc 5599cc}
      Disk:${alignr}${diskio}
      ${alignr}${diskiograph 30,170 5599cc 5599cc}${if_up eth0}
      eth0 up: $alignr ${upspeed eth0}
      ${alignr}${upspeedgraph   eth0 30,170 5599cc 5599cc}
      eth0 down: $alignr ${downspeed eth0}
      ${alignr}${downspeedgraph eth0 30,170  5599cc 5599cc}${endif}${if_up eth1}
      eth1 up: $alignr ${upspeed eth1}
      ${alignr}${upspeedgraph   eth1 30,170 5599cc 5599cc}
      eth1 down: $alignr ${downspeed eth1}
      ${alignr}${downspeedgraph eth1 30,170  5599cc 5599cc}${endif}${if_up wlan0}
      wlan0 up: $alignr ${upspeed wlan0}
      ${alignr}${upspeedgraph   wlan0 30,170 5599cc 5599cc}
      wlan0 down: $alignr ${downspeed wlan0}
      ${alignr}${downspeedgraph wlan0 30,170 5599cc 5599cc}${endif}${if_up wlan1}
      wlan1 up: $alignr ${upspeed wlan1}
      ${alignr} ${upspeedgraph   wlan1 30,170 5599cc 5599cc}
      wlan1 down: $alignr ${downspeed wlan1}
      ${alignr}${downspeedgraph wlan1 30,170 5599cc 5599cc}${endif}
      ${alignr}${color8}Used / Total ${color}
      RAM:${alignr}$mem / $memmax
      Swap:${alignr}$swap / $swapmax
      / Disk:${alignr}${fs_used /} / ${fs_size /}
      ${alignc}${execi 1000 persist-enabled}
      Battery: ${battery_percent BAT0}% ${alignr}${color8}${battery_bar 8,70 BAT0} # You may need to change BAT0 to BAT1 or add the same line again if you have more then one battery.

      #42752
      Member
      ex_Koo
        Helpful
        Up
        0
        ::

        Here is the 1.10> version : .conkyrc-lua

        conky.config = {
            -- Use double buffering (eliminates flickering)
            double_buffer = true,
         
           -- Update interval in seconds
            update_interval = 1,
        
            -- Number of samples to take for CPU and network readings
            cpu_avg_samples = 1,
            net_avg_samples = 1,
           
            draw_graph_borders = true,
            border_width = 2,
        
            -- Use Xft (anti-aliased font and stuff)
            use_xft = true,
            font = 'DejaVu Sans:bold:size=9',
            xftalpha = 1.0, 
        
            -- Prevent text from moving around while using a mono font
            use_spacer = 'right',
           
            -- Default color and border settings
            default_color = 'white',
            default_shade_color = 'white',
            default_outline_color = 'white',
            color2 = '#ffffff',
            color4 = 'yellow',
            color8 = '#77ccff',
            color9 = '#5599cc',
            draw_shades = false,
            draw_outline = false,
            draw_borders = false,
           
            own_window = true,
            own_window_transparent = true,
            own_window_type = 'desktop',
            own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
        
            -- Window size and position
            minimum_width = 200,
            minimum_height = 200,
            maximum_width = 180,
            alignment = 'top_right',
            gap_x = 20,
            gap_y = 40,
        }
        
        conky.text = [[
        ${alignc}antiX
        ${alignc}${color8}${font DejaVu Sans:size=12}${time %I:%M} ${color} ${font}
        ${alignc}${time %a %d %b}
        ${alignc}${exec disp=${DISPLAY#:}; disp=${disp%.[0-9]}; cat $HOME/.desktop-session/desktop-code.$disp 2>/dev/null}
        ${alignc}${execi 60 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
        ${alignc}$kernel
        ${alignc}Uptime: $uptime
        
        CPU:${alignr}${cpu}%
        Freq:${alignr}${freq}
        $alignr${cpugraph cpu0 30, 170 5599cc 5599cc}
        Disk:${alignr}${diskio}
        ${alignr}${diskiograph 30,170 5599cc 5599cc}
        ${if_up eth0}eth0 up: $alignr ${upspeed eth0}
        $alignr${upspeedgraph eth0 30,170 5599cc 5599cc}
        eth0 down: $alignr ${downspeed eth0}
        $alignr${downspeedgraph eth0 30,170  5599cc 5599cc}${endif}
        ${if_up wlan0} wlan0 up: $alignr ${upspeed wlan0}
        $alignr${upspeedgraph wlan0 30,170 5599cc 5599cc}
        wlan0 down: $alignr ${downspeed wlan0}
        $alignr${downspeedgraph wlan0 30,170 5599cc 5599cc}${endif}
        ${alignr}${color8}Used / Total ${color}
        RAM:${alignr}$mem / $memmax
        Swap:${alignr}$swap / $swapmax
        / Disk:${alignr}${fs_used /} / ${fs_size /}
        ${alignc}${execi 1000 persist-enabled}
        Battery: ${battery_percent BAT0}% ${alignr}${color8}${battery_bar 8,70 BAT0} # You may need to change BAT0 to BAT1 or add the same line again if you have more then one battery.
        ]]
        #42755
        Forum Admin
        anticapitalista
          Helpful
          Up
          0
          ::

          Thanks Koo – I’ll make the changes to our default conkies.

          Philosophers have interpreted the world in many ways; the point is to change it.

          antiX with runit - leaner and meaner.

          #42762
          Anonymous
            Helpful
            Up
            0
            ::

            I have repeatedly wondered, yet never bothered to ask:
            Did a line get lost across the years, when copypasting the default config ?

            .

            #42763
            Anonymous
              Helpful
              Up
              0
              ::

              mid-session, during liveboot… a user cannot magically “flip a switch”, right ?
              ( cannot on-demand create overlayfs upperdir=/live/aufs-ram/upper )
              ${execi 1000 persist-enabled}
              execi… seems pointless//wasteful to periodically recheck

              #42764
              Anonymous
                Helpful
                Up
                0
                ::
                $ which persist-enabled
                /usr/local/bin/persist-enabled
                
                $ cat /usr/local/bin/persist-enabled
                #!/bin/bash
                [ -e /etc/live/config/persist-root -o -e /live/config/persist-root ] || exit
                echo "Persist Root Enabled"

                Years ago I suggested (requested) addition of a similar script which will test the existence
                of the “did-toram” flagfile, and inclusion of toram status displayed within the conky output.

                At some point, I had intended to send the change as a git pull request…
                but I could not find the “definitive” conky-legacy-all project repo (github//gitlab, bitjam//antiX-linux)
                and didn’t track down which package provides the /live/config/persist-root script
                ( ? er, did track it down and learned that it is provided by live-init and is packed within the initrd ? )

                $ ls -l /etc/live/config | grep toram
                -rw-r--r-- 1 root root     0 Sep 21 10:42 did-toram
                #42767
                Anonymous
                  Helpful
                  Up
                  0
                  ::

                  related to the above (injecting an additional line into the conky display):

                  *** Does conky-legacy impose a limit on how many lines can be displayed?

                  I seem to recall that when I had attempted to customize and add extra lines, or insert blank/spacer lines to alter the layout, I discovered that the bottommost lines would not display.

                  .
                  ***
                  asking because I couldn’t find a line limit mentioned in the docs and I failed to find a solution
                  (tried: smaller font, own_window y/n, border y/n, et cetera)

                  #42775
                  Member
                  ile
                    Helpful
                    Up
                    0
                    ::

                    Hello Koo
                    conky.config end with semi-colon ; {};
                    (?) observation . it would be a question if this was not a develtopic. meaning i will watch examples to find out. great work Koo.

                    #42776
                    Member
                    ex_Koo
                      Helpful
                      Up
                      0
                      ::

                      I did not write this conky just remove the unnecessary added code and fixed the battery line not working. But now you me started.

                      About your lines not being displayed you may need to adjust (minimum_height) setting. Also this will depend on your screen resolution as well, as the bottom of the conky may be cut off on smaller screens. Their is no line limit to my knowledge..

                      Their must have been a script back when ever the conky was first coded. Depending on how old it is it might be found in an older version of antiX.
                      Note: delete the line above to disable automatic scaling with DPI
                      # on the live system.

                      
                      Their is also this line which needs to be removed as the user have a Boinc Service running. I don't we need one of them. See below
                      # boinc (seti) dir
                      # seti_dir /opt/seti
                      
                      Thank you...I also am going to post here what I used so that others may gain from it. I modified the generic CHKCONFIG script I was using for seti 3.08 so that it would run my setiboinc.
                      
                      #!/bin/bash
                      # chkconfig: 35 90 15
                      # description: Starts and Stops the SETI BOINC service
                      # Source function librairy
                      . /etc/rc.d/init.d/functions
                      
                      ################################################
                      #This script is a sample script to allow the seti
                      #client to run as a service on a linux box.
                      #
                      #Install Notes :
                      #
                      # customize the two first variables of the script
                      # make a symbolic link from
                      # You have to link /etc/rc.d/rc./S99seti
                      # to this file to make it run.
                      # start the service (or reboot :-) )
                      # check it works with the status option
                      #
                      #
                      #How this works ?
                      #
                      #When using the script, your seti client will always
                      #run in the same folder (that you can choose) ,
                      #this is a "clean" way to run it.
                      
                      #The service can be:
                      # -launched with "/etc/rc.d/initd/seti start"
                      # -stoped with "/etc/rc.d/initd/seti stop"
                      # -restarted with "/etc/rc.d/initd/seti restart"
                      # -watched with "/etc/rc.d/initd/seti status"
                      # -be logged with "/etc/rc.d/initd/seti log"
                      
                      #As the last option (log) in quite unsual,
                      #it is intended to be used with the cron daemon
                      #to allow users to log their progress in some file
                      #so that can get a good idea of there current score
                      #and progress.
                      #Here are the 2 lines to type in your crontab :
                      # SHELL=/bin/bash
                      # 30 0 * * * "/etc/rc.d/initd/seti log"
                      #You must have write permission on all the files
                      #to add it to your crontab.
                      
                      #Author Stephane NICOLAS
                      #
                      #This program is distributed under the terms of the GPL.
                      #You can get a copy of it at
                      #http://www.fsf.org/copyleft/copyleft.html#translations
                      ################################################
                      
                      #This variable points to the client's executable directory
                      #change this value to define the location of your client.
                      #We do NOT need the client to be in your $PATH
                      SETI_CLIENT_DIR=/seti
                      
                      #This direcory contains the root of setiathome's workspace
                      #you can customize it.
                      SETI_DIR=/seti
                      
                      #This file is generated by setiathome and we need it
                      SETI_LOG_FILE=$SETI_DIR/state.sah
                      
                      #this file is lock file we create to ensure one and
                      #only one client is launched
                      SETI_LOCK_FILE=/seti/lock.sah
                      
                      case "$1" in
                      start)
                      echo -n "Starting computing seti: "
                      more ${SETI_DIR}/user_info.sah | awk -F = '$1 == "nresults" { print $2}'
                      cd $SETI_DIR
                      ${SETI_CLIENT_DIR}/setiboinc.sh &
                      touch $SETI_LOCK_FILE
                      ;;
                      
                      stop)
                      echo -n "Shutting down seti: "
                      more ${SETI_DIR}/user_info.sah | awk -F = ' $1 == "nresults" { print $2 }'
                      killall setiboinc
                      killall setiboinc.sh
                      rm -f $SETI_LOCK_FILE
                      echo
                      ;;
                      
                      restart)
                      $0 stop
                      $0 start
                      ;;
                      
                      status)
                      echo -n "Seti work unit completed: "
                      more ${SETI_DIR}/user_info.sah | awk -F = ' $1 == "nresults" { print $2}'
                      
                      running=<code>ps -A | grep setiathome</code>
                      #thanks to Toan for this bug fix
                      if( [ "${running}" = " " ] )
                      then
                      echo "Seti client is not running."
                      else
                      echo -n "Seti client runs since "
                      echo ${running} | awk -F " " '{ print $3 }'
                      echo -n "The current work unit is completed at "
                      more $SETI_LOG_FILE | grep prog | awk -F "=" '{ print $2 } '
                      fi
                      echo -n "Last result returned at ("
                      more /var/log/seti/user_info.sah | grep last_result_time | awk -F "(" '{ print $2 }'
                      echo ""
                      ;;
                      
                      log)
                      /bin/date >> $SETI_DIR/log
                      $0 status >> $SETI_DIR/log
                      echo "*******************************************" >> $SETI_DIR/log
                      ;;
                      
                      *)
                      echo "Usage: seti {start|stop|restart|status}"
                      exit 1
                      esac
                      #42777
                      Member
                      ex_Koo
                        Helpful
                        Up
                        0
                        ::

                        New clean conky <1.09 (Use this one) Also removed mail_spool entry.

                        # Standard antiX .conkyrc file
                        # For conky editing help and commands visit = Casey's Conky Reference with Examples {http://www.ifxgroup.net/conky.htm}
                        
                        # set to yes if you want Conky to be forked in the background
                        background yes
                        
                        short_units yes
                        
                        cpu_avg_samples 1
                        net_avg_samples 1
                        
                        out_to_console no
                        
                        # X font when Xft is disabled, you can pick one with program xfontsel
                        #font 7x12
                        #font 6x10
                        #font 7x13
                        font 8x12
                        #font 7x12
                        
                        # Use Xft?
                        use_xft yes
                        
                        # Xft font when Xft is enabled
                        #xftfont gentium:size=12
                        #ftfont DejaVu Sans:size=10
                        xftfont DejaVu Sans:bold:size=9
                        #xftfont DejaVu Sans:size=9
                        
                        # Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
                        own_window yes
                        own_window_transparent yes
                        own_window_hints undecorated,below,sticky,skip_taskbar
                        own_window_type desktop
                        
                        # Text alpha when using Xft
                        xftalpha 1.0
                        
                        #on_bottom no
                        
                        # Update interval in seconds
                        update_interval 1
                        
                        # Use double buffering (reduces flicker, may not work for everyone)
                        double_buffer yes
                        
                        # Minimum size of text area
                        minimum_size 55
                        maximum_width 180
                        
                        # 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 10
                        
                        # border width
                        border_width 2
                        
                        # Default colors and also border colors
                        default_color white
                        default_shade_color white
                        default_outline_color white
                        
                        color ffffff
                        color4 yellow
                        color8 77ccff
                        color9 5599cc
                        
                        # 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 20
                        gap_y 40
                        
                        # Add spaces to keep things from moving about?  This only affects certain objects.
                        use_spacer right
                        
                        # Subtract file system buffers from used memory?
                        no_buffers yes
                        
                        # if_up_strictness link:  up | link | address
                        if_up_strictness address
                        
                        # set to yes if you want all text to be in uppercase
                        uppercase no
                        
                        TEXT
                        ${alignc}antiX
                        ${alignc}${color8}${font DejaVu Sans:size=12}${time %I:%M} ${font} ${color}
                        ${alignc}${time %a %d %b}
                        ${alignc}Uptime: $uptime
                        ${alignc}${exec disp=${DISPLAY#:}; disp=${disp%.[0-9]}; cat $HOME/.desktop-session/desktop-code.$disp 2>/dev/null}
                        res:${alignr}${execi 60 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
                        dpi:${alignr}${execi 60 sed -nr "s/^\s*Xft.dpi:\s*([0-9]+(x[0-9]+)?).*/\1/p" $HOME/.Xresources | grep "[0-9]" || echo 96}
                        Automount: ${alignr}${execi 60 grep -q "^automount=TRUE" $HOME/.desktop-session/automount.conf 2>/dev/null && echo "enabled" || echo "disabled"}
                        CPU:${alignr}${cpu}%
                        Freq:${alignr}${freq}
                        ${alignr}${cpugraph cpu0 30,170 5599cc 5599cc}
                        Disk:${alignr}${diskio}
                        ${alignr}${diskiograph 30,170 5599cc 5599cc}${if_up eth0}
                        eth0 up: $alignr ${upspeed eth0}
                        ${alignr}${upspeedgraph   eth0 30,170 5599cc 5599cc}
                        eth0 down: $alignr ${downspeed eth0}
                        ${alignr}${downspeedgraph eth0 30,170  5599cc 5599cc}${endif}${if_up eth1}
                        eth1 up: $alignr ${upspeed eth1}
                        ${alignr}${upspeedgraph   eth1 30,170 5599cc 5599cc}
                        eth1 down: $alignr ${downspeed eth1}
                        ${alignr}${downspeedgraph eth1 30,170  5599cc 5599cc}${endif}${if_up wlan0}
                        wlan0 up: $alignr ${upspeed wlan0}
                        ${alignr}${upspeedgraph   wlan0 30,170 5599cc 5599cc}
                        wlan0 down: $alignr ${downspeed wlan0}
                        ${alignr}${downspeedgraph wlan0 30,170 5599cc 5599cc}${endif}${if_up wlan1}
                        wlan1 up: $alignr ${upspeed wlan1}
                        ${alignr} ${upspeedgraph   wlan1 30,170 5599cc 5599cc}
                        wlan1 down: $alignr ${downspeed wlan1}
                        ${alignr}${downspeedgraph wlan1 30,170 5599cc 5599cc}${endif}
                        ${alignr}${color8}Used / Total ${color}
                        RAM:${alignr}$mem / $memmax
                        Swap:${alignr}$swap / $swapmax
                        / Disk:${alignr}${fs_used /} / ${fs_size /}
                        ${alignc}${execi 1000 persist-enabled}
                        Battery: ${battery_percent BAT0}% ${alignr}${color8}${battery_bar 8,70 BAT0} # You may need to change BAT0 to BAT1 or add the same line again if you have more then one battery. 
                        #42781
                        Member
                        ex_Koo
                          Helpful
                          Up
                          0
                          ::

                          @skidoo
                          It will be their so where.

                          Happy hunting

                          #42786
                          Member
                          ex_Koo
                            Helpful
                            Up
                            0
                            ::

                            Some thing else with errors on starting conky if you try and start a <1.09 version and you have 1.10> installed you see an error message like below.

                            conky -c New-clean-conky
                            conky: Syntax error (New-clean-conky:2: unexpected symbol near '#') while reading config file.  <<< (here you need conky 1.09 or below install)
                            conky: Assuming it's in old syntax and attempting conversion.  <<< (here you need conky 1.09 or below install)
                            conky: desktop window (116) is root window

                            The conky in most cases will still run. But without starting from the command line as I have above with (conky -c New-clean-conky) you wont even see the errors.

                            #42793
                            Anonymous
                              Helpful
                              Up
                              0
                              ::

                              Installation of conky packages does place documentation locally.
                              For legacy: / usr /share/doc/conky-legacy-all/
                              and for the newer packaged version, here (i think so): / usr /share/doc/conky-all/

                              After carefully searching the text (“lines”, “maximum”, “limit”) I found the following:

                              _____________________________________________

                              * the “tail” function (same for “head” function:
                              Max of 30 lines can be displayed, or until the text buffer is filled.

                              * default buffer size for each individual line is 256 bytes (keep in mind: unicode chars will be multi-byte)
                              To increase the default, you would add a text_buffer_size declaration in conky.conf
                              (or add it within the .conkyrc somewhere above the TEXT line)

                              text_buffer_size
                              “This buffer is used for intermediary text, such as __individual__ lines, output from $exec vars, and various other variables. Increasing the size of this buffer can drastically reduce Conky’s performance, but will allow for more text display per variable. The size of this buffer cannot be smaller than the default value of 256 bytes.” (keep in mind: some unicode chars occupy multiple bytes)

                              max_user_text
                              Maximum size of user text buffer, i.e. layout below TEXT line in config file (default is 16384 bytes)

                              max_specials
                              Maximum number of special things, e.g. fonts, offsets, aligns, etc. (default is 512)

                              _____________________________________________

                              Anyhow, thankfully the (37?) line limit problem isn’t still occurring when I retested today.

                              #42803
                              Member
                              ex_Koo
                                Helpful
                                Up
                                0
                                ::

                                I made a conky years ago that I ran all the time named Tower-conky was in love the thing. Below TEXT was 48 lines of code including weather fonts and could be about 55 lines if added semplice-conky-harddisks.sh I never had a problem at all running it on my system back in the day. Conky Version 1.10> converted from <1.09.
                                But I suppose it also depends on how powerful the computer is as well and hardware.

                                Here is a screenshot. link
                                Tower Conky

                                • This reply was modified 2 years, 6 months ago by ex_Koo.
                                #42879
                                Anonymous
                                  Helpful
                                  Up
                                  0
                                  ::

                                  (duplicate)
                                  maybe an admin approved this spamblocked post while I was editing it to avoid the block?

                                Viewing 15 posts - 1 through 15 (of 19 total)
                                • You must be logged in to reply to this topic.