Conky- good to a free home…

Forum Forums General Tips and Tricks Conky- good to a free home…

  • This topic has 20 replies, 6 voices, and was last updated Jun 2-12:33 pm by Anonymous.
Viewing 15 posts - 1 through 15 (of 21 total)
  • Author
    Posts
  • #22280
    Member
    manyroads

      This Conky was coded using the following sites as references. The base code from which it was built is the product of the efforts of both Erik DuBois & Addy.

      Conky References:
      http://www.ifxgroup.net/conky.htm#tips
      https://www.mankier.com/1/conky
      http://conky.sourceforge.net/variables.html

      The Conky screenshot attached…

      ===========Conky Code Follows ==================


      #-- Informant Conky
      #-- Date : 26/10/2017
      #-- Editor : Erik Dubois
      #-- Version : v3.0.4
      #-- revised by : Mark Rabideau (manyroads)
      #-- revision on: 21-29 May 2019

      #-- By Addy
      #-- https://plus.google.com/+AdhiPambudi
      #-- http://addy-dclxvi.deviantart.com/
      #-- https://github.com/addy-dclxvi

      #-- For commands available check:
      #-- http://conky.sourceforge.net/variables.html

      ## Begin Window Settings #####################

      own_window yes
      own_window_type normal
      #--original own_window_type is desktop
      own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
      own_window_transparent no

      ## ARGB can be used for real transparency
      ## NOTE that a composite manager is required for real transparency.
      ## This option will not work as desired (in most cases) in conjunction with
      ## own_window_type normal
      own_window_argb_visual yes

      ## When ARGB visuals are enabled, use this to modify the alpha value
      ## Use: own_window_type normal
      ## Use: own_window_transparent no
      ## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
      own_window_argb_value 0
      own_window_colour 000000

      minimum_width 200
      minimum_height 200
      maximum_width 400

      gap_x 5
      gap_y 0

      alignment middle_right

      ## End Window Settings ###

      ## Font Settings ######################
      #-- Use Xft (anti-aliased font and stuff)
      use_xft yes
      # Requires mono font for spacing reasons
      # xftfont Liberation Mono:bold:size=9
      xftfont Roboto:size=10

      # Alpha of Xft font. Must be a value at or between 1 and 0 ###
      xftalpha 1
      #-- Force UTF8? requires XFT ###
      override_utf8_locale yes

      uppercase no
      ## End Font Settings ###

      ## Colour Settings ###
      draw_shades no ##yes
      default_shade_color black

      draw_outline no ## amplifies text if yes
      default_outline_color black

      ## Color scheme ##

      ## fe4515 crimson-orange
      default_color fe4515

      ## ffffff white
      color1 ffffff

      ## Green
      color2 0BFF00

      ########################

      ## End Colour Settings ###

      ## Borders Section ##
      draw_borders no
      #-- Stippled borders?
      stippled_borders 5
      #-- border margins
      border_inner_margin 5
      border_outer_margin 0
      #-- border width
      border_width 2
      #-- graph borders
      draw_graph_borders yes ##no
      #--default_graph_size 15 40
      ## End Borders Secton ###

      ## Miscellaneous Section ##
      #-- Boolean value, if true, Conky will be forked to background when started.
      background yes

      #-- Adds spaces around certain objects to stop them from moving other things
      #-- around, this only helps if you are using a mono font
      #-- Options: right, left or none
      use_spacer no

      #-- Default and Minimum size is 256 - needs more for single commands that
      #-- "call" a lot of text IE: bash scripts
      #--text_buffer_size 6144

      #-- Subtract (file system) buffers from used memory?
      no_buffers yes

      #-- change GiB to G and MiB to M
      short_units yes

      #-- Like it says, ot pads the decimals on % values
      #-- doesn't seem to work since v1.7.1
      pad_percents 2

      #-- Imlib2 image cache size, in bytes. Default 4MiB Increase this value if you use
      #-- $image lots. Set to 0 to disable the image cache.
      imlib_cache_size 0

      #-- Use the Xdbe extension? (eliminates flicker)
      #-- It is highly recommended to use own window with this one
      #-- so double buffer won't be so big.
      double_buffer yes

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

      #-- Desired output unit of all objects displaying a temperature. Parameters are
      #-- either "fahrenheit" or "celsius". The default unit is degree Celsius.
      #-- temperature_unit Fahrenheit
      ## End Miscellaneous Section ###

      update_interval 1

      minimum_size 0 0

      TEXT
      ${font Good Times:size=72}$alignr${time %H}${color1}:${time %M}${font}${color}
      ${font Good Times:32}${voffset 12}$alignr${color1}${time %A},${color} ${time %d}${color0} ${time %B} ${time %Y}${font}${voffset 2}
      ${hr}${color}${voffset 4}
      ${font Roboto:pixelsize=13}${alignr} USER: ${color1}${execi 5000 whoami}${color} ${color1}I${color} MACHINE: ${color1}$nodename${color} ${color1}I${color} UPTIME: ${color1}$uptime${color}
      ${font Roboto:pixelsize=13}${alignr} DISTRIBUTION: ${color1}${execi 6000 cat /etc/antix-version}${color}
      ${font Roboto:pixelsize=13}${alignr} ARCHITECTURE: ${color1}${machine}${color} ${color1}I${color} KERNEL: ${color1}${kernel}${color}
      ${font Roboto:pixelsize=13}${alignr} ROOT: ${color1}${fs_used /}${color} / ${color1}${fs_size /}${color} ${color1}I${color} HOME: ${color1}${fs_used /home}${color} / ${color1}${fs_size /home}${color}
      ${font Roboto:pixelsize=13}${alignr} SWAP: ${color1}${swap} / ${swapmax}${color} ${color1}I${color} SYS TEMP: ${color1}${hwmon temp 1}°C${color}
      ${alignr} ${color} RAM: ${color1}$mem / $memmax${color} HD: ${color1}${fs_used_perc}%${color}
      # Shows Desktop Name
      ${font Roboto:pixelsize=13}${alignr} DESKTOP SESSION: ${color1}${execi 60000 env | grep '^DESKTOP_SESSION' | cut -d'=' -f2-}${color}
      ${color1}${font Good Times:12}CPU ${hr 2}${color}${font}
      ${goto 199} ${color3} CPU USE: ${color} ${alignr}${cpu cpu0} % of Available
      ${alignr} ${color3} Core-0: ${color}${cpugraph 0 10,120 000000 0BFF00 -l}
      ${alignr} ${color3} Core-1: ${color}${cpugraph 1 10,120 000000 0BFF00 -l}
      ${alignr} ${color3} Core-2: ${color}${cpugraph 2 10,120 000000 0BFF00 -l}
      ${alignr} ${color3} Core-3: ${color}${cpugraph 3 10,120 000000 0BFF00 -l}

      ${color1}${font Good Times:12}Network (${addr eth0})${font} ${hr 2}
      Down:${color} ${downspeedf eth0}kB/s ${alignr}${color1}Up:${color} ${upspeedf eth0}kB/s
      ${downspeedgraph eth0 30,120 000000 0BFF00} $alignr${upspeedgraph eth0 30,120 000000 0BFF00}
      ########## Wireless Network #### Uncomment this section for use with wireless
      #${color1}${font Good Times:12}Network (${addr wlan0}) #[${wireless_link_qual_perc wlan0}%]${font} ${hr 2}
      # Down:${color} ${downspeedf wlan0}kB/s ${alignr}${color1}Up:${color} #${upspeedf wlan0}kB/s#

      Attachments:

      Pax vobiscum,
      Mark Rabideau - http://many-roads.com
      "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
      dwm & i3wm ~Reg. Linux User #449130
      20 Jan 2021 ~ "End of an Error"

      #22287
      Anonymous
        Helpful
        Up
        0
        ::

        ref: http://conky.sourceforge.net/variables.html

        Although the numeric values indicate an intent to set a reeeeeally long interval,
        the following details remain unchanged throughout a session (IOW, a one-time ${exec …} would suffice).

        ${execi 5000 whoami}
        and
        ${execi 6000 cat /etc/antix-version}
        and
        ${execi 60000 env | grep grep ‘^DESKTOP_SESSION’ …

        nitpicks:
        Given the colorized context, the white bar symbols are superflous (and cause distraction).
        The DD-MONTH-YEAR is reduntantly displayed.
        null output shown for “hwmon temp 1” in your screenshot (I don’t have an alternative commandstring to suggest)

        #22313
        Moderator
        BobC
          Helpful
          Up
          0
          ::

          Thanks, there are things for me to learn from there,.. I created an IceWM version of ArcoLinux a few weeks ago, as well as an IceWM version of PCLinuxOS, ans when I did, I also based my conky on Eric’s. There is lots to learn from his code as well…

          #22317
          Anonymous
            Helpful
            Up
            0
            ::

            A user who uses the code of Conky version 1.9 will get errors:

            ...
            minimum_width 200
            minimum_height 200
            maximum_width 400
            ...
            minimum_size 0 0
            

            You should therefore choose the original version.

            There is no output of the temperature, because you only designate the temperature sensor, but not the responsible device file of the computer:

            ${hwmon temp 1}°C
            
            #22318
            Member
            ex_Koo
              Helpful
              Up
              0
              ::
              ┏{Thu May 30 07:21 PM}0:224 4 
               ┗koo@debian ~ 18 files = 2.7M ~ >$find /sys/class/hwmon/* -exec echo -n "{}: " \; -exec cat {}/name \;
              /sys/class/hwmon/hwmon0: acpitz
              /sys/class/hwmon/hwmon1: coretemp
              /sys/class/hwmon/hwmon2: nct6791
              /sys/class/hwmon/hwmon3: asus
              
              ┏{Thu May 30 07:24 PM}0:225 5 
              ┗koo@debian ~ 18 files = 2.7M ~ >$sensors
              coretemp-isa-0000
              Adapter: ISA adapter
              Package id 0:  +37.0°C  (high = +80.0°C, crit = +100.0°C)
              Core 0:        +32.0°C  (high = +80.0°C, crit = +100.0°C)
              Core 1:        +34.0°C  (high = +80.0°C, crit = +100.0°C)
              Core 2:        +32.0°C  (high = +80.0°C, crit = +100.0°C)
              Core 3:        +36.0°C  (high = +80.0°C, crit = +100.0°C)

              ${hwmon 1 temp 1}°C This command will give you temperature of core 0. temp 2 would be core 1 and so on..

              ${alignr} ${color3} Core-0: ${hwmon 1 temp 1}° ${cpu cpu1}%${color}${cpugraph 0 10,120 000000 0BFF00 -l}
              ${alignr} ${color3} Core-1: ${hwmon 1 temp 2}° ${cpu cpu2}%${color}${cpugraph 1 10,120 000000 0BFF00 -l}
              ${alignr} ${color3} Core-2: ${hwmon 1 temp 3}° ${cpu cpu3}%${color}${cpugraph 2 10,120 000000 0BFF00 -l}
              ${alignr} ${color3} Core-3: ${hwmon 1 temp 4}° ${cpu cpu4}%${color}${cpugraph 3 10,120 000000 0BFF00 -l}

              You can also find the MHz of each core.

              $cat /proc/cpuinfo | grep "cpu MHz"
              cpu MHz		: 1541.564
              cpu MHz		: 1525.780
              cpu MHz		: 1186.874
              cpu MHz		: 1671.828
              cpu MHz		: 1542.204
              cpu MHz		: 1347.421
              cpu MHz		: 1563.613
              cpu MHz		: 1624.737

              Nice Conky bye the way..

              • This reply was modified 3 years, 11 months ago by ex_Koo.
              #22337
              Moderator
              caprea
                Helpful
                Up
                0
                ::

                Thanks for sharing the conky, manyroads and thanks to male and Koo for giving a little insight on how to handle hwmon temp.
                (I finally managed to display the temperature of my graphics card in my laptop again)

                #22342
                Anonymous
                  Helpful
                  Up
                  0
                  ::

                  (I finally managed to display the temperature of my graphics card in my laptop again)

                  Congratulations caprea. 😉
                  That’s why you could have asked a long time ago…

                  #22355
                  Moderator
                  BobC
                    Helpful
                    Up
                    0
                    ::

                    My antix 19 conky. Nothing fancy.

                    Attachments:
                    #22363
                    Moderator
                    BobC
                      Helpful
                      Up
                      0
                      ::

                      I used antiX’s standard 19a2 conky as a base for the top section of mine because the one from ArcoLinux seems to be for a different version of conky, and didn’t work at all.

                      But now I get the flashing conky tab in my tray. What do I need to change to avoid that?

                      #22364
                      Member
                      manyroads
                        Helpful
                        Up
                        0
                        ::

                        Hi @BobC … the flashing taskbar is a bug in antiX19-alpha releases. It happens no matter the conky you use; I think, though, it only appears if you are using icewm. Two options to ‘fix’ (avoid) it are:
                        1. change wm from icewm, I’d recommend jwm (it’s not too much different).
                        2. Replace the taskbar with tint2 (much more fun & functional).

                        btw. I’ll be posting something soon on the tint2 topic; I’m looking for people to break what I’m building. 😉

                        Pax vobiscum,
                        Mark Rabideau - http://many-roads.com
                        "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
                        dwm & i3wm ~Reg. Linux User #449130
                        20 Jan 2021 ~ "End of an Error"

                        #22371
                        Moderator
                        caprea
                          Helpful
                          Up
                          0
                          ::

                          But now I get the flashing conky tab in my tray. What do I need to change to avoid that?

                          Adding a line to .conkyrc worked for me

                          own_window_type desktop

                          or

                          own_window_type override

                          # 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 

                          It was posted by eugenb somewhere here on the forum.

                          #22372
                          Moderator
                          caprea
                            Helpful
                            Up
                            0
                            ::

                            male, I’ll take your word for it next time. Even though I sometimes prefer to fiddle around until I find an answer.
                            There was a solution with the nvidia-driver for the temperature, but with the nouveau I was lost.

                            #22379
                            Moderator
                            BobC
                              Helpful
                              Up
                              0
                              ::

                              I’ve got it pretty nice now. No more flashing.

                              Does anyone have code to list USB partitions?

                              #22387
                              Member
                              manyroads
                                Helpful
                                Up
                                0
                                ::

                                Try here:
                                http://conky.sourceforge.net/variables.html
                                http://www.ifxgroup.net/conky.htm
                                https://www.mankier.com/1/conky

                                Pax vobiscum,
                                Mark Rabideau - http://many-roads.com
                                "For every complex problem there is an answer that is clear, simple, and wrong." H. L. Mencken
                                dwm & i3wm ~Reg. Linux User #449130
                                20 Jan 2021 ~ "End of an Error"

                                #22389
                                Moderator
                                BobC
                                  Helpful
                                  Up
                                  0
                                  ::

                                  I figured a way. Here is the middle section…

                                  Thanks to manyroads for getting this going and everyone for contributing with tips. I know mine is rather bland by comparison, but I like it…

                                  I tried to add lines of docs to break it up and each marked section of lines should be copyable, since with exception of the wallpaper control, its using all standard antiX stuff.

                                  # Standard antiX .conkyrc file
                                  #
                                  text_buffer_size 8000
                                  
                                  # 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 override
                                  
                                  # 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 900
                                  maximum_width 250
                                  
                                  # 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
                                  
                                  color2 ffffff
                                  color3 FF00AB
                                  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##
                                  ##${color}battery: ${color}$acpiacadapter, ${battery_percent BAT1}% 
                                  ##${color}battery:${color} ${battery}
                                  #${color}ACPI Battery: ${color}$battery
                                  #${battery_bar 11,0}
                                  ##Wireless example##
                                  #${color}Wireless:
                                  #${color}essid: ${wireless_essid wlan0}
                                  #${color}IP:${color} ${addr wlan0}
                                  #${color}speed: ${color} ${wireless_bitrate wlan0}
                                  #${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}
                                  
                                  # stuff after 'TEXT' will be formatted on screen
                                  TEXT
                                  # OS Text
                                  ${color2}${font SourceSansPro-ExtraLight:size=36:weight:bold}antiX
                                  # Time
                                  ###${voffset -20}${color}${font SourceSansPro-ExtraLight:size=20:weight:bold}${alignc}${time %a %d %b}
                                  # OS Version
                                  ${voffset -17}${color6}${font}${execi 60000 cat /etc/antix-version}
                                  # Desktop
                                  ${voffset 0}${color6}${font}Desktop: ${execi 60000 printenv | grep "^DESKTOP_SESSION_CODE" | sed 's/DESKTOP_SESSION_CODE=//'}
                                  # Display Res
                                  ${voffset 0}${color6}${font}Display: ${execi 30 xrandr | grep "*" | awk '{ print $1 }'}
                                  # Kernel
                                  ${voffset 0}${color6}${font}$sysname $kernel ${alignr}${execi 60000 lsb_release -a | grep 'Release'|awk {'print $2""$3""$4""$5'}}${color}
                                  # CPU model
                                  ${voffset 5}${color6}${font SourceSansPro-ExtraLight:size=12:weight:bold:italic}${execi 60000 cat /proc/cpuinfo | grep -i 'Model name' -m 1 | cut -c14-43}${font SourceSansPro-ExtraLight size=12:weight:bold}${color6}${processes}
                                  # CPU Temp
                                  ${voffset 5}${color1}${font SourceSansPro-ExtraLight:size=12:weight:bold:italic}${color4}CPU Temp: ${execi 5 sensors | grep "CPU:" | awk '{ print $2 }'}
                                  # Top CPU % processes
                                  ${offset 10}${font SourceSansPro-ExtraLight:size=12:weight:bold}${color1}${top name 1}${alignr}${color6}${top cpu 1}${font}
                                  ${offset 10}${color1}${top name 2}${alignr}${color6}${top cpu 2}
                                  ${offset 10}${color1}${top name 3}${alignr}${color6}${top cpu 3}
                                  ${offset 10}${color1}${top name 4}${alignr}${color6}${top cpu 4}
                                  ${offset 10}${color1}${top name 5}${alignr}${color6}${top cpu 5}
                                  # RAM
                                  ${voffset 5}${color1}${font}Ram ${membar 10,60} ${alignr}${color6}${mem} ${color1}of ${color6}${memmax}
                                  # Filesystem
                                  ${offset 0}${color1}Disk ${fs_bar 10,60} ${alignr}${color6}${fs_free}${color} of${color6} ${fs_size}${color}
                                  # USB Flash Drives
                                  ${voffset 5}${color6}${font}${execi 5 lsblk -o name,label | grep "sd[c-z]"}
                                  # Battery
                                  ${voffset 5}${if_match "${battery_short BAT0}" <= "E"}${if_match "${battery_short BAT0}" >= "D"}${if_match ${battery_percent BAT0} <= 40}\
                                  ${offset 0}${color3}Battery ${battery_bar 10,150 BAT0} ${alignr}${battery_percent BAT0}%\
                                  ${else}${offset 0}${color yellow}Battery ${battery_bar 10,150 BAT0} ${alignr}${battery_percent BAT0}%${endif}\
                                  ${else}${voffset -20}${endif}${endif}
                                  # Network interface(s)
                                  ${voffset 10}${if_match "${addr eth0}"!="No Address"}${voffset 0}${color4}${font SourceSansPro-ExtraLight:size=12:weight:bold:italic}Ethernet: ${addr eth0}${else}${voffset -20}${endif}
                                  ${if_match "${addr wlan0}"!="No Address"}${voffset 0}${color4}${font SourceSansPro-ExtraLight:size=12:weight:bold:italic}WiFi: ${addr wlan0}${else}${voffset -20}${endif}
                                  #${if_match "${addr ppp0}"!="No Address"}${voffset 0}${color4}${font SourceSansPro-ExtraLight:size=12:weight:bold:italic}DialUp: ${addr ppp0}${else}${voffset -20}${endif}
                                  ${voffset -5}${color1}${font}${hr 2}
                                  # Wallpaper Filename and Keyboard Shortcuts
                                  ${color1}${alignc}--- Wallpaper Info/Keys ---
                                  ${color4}${font SourceSansPro-ExtraLight:size=10:weight:bold:italic}${execi 5 DISP_WALLPAPER="$(cat /tmp/CURRENT_WALLPAPER)" && echo "$(basename "$DISP_WALLPAPER")"}
                                  ${color6}${font}\
                                  Win+D - Delete Wallpaper 
                                  Win+I - Invert ^v Wallpaper
                                  Win+K - Keep Wallpaper 1yr
                                  Win+M - Mirror >< Wallpaper
                                  Win+N - Next Wallpaper
                                  ${color1}${hr 2}
                                  # IceWM Keyboard Shortcuts
                                  ${color1}${alignc}--- IceWM Keys ---
                                  ${color6}Win+C   Conky Toggle
                                  Win+S - Sleep
                                  Win+KP+ - Vol+
                                  Win+KP- - Vol-
                                  Pause - Mute
                                  Print - Screenshot
                                  Win+Space - AppFinder
                                  Ctrl+Esc - Main Menu
                                  Ctrl+Space - DMenu
                                  Alt+Tab - Window Selector
                                  Alt+Esc - Go to Next Window
                                  Ctrl+Alt+KP1-9 Relocate
                                  Ctrl+1-9 Resize/Relocate
                                  Alt+Space - Adjust Window
                                  Win+B - Browser
                                  Win+E - Editor
                                  Win+F - File Manager
                                  Win+L - Lock Keyboard
                                  Win+T - Terminal
                                  #${color1}${hr 2}
                                  #Alt+F3 - Minimize
                                  #Alt+F4 - Close
                                  #Alt+F7 - Move
                                  #Alt+F8 - Resize
                                  #Alt+F10 - Maximize
                                  #Alt+F11 - Fullscreen
                                  #Alt+F12 - Rollup
                                  ${voffset 200}
                                  
                                  • This reply was modified 3 years, 11 months ago by BobC. Reason: added doc to make it more readable
                                  • This reply was modified 3 years, 11 months ago by BobC. Reason: put in finished version complete with pic
                                  Attachments:
                                Viewing 15 posts - 1 through 15 (of 21 total)
                                • You must be logged in to reply to this topic.