conkywx lua help

USAGE ^ 

USAGE ^ 

${lua main -n wxgraph -p 188,170 -d [GT] -c 0xEE4000}

SYNTAX ^ 

example

${lua main -n wxgraph -p 188,170 -d [GT] -c 0xEE4000}

explanation

WIDGET SET 1 ^ 

if_running ^ 

example

${if_match "${lua if_running audacious}" == "1"} blah blah ${else} other blah blah ${endif}

explanation

pre_exec ^ 

example

${lua pre_exec nvidia-smi --query-gpu="memory.total" --format=csv,noheader,nounits}mb
${if_match "${lua if_running hddtemp}" != "1"}${lua pre_exec hddtemp -d /dev/sda /dev/sdb}${endif}
${lua pre_exec conkywx -v --remove_text .0.0_pre build}

explanation

pacman_update ^ 

example

${lua pacman_update}

explanation

sysinfo ^ 

example

template9 = 'w83627ehf.656',

Using platform and hwmon

${lua sysinfo -p ${template9} -f 1 -w cpu1}  <-- 1st cpu in deg F
${lua sysinfo -p ${template9} -w cpu2}  <-- 2nd cpu in deg C
${lua sysinfo -p ${template9} -w pch}   <-- pch temperature in deg C etc..
${lua sysinfo -p ${template9} -w fan2}  <-- fan 2 rpm

Using lm-sensors

${lua sysinfo -f 1 -w cpu1}  <-- 1st cpu in deg F
${lua sysinfo -w cpu2}  <-- 2nd cpu in deg C
${lua sysinfo -w pch}   <-- pch temperature in deg C etc..
${lua sysinfo -w fan2}  <-- fan 2 rpm

Usage in bargraph widget Instead of using space to separate options use : colon character

${lua main -n bargraph -p 117,234 -w 90 -s 7 -f sysinfo:-p:${template9}:-w:cpu1 }
${lua main -n bargraph -p 117,234 -w 90 -s 7 -f sysinfo:-w:cpu1 }

options

Option Description
-f 1 for getting values in Fahrenheit
-p for stating the platform - see example above
-w values required - fan1, cpu1, pch
fan and cpu have numbers with them starting from 1 to as many as you have. You will only get data for existing hardware. If you have only fan2 then you will only get data for that variable. Same is the case with cpu.

MUSIC SORT ^ 

example

${if_match "${lua if_running audacious}" == "1"}${voffset 2}${font :bold:size=10}${color1}Audacious Playing ${color4}${voffset -2}${hr 2}${font}${lua main -n music_sort -m audacious -f bold:12 -k 2 -s 5 -p 5,619 -e 0xff700f:1 }${else}#
${if_match "${lua if_running vlc}" == "1"}${voffset 2}${font :bold:size=10}${color1}VLC Playing ${color4}${voffset -2}${hr 2}${font}${lua main -n music_sort -g psl -m vlc -f bold:12 -k 2 -s 5 -p 5,619 -e 0xff700f:1 }${else}#
${if_match "${lua if_running mplayer}" == "1"}${voffset 2}${font :bold:size=10}${color1}Mplayer Playing ${color4}${voffset -2}${hr 2}${font}${lua main -n music_sort -m mplayer -f bold:12 -k 2 -s 5 -p 5,619 -e 0xff700f:1 }${else}#
${voffset 2}${font :bold:size=10}${color1}No Media${color4}${voffset -2}${hr 1}${font}${endif}${endif}${endif}

explanation

options

Option Description
-b length/width of progress bar
This is not really required as window width is used - but can still be used.
-c text hex colour:alpha 0x00ff00:0.7
-e bar hex colour:alpha 0x00ff00:0.7
-f font size:name:style. Use colon : as separator
-g Only used for VLC - it is the password for the vlc http mini server
-i vertical scroll increment Default 10
-k progress bar style
There are 9 styles numbered 1 to 9 - refer to BARGRAPH
-l length/width of scroll text
This is not really required as window width is used - but can still be used.
-m specify your player here audacious, vlc or mplayer
-n music_sort
-o file path/name which has text to scroll.
If the file has multiple lines then the lines are placed behind each other separated with a pipe | character.
-p x,y co-ordinates use comma , as separator
-r range of scroll y cood is middle, 0 default
-s scroll text step +ve for left -ve for right scroll. Scroll text by step s characters showing. length l number of characters at the same time.
-t to see current track time to go set 1. Default is time elapsed.
-w direction of scroll U is up - D is down - B is up and down
-v use legacy mode - scroll per set of characters
Following are optional

wx media player options

Program: wxmp - wx media player
Usage:   wxmp [options] [path/]filename

Fast Start::

    ffprobe is used to index files - part of ffmpeg package
    mplayer is used to index files if ffmpeg/ffprobe is not installed

    o  open any folder in file manager -
    o  select all tracks
    o  right click mouse and choose "wx media player"
       OR
    o  open a terminal in a folder or navigate to it
    o  type wxmp * - you will see files being index and hear music start
       if media files exist in that folder
    o  type wxmp -j to get wxmp user interface *jump*.

Basic options:
 -v|--version           - player version
 -q|--quit              - quit player
 -h|--help              - view this help screen

 -j|--jump              - view playlist - choose track or see options below

    Following logical commands in jump view screen::
      e                 - Edit Mode - User has 30 seconds to enter options
    * Track Numbers     - Use 'e' to enter Edit Mode and enter number of track
                          to play and press Enter Key.
      n                 - jump to next track
      p                 - jump to previous track
      Page Up           - move 1 page back    - towards top of playlist
      Page Dn           - move 1 page forward - towards bottom of playlist
      Home              - move to first page
      End               - move to last page
      Arrow Keys::
      Right | Left      - seek +-10 seconds
      Up    | Down      - seek +-60 seconds
      Ctrl-Up|Ctrl-Down - seek +-600 seconds (10 mins)
      SpaceBar | pause  - pause and resume player
      .                 - Step forward. Pressing once will pause media, every
                          consecutive press will play one frame and then go into
                          pause mode again (any other key unpauses)
      +                 - Increase Master Volume
      -                 - Decrease Master Volume
    * s | seek          - seek same as --seek below
      [                 - Track speed - reduce
      ]                 - Track speed - increase
      Delete Key        - Track speed - reset
   ** V | save          - save playlist (same --save option)
   ** u | shuffle       - play tracks in random order
   ** U | noshuffle     - play tracks in sequential order
      q                 - quit jump view
   ** Q | quit          - quit wx media player
      F5|r|Enter Key    - refresh view + Go To view track No. - this will
                          do the page_jump on which the track exists
    * d                 - delete tracks from playlist:: d <from> <to>
                          for example, using 12 and 30 as track numbers::
                          delete single track : d 12
                          delete many tracks  : d 12 30
    * l                 - loop same as --loop below
      L                 - stop loop of track
    * gNo               - go to screen page
    * gtNo              - go to the screen page which has the track number
    * f                 - search for tracks - use word or words
                          separate words with space for normal search
                          separate words with | character for multiple
                          search words
      F                 - Return to original playlist
      b                 - popup progress window
      B                 - popup progress window inverse track time
      i                 - Toggle to inverse Title bar progress time

  Note::
    *  - These items require Edit Mode
    ** - Use shorter single key options
    Rest of the commands are single key operation.

 --pause                - pause player
 -u|--shuffle           - play tracks in random order
 -U|--noshuffle         - play tracks in sequential order
 -V|--save              - save playlist
 -d|--delete            - delete tracks from playlist:: d <from> <to>
                          for example, using 12 and 30 as track numbers::
                          delete single track : d 12
                          delete many tracks  : d 12 30
 -f|--find              - search for tracks - use word or words
 -b|--progress          - popup progress window - add 1 to inverse track time
 -s|--seek              - seek <value> [type]
                          Seek to some place in the track.
                          0 - a relative seek of +/- <value> seconds (default)
                          1 - a seek to <value> % in the track
                          2 - a seek to an absolute position of <value> seconds
 -l|--loop              - set track repetition number
                           0 for repeat 99 times
 -L                     - Stop loop of track
 --load                 - load files from the command line
                          -i  - search pattern types
                                default search pattern "mp2|mp3|mp4|m4a|mp4a|
                                mkv|mpg|mpeg|ogg|ogm|wma|wmv|asf|qt|mov|rm|ra|
                                ram|flac|avi|flv|f4v|swf|mpa|mpv|mts|rmvb|vob|
                                ts|webm|weba|3gp2|3gp"
                                This is stored in ~/config/conkywx/system.conf
                          -ui - alternate search pattern Eg: "flv|mp4"
                          -xd - exclude folder(s) "learn|abcd.*efgh|some thing"
                          -xn - exclude filename(s) "abcd efgh|learn|simple"
                          -xs - search for specific file types
                                Eg: "avi|mp4" thus ignoring the default pattern
                          -f  - Do not follow symbolic links - default: follow
                          -m  - Max depth into folder tree - default is 10
                                For example: "abcd efgh" are 2 words - if they have
                                any other number of characters between them - then
                                use "abcd.*efgh"
                                The pipe character | is used as separator.
                                Simple regular expressions can be used
                          -w  - path to search for files
                                For example: '/home/adamo/media' for seaching in the
                                media directory for audio files
 *                     - load files from current folder - uses default pattern
                         used in --load option above.

 -c|--custom            - send custom commands to mplayer
                          For custom commands to send to mplayer:
                          in a terminal refer to mplayer -input cmdlist
                          view http://www.mplayerhq.hu/DOCS/tech/slave.txt

Adding shortcuts to keys::
  o  /usr/bin/wxmp -n       map to XF86AudioNext
  o  /usr/bin/wxmp -p       map to XF86AudioPrev
  o  /usr/bin/wxmp --pause  map to XF86AudioPlay
  o  /usr/bin/wxmp -q       map to Any key to quit player
  Any of the commands for wxmp can be used to map to keyboard.

Adding Tracks to wx media player::
  m3u playlists or individual tracks
  o  File Browser / Manager
     Right click on the media / track and select "wx media player".
  o  Command Line
     Navigate to the Directory that contains the media tracks
     1) Use wxmp --load. To customize this operation see --load above.
     This can be used in the directory which contains the media and will
     media in sub-directories as well
     OR
     2) use wxmp "/path to directory/*" for all media in that directory
     OR
     3) use wxmp "/path to directory/*.mp3" for specific media type in that
     directory
     However if you are already in the directory in question - use wxmp "*"
     or wxmp "*.m4a" as required
     NOTE: You need to quote the path to directory as shown above for
     options 2) and 3)
  o  wxmp config file is located at ~/.config/conkywx/wxmp.conf
  o  mplayer key input config file is located at ~/.config/conkywx/wxmpin.conf

2015 - 2017 (c) Paramvir Likhari

SMOOTH SCROLLER ^ 

example You can use any free template number from template0 to template9

${lua main -n smscroller -p 0,7 -r u -w 300,108 -i ${template4}}
${lua main -n smscroller -p 115,18 -r b -w 185 -i ${template3}}

smooth scroller templates

explanation

options

-n smscroller
-p x,y co-ordinates use comma , as separator
-w width of scroller. For vertical scroller specify height
-i file path/name which has text to scroll.
If the file has multiple lines then the lines are placed behind each other separated with a pipe | character.
Following are optional
-l ONLY for vertical-scroller-news-conkyrc and make rss news reader INTERACTIVE!!
set this to 1 to enable list view OR in a terminal window type wxrss listview on
to disable type wxrss listview off OR remove the -l 1 from widget command line.[ 1 ]
In the normal mode if you search using wxrss - list view will be invoked automatically.
-r direction of scroll
u is up
d is down
b is left and right [bounce]
r is to right
l is to left [ 2 ] [Default]
-b back ground colour is stated in hex.[ 3 ]
Only required if you want a back ground for the scrolling text only.
Otherwise use the background widget
-t text colour is stated in hex. [ 3 ] [Default] 0xffff00:1
-f font size:name:style etc - use colon character : separator. [ 4 ] [Default] 12:Mono:normal
-u value in pixels. This gives a legacy look of blocks of scroll data moving in pixels at a time
-e value in pixels for scroll speed in Frames per Second. [Default] 15 !!!
-g colour for the content position indicator 0x00ff00:1:0x555555:0.3.
There are 2 components -
• foreground 10 pixel small indicator and 0x00ff00:1
• the background 10 pixel - the height of the widget. 0x555555:0.3
Foreground indicator colour can be given just as 0x00ff00 - but anything more you need to enter all 4 parts [ 3 ]

1. ^ This interactive view will show a list of titles with a leading index number.
• In a terminal window - use the helper program wxrss
• followed by the index number wxrss 27 or a search term using wxrss s:search words.
• Range of index number can be specified and list of index numbers can also be used.
• Range is defined by 2 dots and list is defined by a comma wxrss 23,27,5,3,36..99,190,23,2,3..7.
• You can search for items by index or search term in ANY mode - switch to listview mode will be automatic.
:: Text Search ::
• Simple case insensitive text search may be used with s:search words format.
• type in small case without worry.
• Shell will cry if you use punctuation like ' or " - so do not use these.
s:wordA wordB will search for both words independently
s:wordA.*wordB will search for two patterns if they are on the same line
s:wordA NOT wordB will search for every occurrence of wordA which does not have wordB
• no other occurrence of wordB will be shown. NOT must be in capitals
s:[ wordA] For exact search - use pattern in square brackets
• note the space before the word - it will be maintained for the search
• Other use cases include s:wordA wordB NOT wordC wordD

2. ^ The text will change based on the option selected.
For options d and r - The first line will become the last - therefore the first line will show first in all cases.
-r b [bounce] will change to -r l [right to left movement] - if the text width exceeds the display width.

3. ^ Use notation 0xff0000:0.7 e.g. Red is 0xff0000 alpha for transparency is a decimal number from 0 to 1.

4. ^ To just make bold use -f bold or to make bold and italics use -f bold:italic.

SCROLLER ^ 

example You can use any free template number from template0 to template9

###---------- ALerts Example -----------------------------------
${if_existing ${template9}}#
${color8}Alert:${lua main -n scroller -f 14 -l 70 -s 15 -p 60,966 -o ${template9}}#
${else}${color4}${hr}${color8}${endif}
###---------- Earth Quake / Seismic data Example 1----------------
${if_existing ${template7}}#
${lua main -n background -r 25 -c 0x333333:0.6 -s 695,410 -p 5,640}#
${lua main -n scroller -b 1 -f 12 -l 40 -s 15 -p 12,660 -o ${template7} -k nepal }${endif}
###---------- Earth Quake / Seismic data Example 2----------------
${if_existing ${template4}}#
${lua main -n scroller -b 3::0x333333:0.6 -j Wx Seismic Table:DejaVu Sans:11:1 -k 3 -f 11 -l 40 -s 15 -p 12,1 -o ${template4} }#
${endif}

explanation

options

-d text to scroll. Scroll text d by step s characters showing length l number of characters at the same time. OR use -o for file input
-l length/width of scroll text - Default is 36
-n scroller
-o file path/name which has text to scroll.
If the file has multiple lines then the lines are placed behind each other separated with a pipe | character.
-p x,y co-ordinates use comma , as separator
-s scroll text step +ve for left -ve for right scroll. Default is 1
Note For data input use -d for text OR -o for file input
Following are optional
-a align text l (left), c (center), r (right), default l
-b -b 1 will show single column for tide heights
-b 2 will show 2 columns for tide heights
-b 3 will show an automatic background for seismic table. Back ground colour can be stated here itself -b 3::0x333333:0.6
-b 4 or -b 4::0x333333:0.6 will align the block to the top of the conky window.
• NEW - very useful if you have a text file and want that displayed in a block - the text will align as per parameters passed for this widget - same as for scroller. This was created to fit Tidal information.
-c colour is stated in hex e.g. Red is 0xff0000 alpha for transparency is a decimal number from 0 to 1.
Use notation 0x00ff00:0.7
-f font size
-g User location track colour e.g. see -c
-h Seismic Alarm high light colour is stated in hex e.g. see -c
This is on by default. Set -h 0 to disable high lighting for Seismic table.
-i vertical scroll increment default 10
-j Siesmic static table label format -j Wx Seismic Table:DejaVu Sans:12:1:c:0x00ff00
• the format is label text : font name : font size : align label : font style option : font colour
• there are 3 font style options 1 = bold, 2 = italics and 3 = bold and italics.
• Font colour option has a default colour 0xFFAA00
• add a colour in hex if you want a different colour.
• Label may be aligned left l, centre c or right r. Default is left aligned l
-k vertical space between lines in pixels default 0
-r range of scroll y co-ord is middle, 0 default
-w direction of scroll U is up - D is down - B is up and down

SHOWCOND ^ 


Condition - example

${lua main -n showcond -p -5,90 -s 110 -w CI -v 1 -f [PIF] -c 0xFFD700 -i [PIC] -j 1 }

explanation

Option Description
-c font colour format hex:alpha 0x000000:1
-f [PIF] conkywx element for present condition font character
-i [PIC] conkywx element for present condition image
-j show/hide bezel or instrument back ground -
0 to hide
1 to show instrument back ground
2 to show bezel [ 3 ]
-n showcond
-p x,y co-ordinates use comma , as separator
-s size of the widget
-v use 1 for 3D thick font - - if -v is missing or not set to 1 then flat regular font is shown with the colour specified with -c option
-w can call Condition Image CI or Font CF
-t tilt the widget [ 2 ]

Note::

if -w is CI then -i and optional -j can be used
if -w is CF then it, -f and -c are required.
the full line may also be used as shown -w will decide image or font is shown

Windvane - example

${lua main -n showcond -p 204, 0 -s 200 -w wi -f [BF] -d [WDD] -v 1 -e [WS] -i 1 -a 4 -j 1 -c 0x00ff00:1 -l 0x4169E1:1}
${lua main -n showcond -p 204, 0 -s 200 -w wi -f [BF] -d [WDD] -v 1 -e [WS] -i 9 -a 5 -j 1 -c 0x00ff00:1 -l 0x8B4513:0.9 }
${lua main -n showcond -p 204, 0 -s 200 -w wi -f [BF] -d [WDD] -v 1 -e [WS] -i 16 -a 1 -j 1 -c 0x00ff00:1 -l 0xff0000:0.9 }
${lua main -n showcond -p 204, 0 -s 200 -w wi -f [BF] -d [WDD] -v 1 -e [WS] -a 3 -j 1 -c 0x00ff00:1 -l 0xff0000:0.9 -y d }
${lua main -n showcond -p 204, 0 -s 200 -w wi -f [BF] -d [WDD] -v 1 -e [WS] -a 4 -j 1 -c 0x00ff00:1 -l 0xff0000:0.9 -y d -x f }
${lua main -n showcond -p 204, 0 -s 200 -w wf -f [BF] -d [WDD] -v 1 -e [WS] -j 1 -c 0x00ff00:1 -l 0xff5555:0.9 }

explanation

Option Description
-a Choose type of arrow from 1 to 15.
Arrows 1 to 10 are lua generated and 11 to 15 are WW2 aircraft silhouettes.
To reverse the arrow direction add a - before number ex: -3 for arrows 1 to 10 - WW2 planes always fly into the wind.
-b WindVane background colour use notation 0x00ff00:0.7
-c Text/Font colour [calm etc] use notation 0x00ff00:0.7
-d [WDD] wind direction in degrees Element
-e [WS] wind speed Element
-f [BF] conkywx element for present condition font character
-i Wind Vane Image choose from numbers 1 to 21
-j show/hide bezel or instrument back ground -
0 to hide
1 to show instrument back ground
2 to show bezel [ 3 ]
-l Arrow colour use notation 0x00ff00:0.7
-n showcond
-o Star colour use notation 0x00ff00:0.7 - this option defines the line and fill colour
-p x,y co-ordinates use comma , as separator
-r Ring, Slot and Cardinal colour use notation 0x00ff00:0.7
-s size of the widget
-v use 1 for 3D thick font - - if -v is missing or not set to 1 then flat regular font is shown with the colour specified with -c option
-t tilt the widget [ 2 ]
-w call Wind Direction Image WI or Font WF
-x s for star with lines or f for star filled with colour
-y star style - use 1 to 5 for some basic patterns,
• use d to see demo
• see the terminal for the values which generate the star
• Or you can define the star pattern based on what you see in the demo output.
• Use 100:45:45 format.
• All 3 values need to be defined.
• 1st value is from 1 to 100
• 2nd value 0, 11.25, 22.5, 45 or 90
• 3rd value 22.5, 45 or 90.
• You can choose any combination of these values.
• You can even play with intermediate values and see some spectacular design.
-z star size - s for small and l for large

Moon - example

${lua main -n showcond -p -5, 312 -s 110 -w mi -f [MIF] -d [MROT] -i [MIC] -j 1 }

explanation

Option Description
-c font colour format hex:alpha 0x000000:1
-d conkywx element [MROT] Dynamic moon rotation
-f [MIF] conkywx element for present condition font character
-i [MIC] conkywx element for present condition image
-j show/hide bezel or instrument back ground -
0 to hide
1 to show instrument back ground
2 to show bezel [ 3 ]
-n showcond
-p x,y co-ordinates use comma , as separator
-s size of the widget
-t tilt the widget [ 2 ]
-w call Moon Image MI or Font MF

GAUGE ^ 

example

${lua main -n gauge -p 210,10  -s 180 -t [PT]   -u [UU] -l Temperature            }
${lua main -n gauge -p 330,10  -s 180 -t [DP]   -u [UU] -l Dew Point              }
${lua main -n gauge -p 270,10  -s 180 -t [FL]   -u [UU] -l Feels Like             }
${lua main -n gauge -p 335,210 -s 180 -t [SOL]  -u S    -l Solar Radiation        }
${lua main -n gauge -p 390,10  -s 180 -t [VI]   -u U    -l Visibility             }
${lua main -n gauge -p 385,210 -s 180 -t [UV]   -u U    -l UV Index: -v Max [UVM] }
${lua main -n gauge -p 210,415 -s 180 -t [BR]   -u BS   -l Pressure               }
${lua main -n gauge -p 210,415 -s 180 -t [BR]   -u BI   -l Pressure               }
${lua main -n gauge -p 270,415 -s 180 -t [HM]   -u H    -l Humidity               }
${lua main -n gauge -p 330,415 -s 180 -t [PM25] -u H    -l Air Quality: PM 25     }
${lua main -n gauge -p 380,415 -s 180 -t [PM10] -u H    -l Air Quality: PM 10     }
${lua main -n gauge -p 430,415 -s 180 -t [O3]   -u H    -l Air Quality: Ozone     }
${lua main -n gauge -p 480,415 -s 180 -t [NO2]  -u H    -l Air Quality: NO2       }
${lua main -n gauge -p 530,415 -s 180 -t [SO2]  -u H    -l Air Quality: SO2       }
${lua main -n gauge -p 585,415 -s 180 -t [CO]   -u H    -l Air Quality: CO        }
${lua main -n gauge -p 78,630  -s 180 -t [MV]   -u H    -l Moon: -v [MP3]         }

explanation

Option Description
-c scale colour format hex:alpha 0xCD950C:1 if -k is 1
-d label colour format hex:alpha 0xbcf600:1
-e graduation number colour format hex:alpha 0x4169E1:1
-f scale and text colour format hex:alpha 0xffd7ff:1
-g gauge column fixed colour format hex:alpha - default is gradient colour
-k Kind / style of gauge. Default is type 2. type 3 gives a way slimmer gauge. There are 3 kinds of style.
-l vertical label required for display on the widget
-n gauge
-p x,y co-ordinates use comma , as separator
-s size 1=full size, 0.5=half size, 2=double size - use intermediate values to other sizes
-t conkywx element in square brackets [PT]
-u conkywx element [UU] for unit in use C or F or as you notice in the example - there are other options
-v additional text to add to widget label

THERMOMETER ^ 

example

${lua main -n thermometer -p 442,218 -t [PT] -l Temperature -s 1 -u [UU]}

explanation

Option Description
-c scale colour format hex:alpha 0xCD950C:1
-d scale line colour format hex:alpha 0xFFD700:1
-e scale text colour format hex:alpha 0x4169E1:1
-f temperature readout font colour format hex:alpha 0x4169E1:1[ 1 ]
-l vertical text required for display on the widget
-n thermometer
-p x,y co-ordinates use comma , as separator
-s size 1=full size, 0.5=half size, 2=double size - use intermediate values to other sizes
-t temperature conkywx element [PT]
-u conkywx element [UU] for unit in use C or F

1. ^ For temperature text - automatic contrast calculation is done based on the bulb and capillary colour. However you can still specify the colour of the temperature text using this option.

CALENDAR ^ 

example

${lua main -n calendar -p -5,-10 -f 10.5 -h 2 }

explanation

Option Description
-d Specify date manually -d 2017:10 - states year and month October
-n calendar
-p x,y co-ordinates use comma , as separator
-w Week day start 1 for Sunday and 2 for Monday
-h Today's date colour and style.
• To use default colours use 1 for ring or 2 for a filled ring.
• To use style 1 with your colours use 1:0x00ff00:1.
• To use style 2 with your colours use 2:0x00ff00:1 or 2:0x00ff00:1:0x000000:1.
• The format is style:fill colour:alpha transparency:character colour:alpha transparency
• character colour is optional as black is used for current date.
• Note: This feature only works in the current month.
-l Colour for week day name Su Mo Tu etc 0x00ff00:1
-m Colour for current month dates 0xffff00:1
-o Colour for last and next month dates 0xaaaaaa:1
-q Colour for month name 0xffa500:1
-r Month name and year placement:
l left of calendar.
lf flipped left of calendar.
r right of calendar.
rf flipped right of calendar.
t top left of calendar.
b bottom left of calendar.
na to disable this feature.

WIDGET SET 2 ^ 

WXGRAPH ^ 

example

${lua main -n wxgraph -p 188,170 -d [GT] -c 0xEE4000:1}

explanation

Option Description
-c colour of line format hex:alpha 0x000000:1
-d trend graph conkywx element
-n wxgraph
-p x,y co-ordinates use comma , as separator

SHOWIMAGE ^ 

example

template1 = '/tmp/wx-param-conkywx-02.conf-pChA_r_27u0-m39/gsi_image.gif',

${lua main -n showimage -i ${template1} -e 8 -s 760,300 -p 5,600 -b -140:+200 -a 65 }

explanation

Option Description
-a add transparency value 1 to 100 - 100 being opaque
-n showimage
-p Position x,y co-ordinates for the widget.
-s Size height,width co-ordinates for the widget.
-i Image with full path
-e enlarge / zoom / scale of background image - the image will increase x times the value
-b pan image - separate values with colon : character x-axis:y-axis

TEXTFORMAT ^ 

example

example 1
${lua main -n textformat3 -p 11,402 -h 100 -o 2:6:0 -w 430 -l Visibility:[VI],U.V.:[UV],Solar:[SOL],Sun Rise:[SR],Sun Set:[SS],Sun MP:[SMT];Wind:[WS],Gust:[WG],From:[WD],Astro:[ATR]/[ATS],Naut:[NTR]/[NTS],Civil:[CTR]/[CTS];Pressure:[BR],Humidity:[HM],Dew Point:[DP],Moon Rise:[MR],Moon Set:[MS],Moon Phs:[MMT] -c 0xffffff:1 -d 0xffaa00:1 -f DejaVu Sans:12 }

example 2
${lua main -n textformat3 -p 480,28 -h 28 -r ; -q ; -t ! -l ${\-n wxgraph addpinfo \-d [GT] \-c 0xff05fc:1 \-s 2.5 \-k 2 }!${\-n wxgraph addpinfo \-d [GW] \-c 0x00FF00:1 \-s 2.5 \-k 2 }!${\-n wxgraph addpinfo \-d [GG] \-c 0xFF90FC:1 \-s 2.5 \-k 2 }!${\-n wxgraph addpinfo \-d [GH] \-c 0x00FF00:1 \-s 2.5 \-k 2 }!${\-n wxgraph addpinfo \-d [GD] \-c 0x00FFFF:1 \-s 2.5 \-k 2 }!${\-n wxgraph addpinfo \-d [GP] \-c 0xFF90Fc:1 \-s 2.5 \-k 2 }!${\-n wxgraph addpinfo \-d [GS] \-c 0xFFff00:1 \-s 2.5 \-k 2 } }

example 3
${lua main -n textformat3 -p 7,20 -h 593 -g d -l @V0@:: SYSTEM ::,@V-20@:: PROCESSORS+TEMPS  ::  STORAGE  ::  NETWORK ::,@V70@:: NETWORK ::,@V33@:: TOP PROCESSES ::,@V30@:: TIME ::,@V0@:: CALENDAR :: -r ! -c 0xffaa00:1 -f DroidSans:bold:11 }

example 4
${lua main -n textformat -p 120,140 -o 30:-15 -w 380 -h 305 -l Fl:[FL],Visibility:[VI],UV:[UV],W:[WS],From:[WD] - [WDD]°,G:[WG],S:[SOL],@V10@Moon [MV]:[MP3],@h5@@v10@Age:[MA],Rate/day:[MROC]%/day,New:[NM],FQ:[MFQ],Full:[FM],LQ: ...

example 5
${lua main -n textformat -p 15,170 -k 2 -h 81 -l [D2D],[D2T],,,[D2ph];[D3D],[D3T],,,[D3ph];[D4D],[D4T],,,[D4ph];[D5D],[D5T],,,[D5ph];[D6D],[D6T],,,[D6ph] -d 0xffaa00:1 -c 0xffffff:1 -f DejaVu Sans:12 }

example 6
${lua main -n textformat -p 50,500 -a c -z 140 -l ${\-n calendar addpinfo \-f 9 \-h 2 } }

example 7 tides display
${lua main -n textformat -p 330,845 -h 160 -w 330 -r ',' -b 2 -e ${template5} -c 0xffAA00:1 -d 0xffFFFF:1 -f DejaVu Sans:12 }

explanation

Option Description
-a define alignment of text - defaults Vertical 'l' Horizontal 'c'
-b tide display - number of days per column
-c left side text colour hex:alpha
-d right side colour hex:alpha
-e tide data file to read and display
-f font - font name:font size
-g data flow direction - used only to force column data
-h height in pixels for the widget
-i offset in pixels for images only
-k a dynamic style component for colour and alignment.
valid values are -k 1 and -k 2
you can use different alternative colours in -c and -d
-l conkywx element comma separated element list
-q use an alternative separator for -l - default is comma ,
-r use an alternative separator for vertical text - default is colon :
-t use an alternative column separator - default is semicolon ;
-s image size in pixels
-o offset in pixels - only required if indenting text and ':' overlaps
if you have more than 1 column then separate the column with colon character
see example 1
-u offset in pixels - similar to -o option ecept for single element without the : separator - used in the case of trends arrows.
-p Position x,y co-ordinates for the widget
-w forced width - specially in the case where the text has 2 columns with ':' as a separator
-z this is the widget width that called through this widget see example 6
@xy@ indentation markers used immidiately before the text to indent.
x = h for horizontal and v for vertical
y = number of pixels - negative numbers give reverse movement - see example 3
example 4 shows how to increase vertical spacing @v10@ and the next line indent
here you need to give vertical spacing again @h5@@v10@ to get uniform spacing.
for vertical spacing you may use , comma as well see example 5-
but use the @h5@@v10@ or @h5@ or @v10@ for more precise control per pixel.
addpinfo look carefully at the example 2 example above. We can add a series of lua or other objects - including and not limited to conky image object and use this element and let this widget handle the object's native position option -p. You will also notice that each lua widget option marker needs to be escaped - example \-n
@nvidia d@GPU Current Temp@°C This will execute nvidia-smi -q program to get you the desired information.
@nvidia d@ indicates number return and for fahrenheit temperature use @nvidia df@.
GPU Current Temp is the value you are looking for. The format user 3 @ symbols.

Note::

BACKGROUND ^ 

example

${lua main -n background -r 25 -c 0x000000:0.2 -s NA,NA}
${lua main -n background -r 25 -c 0x777777:0.8 -s 640,200 -p 1,210}
${lua main -n background -r 15 -c 0x000000:0.3 -i [PIC] -e 7.9 -s NA,NA}
${lua main -n background -r 15 -c 0x444444:0.5 -s 430,110 -p 0,386 -q tr:br:tl }

explanation

Option Description
-c Colour of widget background format hex:alpha 0x000000:1
-n Background
-p Position x,y co-ordinates for the widget.
-r Radius of corners
-s Size height,width co-ordinates for the widget. Let this be NA if you want the widget to use conky height and or width
-i Image element like [PIC] for present condition image
-e enlarge / zoom / scale of background image - the image will increase x times the value
-q tl - top left
tr - top right
bl - bottom left
br - bottom right
Use this option if you do not want the corner curve but a sharp corner
For single corner use -q tr or -q tr:tl - separate the options with a colon character

BARGRAPH ^ 

example

${lua main -n bargraph -p 117,275 -w 90 -s 3 -f cpu -a cpu1}
${lua main -n bargraph -p 190,503 -w 115 -s 1 -f fs_used_perc -a / -l 1 -x 70}

explanation

Option Description
-a conky variable with number = cpu1
-f conky variable name = cpu [ 1 ]
-l enable LED effect = 1 [ 2 ]
-n bargraph
-p x,y co-ordinates use comma , as separator
-s bargraph style
There are 9 styles numbered 1 to 9
they give a gradient colour change to alarm colour
if led effect is used you get a solid colour with alarms
style 1 is thin dashes
style 2 is LED style dashes
style 3 is small vertical bars separated by 2 pixels
style 4 is small vertical bars separated by 1 pixels
style 5 is one continuous bar
style 6 is thinner continuous bar
style 7 similar to style 6 but with dots
style 8 with wide spaced dots
style 9 with wider spaced dots
-w bargraph width = 100
-x set alarm value for led effect = 90 [ 3 ]

1. ^ Conky variable like cpu, fs_used_perc, memperc etc - refer to Conky Usage

2. ^ This value can be omitted if LED effect is not desired.
LED effect does not have gradient and has solid red alarm - this can be useful where alarm values are required like in file system warnings etc

3. ^ This alarm value is only valid if LED effect is 1

ANEMOMETER ^ 

example

${lua main -n anemometer -p 0, 205 -s 200 -r [WS] -t [WG] -u [UU] -w 0 -d [WDD] -j 2 }#

explanation

Option Description
-d wind direction in degrees - conkywx element [WDD]
-n barometer
-p x,y co-ordinates use comma , as separator
-r wind speed - conkywx element [WS]
-s size of the widget
-u units in use - conkywx element [UU]
-v wind gust - conkywx element [WG]
-w enable windvane in the center use 1 or 0 to omit this option
Following are optional
-a Choose type of arrow
-c colour of widget background format hex:alpha 0x000000:1
-e colour text format hex:alpha 0xfff000:1 [ 1 ]
-i Windvane Image choose from numbers 1 to 21. Omit/remove this option to see lua generated compass
-j show/hide bezel or instrument back ground -
0 to hide
1 to show instrument back ground
2 to show bezel [ 3 ]
-k for sizes below 120 pixels - you can use -k km to view km/hr scale, -k mi to view mi/hr scale, -k kn to view knots/hr scale. Since size is mini - only single scale is used for clarity.
-l Windvane - colour arrow use format 0xff0000:1
-t tilt the widget [ 2 ]
-x colour arrow use format 0xff0000:1

1. ^ For text colour - automatic contrast calculation is done based on the -c widget background. However you can still specify the colour of the text using this option.

BAROMETER ^ 

example

${lua main -n barometer -p -7, 412 -s 200 -r [BR] -u [UU] -j 2 }#

explanation

Option Description
-n barometer
-p x,y co-ordinates use comma , as separator
-r pressure - conkywx element [BR]
-s size of the widget
-u units in use - conkywx element [UU]
Following are optional
-a Choose type of arrow
-c colour of widget background format hex:alpha 0x000000:1
-e colour text format hex:alpha 0xfff000:1 [ 1 ]
-j show/hide bezel or instrument back ground -
0 to hide
1 to show instrument back ground
2 to show bezel [ 3 ]
-t tilt the widget [ 2 ]
-x colour arrow use format 0xff0000:1

1. ^ For text colour - automatic contrast calculation is done based on the -c widget background. However you can still specify the colour of the text using this option.

VUMETER ^ 

example

${lua main -n vumeter -p 160,190 -d [UV] -u [UU] -o u -v h }

explanation

Option Description
-d vumeter data - can be
-m [MP3] moon waxing or waning
-n vumeter
-o option to use based on -d value
-p x,y co-ordinates use comma , as separator
-s size height:width [vertical meter] width:height [horizontal meter] for the widget
-u units in use - conkywx element [UU]
Following are optional
-e pointer colour format hex:alpha 0x00FF00:1
-f scale and number colour format hex:alpha 0xCD950C:1
-g label text colour format hex:alpha 0x00ffff:1
-i hide numbers on the vumeter scale
-l Label text for the widget
-v V for vertical or H for horizontal orientation

DAYNIGHT ^ 

example

${lua main -n daynight -s 250 -p 180,300 }

explanation

Option Description
-n daynight
-p x,y co-ordinates use comma , as separator
-s size in pixels for the widget
Following are optional
-g adjust darkness of the Night part - 1 (clear) to 100 (black) Default is 85
-j show/hide bezel or instrument back ground -
0 to hide
1 to show instrument back ground
2 to show bezel [ 3 ]
-l set colour for the moon - format 0xffffff:1
For smaller widget sizes it helps to colour the moon as the moon images are grey in colour.
-m size of the Moon - Default is 2.5 (Sun size is fixed)
-r set colour for the moon ring - use hex format - Default is 0x00ffff:1
-t tilt the widget [ 2 ]
-u set to 1 to update magellan data at conky update_interval. [ 1 ]

1. ^ 

This widget gets the Astronimical data generated by the magellan module.
Internally data from magellan is updated every 30 seconds * conky update_interval.
So an update_interval of 2 seconds will update magellan data every 60 seconds.
It is recommended to keep the conky update_interval set to 5. This will show 1 pixel movement with 600 pixel widget size every 2.5 minutes. Also at this update_interval you will get very low resource usage.
If you set above -u option to 1 - then the cpu usage will depend on the update_interval. If update_interval is set to 1 then magellan data will be read every second.
You are free to use any of these setting that make you happy :-))
Astro data is changing every moment - but for it to be visually apparent it takes some time.

CLOCK ^ 

example

${lua main -n clock -s 200 -p 100,0 -k 35 }

explanation

Option Description
-k Kind/style of clock 1 to 40
-n widget name clock
-p widget position pixels - use x, y format
-s widget size in pixels
Following are optional
-a what kind of seconds pointer to use 0 for no arrow
1 Off center small seconds ring,
2 dot at the seconds markers
3 sweep line at the seconds and hours/minutes markers
4 same 3 + pointers,
5 regular seconds pointer,
6 regular seconds pointer with radar sweep.
7 only radar sweep.
8 With arrow head.
-b colour background of clock.
Not to be used if the clock face is an image i.e. only for use with clock face 1 to 8
Use gradient or single colour [ 1 ]
-c colour seconds hand [ 1 ]
-d colour dial [ 1 ]
-e colour of text n markers face 1 to 8 [ 1 ]
-f Clock face to use 1 to 18.
1 to 8 are lua generated rest are images.
-h what kind of pointer to use for hours n minutes 1 to 10
-i colour hours min arrow [ 1 ]
-j show/hide gears - 0 to hide 1 to show
-l length of seconds indicator
-m length of hour and minute indicator
-r colour small ring seconds [ 1 ]
-t tilt the widget [ 2 ]
-u 0 for 12 hr, 1 for 24 hr, 2 for reverse 24 hr
-v variable time zone offset in minutes from YOUR value.
eg: If you are in Europe . To display: New Delhi - you enter 270 - and for Magdalena - you would enter -480 .
-x show/hide day date
-y show/hide ampm - does not show in 24 hour clock
-z show/hide bezel or instrument back ground -
0 to hide
1 to show instrument back ground
2 to show bezel [ 3 ]

1. ^ Single colour format is hex:alpha notation e.g. 0x00ffff:1
Gradient colour format is e.g. 0xffbbff:0.45::0xffbbff:1::0x810541:1
If gradient colour is not suggested - use only single colour.

2. ^ Tilt uses 4 parameters for example A:B:C:D - separated by a colon : character.
A will affect xx - which is width. -ve value will flip image to left - see the back side of the widget and change width.
B will affect yx axis - skew it clock wise. -ve value will skew it anti-clockwise
C will affect xy axis - skew it to right. -ve value will skew it to left.
D will affect yy - which is height. -ve value will flip image up - see the back side of the widget and change height.
Basicaly we are only skewing the widget to left or right such that we get a sence of depth - if one can imagine ;-)
For left skewed use 1:0:-0.3:0.9
For right skewed use 1:0:0.3:0.9

3. ^ Bezel back ground has 6 options - usage 2:1. Default 2:2 is used if only number 2 is used.

CREDITS ^ 

updated: 2020-Feb-27 10:13, conkywx 200227 help files © 2020 Paramvir Likhari