Conky Configs, Scripts & Help Thread

A place to share tips, guides, application configurations and scripts about all elements of ArchLabs

Moderator: Founder

Conky Configs, Scripts & Help Thread

PostPosted by Dobbie03 » Sun May 07, 2017 6:27 am

All your conky configs, questions and scripts go here, share the love.
I like my Metal like my coffee.......black
User avatar
Dobbie03
Founder
Founder
 
Posts: 549
Joined: Sat Feb 18, 2017 2:51 pm
Location: New Zealand
Running Release: DobbieBang

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Sun May 07, 2017 8:11 am

Here I am ... with my first (of many I hope) ARCHLabs conkys ... a simple tweak of the default conky to start with.
Image
The conky:
Code: Select all
--[[

# Original by: Sector11 for BunsenLabs
# Edited by: Erik Dubois for ARCHLabs
# re-edited by Sector11 06/05/17

]]

conky.config = {

   --Various settings

   background = true,            -- forked to background
--   cpu_avg_samples = 2,         -- The number of samples to average for CPU monitoring.
--   diskio_avg_samples = 10,      -- The number of samples to average for disk I/O monitoring.
   double_buffer = true,         -- Use the Xdbe extension? (eliminates flicker)
--   if_up_strictness = 'address',   -- how strict if testing interface is up - up, link or address
--   net_avg_samples = 2,         -- The number of samples to average for net data
   no_buffers = true,            -- Subtract (file system) buffers from used memory?
--   temperature_unit = 'celsius',   -- fahrenheit or celsius
--   text_buffer_size = 2048,      -- size of buffer for display of content of large variables - default 256
   update_interval = 1,         -- update interval
   imlib_cache_size = 0,         -- disable image cache to get a new spotify cover per song

   --Placement

   alignment = 'top_right',      -- top-left,top-middle,top-right,bottom-left,bottom-middle,bottom-right,
            -- middle-left,middle-middle,middle-right,none
   --Arch Duoscreen
   --gap_x = -1910,
   gap_x = 10,                  -- pixels between right or left border
   gap_y = 60,                  -- pixels between bottom or left border

   minimum_height = 200,         -- minimum height of window
   minimum_width = 200,         -- minimum height of window
   maximum_width = 200,         -- maximum height of window

   --Graphical

   border_inner_margin = 5,       -- margin between border and text
   border_outer_margin = 0,       -- margin between border and edge of window
   border_width = 0,            -- border width in pixels
   stippled_borders = 0,         -- dashing the border
   draw_borders = false,         -- draw borders around text
   draw_graph_borders = true,      -- draw borders around graphs

--   default_bar_width = 280,      -- default is 0 - full width
--   default_bar_height = 10,      -- default is 6
--   default_gauge_height = 25,      -- default is 25
--   default_gauge_width =40,      -- default is 40
--   default_graph_height = 40,      -- default is 25
--   default_graph_width = 153,      -- default is 0 - full width

   draw_shades = true,               -- draw shades
   default_shade_color = '#000000',   -- default shading colour

   draw_outline = false,            -- draw outline
   default_outline_color = '#000000',   -- default outline colour

   --Textual

   extra_newline = false,         -- extra newline at the end - for asesome's wiboxes
   format_human_readable = true,   -- KiB, MiB rather then number of bytes
   font = 'monospace:bold:size=10',        -- font for complete conky unless in code defined
   use_xft = true,               -- xft font - anti-aliased font
   max_text_width = 0,            -- 0 will make sure line does not get broken if width too smal
--   max_user_text = 16384,         -- max text in conky default 16384
   override_utf8_locale = true,   -- force UTF8 requires xft
   short_units = true,            -- shorten units from KiB to k
--   top_name_width = 21,         -- width for $top name value default 15
--   top_name_verbose = false,      -- If true, top name shows the full command line of  each  process - Default value is false.
--   uppercase = false,            -- uppercase or not
   use_spacer = 'none',         -- adds spaces around certain objects to align - default none
   xftalpha = 1,               -- alpha of the xft font - between 0-1

   --Windows

   own_window = true,               -- create your own window to draw
   own_window_class = 'Conky',         -- manually set the WM_CLASS name for use with xprop
   own_window_colour = '#000000',      -- set colour if own_window_transparent no
   own_window_transparent = true,      -- if own_window_argb_visual is true sets background opacity 0%
   own_window_title = 'system_conky',   -- set the name manually  - default conky "hostname"
   own_window_type = 'desktop',      -- if own_window true options are: normal/override/dock/desktop/panel

--   own_window_argb_value = 50,         -- real transparency - composite manager required 0-255
--   own_window_argb_visual = true,      -- use ARGB - composite manager required

   own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager',
        -- if own_window true - just hints - own_window_type sets it

   --Colours

   default_color = '#C0C0C0',        -- default color and border color
   color1 = '#888888',
   color2 = '#AAAAAA',
   color3 = '#cccccc',
   color4 = '#BDBDBD',
   color5 = '#CCCCCC',
   color6 = '#aa0000',
   color7 = '#1F7411',              --green
   color8 = '#FFA726',              --orange
   color9 = '#F1544B',              --firebrick

   --Lua

};

conky.text = [[
${image /home/sector11/.config/conky/images/flatALlogo-2.png -p 55,0}\
${alignc 5}${swapbar 0,25} SYSTEM  INFO ${swapbar 0,25}





${alignc -5}${execi 86400 env | grep DESKTOP_SESSION= |cut -c 17-}
${nodename}${alignr}${kernel}
${swapbar 0}
Booted${alignr}${execi 86400 who -b | cut -c23-}
Up for${alignr}${execi 15 w | awk '/ up /{gsub(/,$/,"",$3);print $3}'}

UTC${alignr}${utime %H:%M}
Local${alignr}${time %T}

${alignc}${swapbar 0,25} Disk  Stats ${swapbar 0,25}
 R${goto 30}${diskiograph_read /dev/sda 12,120 00ffff ff0000 5 -lt}${alignr 5}${diskio_read /dev/sda}
 W${goto 30}${diskiograph_write /dev/sda 12,120 ff0000 00ffff 5 -lt}${alignr 5}${diskio_write /dev/sda}
${goto 60}Used${alignr 5}Size
Root${goto 60}${fs_used /}${alignr}${fs_size /}
Home${goto 60}${fs_used /home}${alignr}${fs_size /home}

${goto 60}MEM${alignr 5}MAX
RAM${goto 60}${mem}${alignr}${memmax}

CPU:${goto 60}Used${alignr 5}GHz
Avg${goto 60}${if_match ${cpu cpu0}<10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%${alignr}${freq_g 0}
 1 ${goto 60}${if_match ${cpu cpu1}<10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100} ${cpu cpu1}\
${else}${cpu cpu1}${endif}${endif}%${alignr}${freq_g 1}
 2 ${goto 60}${if_match ${cpu cpu2}<10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100} ${cpu cpu2}\
${else}${cpu cpu2}${endif}${endif}%${alignr}${freq_g 2}
 3 ${goto 60}${if_match ${cpu cpu3}<10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100} ${cpu cpu3}\
${else}${cpu cpu3}${endif}${endif}%${alignr}${freq_g 3}

${alignc}${swapbar 0,25} Net Stats ${swapbar 0,25}
 tx  ${upspeed eth0}${alignr 10} ${downspeed eth0}  rx
Dn${goto 30}${downspeedgraph eth0 12,120 00ffff ff0000 5 -lt}${alignr 5}${downspeedf eth0}
Up${goto 30}${upspeedgraph eth0 12,120 ff0000 00ffff 5 -lt}${alignr 5}${upspeedf eth0}

${alignc}S H O R T C U T    K E Y S
${hr}
[Alt] + F2${alignr}Run Dialog
[Alt] + F3${alignr}Alt Menu
[S] + Space${alignr}Main Menu
[S] + Tab${alignr}Client Menu
[S] + t${alignr}Terminal
[S] + f${alignr}File Manager
[S] + e${alignr}Editor
[S] + m${alignr}Media Player
[S] + w${alignr}Web Browser
[S] + h${alignr}Task Manager
[S] + l${alignr}Lock Screen
[S] + v${alignr}Volume Control
[S] + x${alignr}Logout
[PrtSc]${alignr}Screenshot]];


Need the little LOGO: flatALlogo-2.png = Image 100x100 with a little drop shadow.
Last edited by Sector11 on Mon May 08, 2017 7:29 am, edited 1 time in total.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Dobbie03 » Sun May 07, 2017 8:53 am

This can only be the beginning of a good thing...:)
I like my Metal like my coffee.......black
User avatar
Dobbie03
Founder
Founder
 
Posts: 549
Joined: Sat Feb 18, 2017 2:51 pm
Location: New Zealand
Running Release: DobbieBang

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Sun May 07, 2017 11:23 am

Thanks for the vote of confidence Dobbie03.

I have a couple of text files I find very handy when it come to two things concerning conky, colour and time.

Lets start with colour ... sure search the net .. but this is easier:
/media/5/Conky/00_TIPS_N_STUFF/colours_web_safe_2.txt
Code: Select all
use: rgb (hexcode)

Hex    | Decimal      |HTML colour
code   | code         |name
 Red colors
CD5C5C  #205  92  92  IndianRed
F08080  #240 128 128  LightCoral
FA8072  #250 128 114  Salmon
E9967A  #233 150 122  DarkSalmon
FFA07A  #255 160 122  LightSalmon
DC143C  #220  20  60  Crimson
FF0000  #255   0   0  Red
B22222  #178  34  34  FireBrick
8B0000  #139   0   0  DarkRed

 Pink colors
FFC0CB  #255 192 203  Pink
FFB6C1  #255 182 193  LightPink
FF69B4  #255 105 180  HotPink
FF1493  #255  20 147  DeepPink
C71585  #199  21 133  MediumVioletRed
DB7093  #219 112 147  PaleVioletRed

 Orange colors
FFA07A  #255 160 122  LightSalmon
FF7F50  #255 127  80  Coral
FF6347  #255  99  71  Tomato
FF4500  #255  69   0  OrangeRed
FF8C00  #255 140   0  DarkOrange
FFA500  #255 165   0  Orange

 Yellow colors
FFD700  #255 215   0  Gold
FFFF00  #255 255   0  Yellow
FFFFE0  #255 255 224  LightYellow
FFFACD  #255 250 205  LemonChiffon
FAFAD2  #250 250 210  LightGoldenrodYellow
FFEFD5  #255 239 213  PapayaWhip
FFE4B5  #255 228 181  Moccasin
FFDAB9  #255 218 185  PeachPuff
EEE8AA  #238 232 170  PaleGoldenrod
F0E68C  #240 230 140  Khaki
BDB76B  #189 183 107  DarkKhaki

 Purple colors
E6E6FA  #230 230 250  Lavender
D8BFD8  #216 191 216  Thistle
DDA0DD  #221 160 221  Plum
EE82EE  #238 130 238  Violet
DA70D6  #218 112 214  Orchid
FF00FF  #255   0 255  Fuchsia
FF00FF  #255   0 255  Magenta
BA55D3  #186  85 211  MediumOrchid
9370DB  #147 112 219  MediumPurple
8A2BE2  #138  43 226  BlueViolet
9400D3  #148   0 211  DarkViolet
9932CC  #153  50 204  DarkOrchid
8B008B  #139   0 139  DarkMagenta
800080  #128   0 128  Purple
4B0082  # 75   0 130  Indigo
6A5ACD  #106  90 205  SlateBlue
483D8B  # 72  61 139  DarkSlateBlue
7B68EE  #123 104 238  MediumSlateBlue

 Green colors
ADFF2F  #173 255  47  GreenYellow
7FFF00  #127 255   0  Chartreuse
7CFC00  #124 252   0  LawnGreen
00FF00  #  0 255   0  Lime
32CD32  # 50 205  50  LimeGreen
98FB98  #152 251 152  PaleGreen
90EE90  #144 238 144  LightGreen
00FA9A  #  0 250 154  MediumSpringGreen
00FF7F  #  0 255 127  SpringGreen
3CB371  # 60 179 113  MediumSeaGreen
2E8B57  # 46 139  87  SeaGreen
228B22  # 34 139  34  ForestGreen
008000  #  0 128   0  Green
006400  #  0 100   0  DarkGreen
9ACD32  #154 205  50  YellowGreen
6B8E23  #107 142  35  OliveDrab
808000  #128 128   0  Olive
556B2F  # 85 107  47  DarkOliveGreen
66CDAA  #102 205 170  MediumAquamarine
8FBC8F  #143 188 143  DarkSeaGreen
20B2AA  # 32 178 170  LightSeaGreen
008B8B  #  0 139 139  DarkCyan
008080  #  0 128 128  Teal

 Blue/Cyan colors
00FFFF  #  0 255 255  Aqua
00FFFF  #  0 255 255  Cyan
E0FFFF  #224 255 255  LightCyan
AFEEEE  #175 238 238  PaleTurquoise
7FFFD4  #127 255 212  Aquamarine
40E0D0  # 64 224 208  Turquoise
48D1CC  # 72 209 204  MediumTurquoise
00CED1  #  0 206 209  DarkTurquoise
5F9EA0  # 95 158 160  CadetBlue
4682B4  # 70 130 180  SteelBlue
B0C4DE  #176 196 222  LightSteelBlue
B0E0E6  #176 224 230  PowderBlue
ADD8E6  #173 216 230  LightBlue
87CEEB  #135 206 235  SkyBlue
87CEFA  #135 206 250  LightSkyBlue
00BFFF  #  0 191 255  DeepSkyBlue
1E90FF  # 30 144 255  DodgerBlue
6495ED  #100 149 237  CornflowerBlue
7B68EE  #123 104 238  MediumSlateBlue
4169E1  # 65 105 225  RoyalBlue
0000FF  #  0   0 255  Blue
0000CD  #  0   0 205  MediumBlue
00008B  #  0   0 139  DarkBlue
000080  #  0   0 128  Navy
191970  # 25  25 112  MidnightBlue

 Brown colors
FFF8DC  #255 248 220  Cornsilk
FFEBCD  #255 235 205  BlanchedAlmond
FFE4C4  #255 228 196  Bisque
FFDEAD  #255 222 173  NavajoWhite
F5DEB3  #245 222 179  Wheat
DEB887  #222 184 135  BurlyWood
D2B48C  #210 180 140  Tan
BC8F8F  #188 143 143  RosyBrown
F4A460  #244 164  96  SandyBrown
DAA520  #218 165  32  Goldenrod
B8860B  #184 134  11  DarkGoldenrod
CD853F  #205 133  63  Peru
D2691E  #210 105  30  Chocolate
8B4513  #139  69  19  SaddleBrown
A0522D  #160  82  45  Sienna
A52A2A  #165  42  42  Brown
800000  #128   0   0  Maroon

 White colors
FFFFFF  #255 255 255  White
FFFAFA  #255 250 250  Snow
F0FFF0  #240 255 240  Honeydew
F5FFFA  #245 255 250  MintCream
F0FFFF  #240 255 255  Azure
F0F8FF  #240 248 255  AliceBlue
F8F8FF  #248 248 255  GhostWhite
F5F5F5  #245 245 245  WhiteSmoke
FFF5EE  #255 245 238  Seashell
F5F5DC  #245 245 220  Beige
FDF5E6  #253 245 230  OldLace
FFFAF0  #255 250 240  FloralWhite
FFFFF0  #255 255 240  Ivory
FAEBD7  #250 235 215  AntiqueWhite
FAF0E6  #250 240 230  Linen
FFF0F5  #255 240 245  LavenderBlush
FFE4E1  #255 228 225  MistyRose

 Grey colors
DCDCDC  #220 220 220  Gainsboro
D3D3D3  #211 211 211  LightGrey
C0C0C0  #192 192 192  Silver
A9A9A9  #169 169 169  DarkGrey
808080  #128 128 128  Grey
696969  #105 105 105  DimGrey
778899  #119 136 153  LightSlateGrey
708090  #112 128 144  SlateGrey
2F4F4F  # 47  79  79  DarkSlateGrey
000000  #  0   0   0  Black


Now since ARCHLabs comes with yad ... did you know about:
Code: Select all
yad --color

Image
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Sun May 07, 2017 11:29 am

and of course "time"

Conky's 'time' command is the same as bash's date command for options.
So
Code: Select all
man date
will give you what you need, but it's much easier in a reformatted text file: /media/5/Conky/00_TIPS_N_STUFF/Time_2.txt
Code: Select all
Conky: ${time %?} or ${time %? %? %?}

Time
====
%H    Two digit representation of the hour in 24-hour format    00 through 23
%I    Two digit representation of the hour in 12-hour format    01 through 12
%l   (lower-case 'L') Hour in 12-hour format, with a space preceeding single digits 1 through 12

%M    Two digit representation of the minute    00 through 59

%p    UPPER-CASE 'AM' or 'PM' based on the given time    Example: AM for 00:31, PM for 22:23
%P    lower-case 'am' or 'pm' based on the given time    Example: am for 00:31, pm for 22:23

%r    Same as "%I:%M:%S %p"    Example: 09:34:17 PM for 21:34:17
%R    Same as "%H:%M"    Example: 00:35 for 12:35 AM, 16:44 for 4:44 PM
%S    Two digit representation of the second    00 through 59
%T    Same as "%H:%M:%S"    Example: 21:34:17 for 09:34:17 PM
-------
%X    Preferred time representation based on locale, without the date    Example: 03:59:16 or 15:59:16
-------
%z    Either the time zone offset from UTC or the abbreviation (depends on operating system)    Example: -0500 or EST for Eastern Time
%Z    The time zone offset/abbreviation option NOT given by %z (depends on operating system)    Example: -0500 or EST for Eastern Time

Day
===
%a    An abbreviated textual representation of the day    Sun through Sat
%A    A full textual representation of the day    Sunday through Saturday
%d    Two-digit day of the month (with leading zeros)    01 to 31
%e    Day of the month, with a space preceding single digits    1 to 31
%j    Day of the year, 3 digits with leading zeros    001 to 366
%u    ISO-8601 numeric representation of the day of the week    1 (for Monday) though 7 (for Sunday)
%w    Numeric representation of the day of the week    0 (for Sunday) through 6 (for Saturday)

Month
=====
%b    Abbreviated month name, based on the locale    Jan through Dec
%B    Full month name, based on the locale    January through December
%h    Abbreviated month name, based on the locale (an alias of %b)    Jan through Dec
%m    Two digit representation of the month (with leading zeros)    01 to 12

Year
====
%g    Two digit representation of the year going by ISO-8601:1988 standards (see Week: %V)    Example: 09 for the week of January 6, 2009
%G    The full four-digit version of %g    Example: 2008 for the week of January 3, 2009
%y    Two digit representation of the year    Example: 09 for 2009, 79 for 1979
%Y    Four digit representation for the year    Example: 2038

Century
=======
%C    Two digit representation of the century (year divided by 100, truncated to an integer)    19 for the 20th

Week
====
%U    Week number of the given year, starting with the first Sunday as the first week 13 (for the 13th full week of the year)
%V    ISO-8601:1988 week number of the given year, starting with the first week of the year with at least 4 weekdays, with Monday being the start of the week
    01 through 53 (where 53 accounts for an overlapping week)
%W    A numeric representation of the week of the year, starting with the first Monday as the first week
    46 (for the 46th week of the year beginning with a Monday)

Time and Date Stamps
====================
%c    Preferred date and time stamp based on local    Example: Tue Feb 5 00:45:10 2009 for February 4, 2009 at 12:45:10 AM
%D    Same as "%m/%d/%y"    Example: 02/05/09 for February 5, 2009
%F    Same as "%Y-%m-%d" (commonly used in database datestamps)    Example: 2009-02-05 for February 5, 2009
%s    Unix Epoch Time timestamp (same as the time() function)    Example: 305815200 for September 10, 1979 08:40:00 AM
%x    Preferred date representation based on locale, without the time    Example: 02/05/09 for February 5, 2009

Miscellaneous
=============
%n    A newline character ("\n")    ---
%t    A Tab character ("\t")    ---
%%    A literal percentage character ("%")    ---

Maximum length of this parameter is 1023 characters.

And as the Terminator said "I'll be back"
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Dobbie03 » Sun May 07, 2017 3:05 pm

I did not know yad could do that. I am trying to find a list of things it can do, any idea if there is one?
I like my Metal like my coffee.......black
User avatar
Dobbie03
Founder
Founder
 
Posts: 549
Joined: Sat Feb 18, 2017 2:51 pm
Location: New Zealand
Running Release: DobbieBang

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Sun May 07, 2017 3:22 pm

Dobbie03 wrote:I did not know yad could do that. I am trying to find a list of things it can do, any idea if there is one?

I really hate this answer, always have, but since you asked:
Code: Select all
man yad

and look at the options. Sorry but that's the only list I know.

The other two I like:
yad --calendar <-> no more osmo and the likes.
and
yad --font <--> great for conky too!
Image
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Dobbie03 » Sun May 07, 2017 4:24 pm

Sector11 wrote:
Dobbie03 wrote:I did not know yad could do that. I am trying to find a list of things it can do, any idea if there is one?

I really hate this answer, always have, but since you asked:
Code: Select all
man yad

and look at the options. Sorry but that's the only list I know.

The other two I like:
yad --calendar <-> no more osmo and the likes.
and
yad --font <--> great for conky too!
Image


Thanks for that, seems that YAD is pretty universal.
I like my Metal like my coffee.......black
User avatar
Dobbie03
Founder
Founder
 
Posts: 549
Joined: Sat Feb 18, 2017 2:51 pm
Location: New Zealand
Running Release: DobbieBang

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Mon May 08, 2017 7:39 am

The ARCHLabs logo (tweaked) Conky:
Image

~/.config/conky/S11-ARCHLABS-2.conky
Code: Select all
conky.config = {
--# Created By: Sector11 for ARCHLabs
--# If you can copy/paste the code: it's yours.
--# Please give credit where credit is due.
--# ARCHLabs Logo tweaked from: flatALlogo.png
--# Started: Fri 05 May 2017
--# Converted to Cv1.10 Sun 07 May 2017
--# pkill -xf "conky -c ~/.config/conky/S11-ARCHLABS-2.conky" &

--# ---------- Begin Window Settings
   own_window = true,
   own_window_type = 'normal',
   own_window_transparent = true,
   own_window_hints = 'skip_taskbar,skip_pager,undecorated,below',
   own_window_colour = '#000000',
   own_window_class = 'Conky',
   own_window_title = 'ARCHLabs 2',
--own_window_argb_visual yes
--own_window_argb_value 80

   gap_x = 0,   -- l|r
   gap_y = 0,   -- u|d

   minimum_width = 600,
   minimum_height = 600,
   maximum_width = 600,

   alignment = 'middle_middle',
--   alignment = 'top_left',

--# ---------- End Window Settings
--# ---------- Font Settings

   override_utf8_locale = true,
   use_xft = true,
   font = 'Noto Mono:bold:size=10',
   xftalpha = 1.0,

--# --------- End Font Settings
--# --------- Color Settings
   draw_shades = true,
   default_shade_color = '#000000',
   draw_outline = true,
   default_outline_color = '#000000',


   default_color = '#DCDCDC',--Gainsboro
   color0 = '#C0C0C0',--Silver
   color1 = '#778899',--LightSlateGray
   color2 = '#FAEBD7',--AntiqueWhite
   color3 = '#87CEFA',--LightSkyBlue
   color4 = '#48D1CC',--MediumTurquoise
   color5 = '#FFDEAD',--NavajoWhite
   color6 = '#00BFFF',--DeepSkyBlue
   color7 = '#B0E0E6',--PowderBlue
   color8 = '#FFD700',--Gold
   color9 = '#CD5C5C',--IndianRed

--# ---------- End Color Settings
--# ---------- Begin Borders Section

   draw_borders = false,
   stippled_borders = 0,
   border_width = 2,

   border_inner_margin = 0,
   border_outer_margin = 0,

   draw_graph_borders = true,

--# ---------- End Borders Secton
--# ---------- Begin Miscellaneous Section

   background = true,
   use_spacer = 'none',
   no_buffers = true,
   imlib_cache_size = 0,
   double_buffer = true,
   short_units = true,

--# ---------- End Miscellaneous Section

   update_interval = 1,

};

conky.text = [[
${image ~/.config/conky/images/flatALlogo-3.png -p 2,0 -s 600x600}




${alignc}${time %T}

${goto 256}CPU${goto 298}0${goto 316}${if_match ${cpu cpu0}<10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%
${goto 249}CPU${goto 298}1${goto 325}${if_match ${cpu cpu1}<10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100} ${cpu cpu1}\
${else}${cpu cpu1}${endif}${endif}%
${goto 241}CPU${goto 298}2${goto 333}${if_match ${cpu cpu2}<10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100} ${cpu cpu2}\
${else}${cpu cpu2}${endif}${endif}%
${goto 235}CPU${goto 298}3${goto 340}${if_match ${cpu cpu3}<10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100} ${cpu cpu3}\
${else}${cpu cpu3}${endif}${endif}%
${alignc}${time %a %d %b %Y}
${goto 242}Week${goto 347}${time %U}







${alignc}${nodename}
${alignc}${kernel}

${goto 150}/${alignr 145}~/
${goto 139}U: ${fs_used /}${alignr 135}${fs_used /home} :U
${goto 130}F: ${fs_free /}${alignr 125}${fs_free /home} :F
${goto 120}S: ${fs_size /}${alignr 116}${fs_size /home} :S

${goto 105}NET ${totalup eth0}${alignr 105}${totaldown eth0} NET
${goto 100}UP ${upspeedf eth0}   ${alignr 95}${downspeedf eth0} DN

${alignc}Up ${exec w | awk '/ up /{gsub(/,$/,"",$3);print $3}'}
${alignc}Boot ${execpi 86400 who -b | cut -c23-}
${goto 70}Env ${execpi 86400 env | grep DESKTOP_SESSION= |cut -c 17-}\
${goto 405}Display ${execpi 86400 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}]];


I see the command:
Code: Select all
Display ${execpi 86400 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}

does not work in ARCH. Anyone know a command that gets the display size? In Bunsen it shows:
Code: Select all
Display 1920x1080


And you need: ~/.config/conky/images/flatALlogo-3.png
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Tue May 09, 2017 8:10 am

Anyone like playing with dice? How about dice time and date?
Image
Lots of images in these so I need to find a place to upload them.

One of the 6 conkys: Dice-Clock-bg.conky is the Black "clock" on the left middle, there is a Dice-Date-bg.conky as well, seen to the right of the clock
Code: Select all
--[[

Original by: Sector11
Converted to conky v1.10 Mon 08 May 2017
-- edit as required -- and all links to images below
pkill -xf "conky -c /home/sector11/.config/conky/DiceClock/Dice-Clock-bg.conky" &

]]

conky.config = {
--  ---------- Begin Window Settings
   own_window = true,
   own_window_type = 'normal',
   own_window_transparent = true,
   own_window_hints = 'skip_taskbar,skip_pager,undecorated,below',
   own_window_colour = '#000000',
   own_window_class = 'Conky',
   own_window_title = 'Dice Date Background',
--   own_window_argb_visual yes
--   own_window_argb_value 80

   gap_x = 5,   -- l|r
   gap_y = 0,   -- u|d

   minimum_width = 122,
   minimum_height = 78,
   maximum_width = 122,

   alignment = 'middle_left',

--  ---------- End Window Settings
--  ---------- Font Settings

   override_utf8_locale = true,
   use_xft = true,
   font = 'Noto Mono:size=10',
   xftalpha = 1.0,

--  --------- End Font Settings
--  --------- Color Settings
   draw_shades = true,
   default_shade_color = '#000000',
   draw_outline = true,
   default_outline_color = '#000000',


   default_color = '#DCDCDC',   --Gainsboro
   color0 = '#C0C0C0',         --Silver
   color1 = '#778899',         --LightSlateGray
   color2 = '#FAEBD7',         --AntiqueWhite
   color3 = '#87CEFA',         --LightSkyBlue
   color4 = '#48D1CC',         --MediumTurquoise
   color5 = '#FFDEAD',         --NavajoWhite
   color6 = '#00BFFF',         --DeepSkyBlue
   color7 = '#B0E0E6',         --PowderBlue
   color8 = '#FFD700',         --Gold
   color9 = '#CD5C5C',         --IndianRed

--  ---------- End Color Settings
--  ---------- Begin Borders Section

   draw_borders = false,
   stippled_borders = 0,
   border_width = 2,

   border_inner_margin = 0,
   border_outer_margin = 0,

   draw_graph_borders = false,

--  ---------- End Borders Secton
--  ---------- Begin Miscellaneous Section

   background = true,
   use_spacer = 'none',
   no_buffers = true,
   imlib_cache_size = 0,
   double_buffer = true,
   short_units = true,

--  ---------- End Miscellaneous Section

   update_interval = 1,

};

conky.text = [[
${if_match ${time %H}==01}${image ~/.config/conky/DiceClock/images-bg/g-0-1.png -p 0,0}${endif}\
${if_match ${time %H}==02}${image ~/.config/conky/DiceClock/images-bg/g-0-2.png -p 0,0}${endif}\
${if_match ${time %H}==03}${image ~/.config/conky/DiceClock/images-bg/g-0-3.png -p 0,0}${endif}\
${if_match ${time %H}==04}${image ~/.config/conky/DiceClock/images-bg/g-0-4.png -p 0,0}${endif}\
${if_match ${time %H}==05}${image ~/.config/conky/DiceClock/images-bg/g-0-5.png -p 0,0}${endif}\
${if_match ${time %H}==06}${image ~/.config/conky/DiceClock/images-bg/g-0-6.png -p 0,0}${endif}\
${if_match ${time %H}==07}${image ~/.config/conky/DiceClock/images-bg/g-1-6.png -p 0,0}${endif}\
${if_match ${time %H}==08}${image ~/.config/conky/DiceClock/images-bg/g-2-6.png -p 0,0}${endif}\
${if_match ${time %H}==09}${image ~/.config/conky/DiceClock/images-bg/g-3-6.png -p 0,0}${endif}\
${if_match ${time %H}==10}${image ~/.config/conky/DiceClock/images-bg/g-4-6.png -p 0,0}${endif}\
${if_match ${time %H}==11}${image ~/.config/conky/DiceClock/images-bg/g-5-6.png -p 0,0}${endif}\
${if_match ${time %H}==12}${image ~/.config/conky/DiceClock/images-bg/b-6-6.png -p 0,0}${endif}\
${if_match ${time %H}==13}${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 0,0}${endif}\
${if_match ${time %H}==14}${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 0,0}${endif}\
${if_match ${time %H}==15}${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 0,0}${endif}\
${if_match ${time %H}==16}${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 0,0}${endif}\
${if_match ${time %H}==17}${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 0,0}${endif}\
${if_match ${time %H}==18}${image ~/.config/conky/DiceClock/images-bg/b-0-6.png -p 0,0}${endif}\
${if_match ${time %H}==19}${image ~/.config/conky/DiceClock/images-bg/b-1-6.png -p 0,0}${endif}\
${if_match ${time %H}==20}${image ~/.config/conky/DiceClock/images-bg/b-2-6.png -p 0,0}${endif}\
${if_match ${time %H}==21}${image ~/.config/conky/DiceClock/images-bg/b-3-6.png -p 0,0}${endif}\
${if_match ${time %H}==22}${image ~/.config/conky/DiceClock/images-bg/b-4-6.png -p 0,0}${endif}\
${if_match ${time %H}==23}${image ~/.config/conky/DiceClock/images-bg/b-5-6.png -p 0,0}${endif}\
${if_match ${time %H}==00}${image ~/.config/conky/DiceClock/images-bg/w-0-0.png -p 0,0}${endif}\
   ${if_match ${time %M}==00}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 82,0}${endif}\
   ${if_match ${time %M}==01}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 82,0}${endif}\
   ${if_match ${time %M}==02}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 82,0}${endif}\
   ${if_match ${time %M}==03}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 82,0}${endif}\
   ${if_match ${time %M}==04}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 82,0}${endif}\
   ${if_match ${time %M}==05}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 82,0}${endif}\
   ${if_match ${time %M}==06}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==07}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-1-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==08}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-2-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==09}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-3-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==10}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 82,0}${endif}\
   ${if_match ${time %M}==11}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 82,0}${endif}\
   ${if_match ${time %M}==12}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 82,0}${endif}\
   ${if_match ${time %M}==13}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 82,0}${endif}\
   ${if_match ${time %M}==14}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 82,0}${endif}\
   ${if_match ${time %M}==15}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 82,0}${endif}\
   ${if_match ${time %M}==16}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==17}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-1-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==18}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-2-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==19}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-3-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==20}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 82,0}${endif}\
   ${if_match ${time %M}==21}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 82,0}${endif}\
   ${if_match ${time %M}==22}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 82,0}${endif}\
   ${if_match ${time %M}==23}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 82,0}${endif}\
   ${if_match ${time %M}==24}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 82,0}${endif}\
   ${if_match ${time %M}==25}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 82,0}${endif}\
   ${if_match ${time %M}==26}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==27}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-1-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==28}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-2-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==29}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-3-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==30}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 82,0}${endif}\
   ${if_match ${time %M}==31}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 82,0}${endif}\
   ${if_match ${time %M}==32}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 82,0}${endif}\
   ${if_match ${time %M}==33}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 82,0}${endif}\
   ${if_match ${time %M}==34}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 82,0}${endif}\
   ${if_match ${time %M}==35}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 82,0}${endif}\
   ${if_match ${time %M}==36}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==37}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-1-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==38}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-2-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==39}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-3-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==40}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 82,0}${endif}\
   ${if_match ${time %M}==41}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 82,0}${endif}\
   ${if_match ${time %M}==42}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 82,0}${endif}\
   ${if_match ${time %M}==43}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 82,0}${endif}\
   ${if_match ${time %M}==44}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 82,0}${endif}\
   ${if_match ${time %M}==45}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 82,0}${endif}\
   ${if_match ${time %M}==46}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==47}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-1-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==48}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-2-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==49}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-3-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==50}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-0.png -p 82,0}${endif}\
   ${if_match ${time %M}==51}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-1.png -p 82,0}${endif}\
   ${if_match ${time %M}==52}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-2.png -p 82,0}${endif}\
   ${if_match ${time %M}==53}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-3.png -p 82,0}${endif}\
   ${if_match ${time %M}==54}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-4.png -p 82,0}${endif}\
   ${if_match ${time %M}==55}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 82,0}${endif}\
   ${if_match ${time %M}==56}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==57}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-1-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==58}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-2-6.png -p 82,0}${endif}\
   ${if_match ${time %M}==59}\
   ${image ~/.config/conky/DiceClock/images-bg/b-0-5.png -p 41,0}\
   ${image ~/.config/conky/DiceClock/images-bg/b-3-6.png -p 82,0}${endif}]];


Created this as a novelty thing ... rarely use them
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Dobbie03 » Tue May 09, 2017 5:40 pm

Holy shit, that's a unique one S11!
I like my Metal like my coffee.......black
User avatar
Dobbie03
Founder
Founder
 
Posts: 549
Joined: Sat Feb 18, 2017 2:51 pm
Location: New Zealand
Running Release: DobbieBang

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Wed May 10, 2017 1:45 am

Dobbie03 wrote:Holy shit, that's a unique one S11!

Got bored one day and created those because I found the dice while searching images. Took a couple of days because there are six conkys and the dice needed editing.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Dobbie03 » Fri May 12, 2017 5:41 pm

Sector11 wrote:
Dobbie03 wrote:Holy shit, that's a unique one S11!

Got bored one day and created those because I found the dice while searching images. Took a couple of days because there are six conkys and the dice needed editing.

Super impressive man.
I like my Metal like my coffee.......black
User avatar
Dobbie03
Founder
Founder
 
Posts: 549
Joined: Sat Feb 18, 2017 2:51 pm
Location: New Zealand
Running Release: DobbieBang

Re: Conky Configs, Scripts & Help Thread

PostPosted by darknetmatrix » Sun May 14, 2017 3:04 am

In the default conky/AUL-acros.conkyrc that comes with archlabs i can't get the cpu temp to work.
The package lm_sensors is installed on my system and i have run "sensors-detect", but still not working?
Anyone of the conky specialists can help here?
Code: Select all
--[[
#=====================================================================================
#                               aureola
# Date    : 29/04/2017
# Author  : Erik Dubois at http://www.erikdubois.be
# Version : v1.0.1
# License : Distributed under the terms of GNU GPL version 2 or later
# Documentation : http://erikdubois.be/category/linux/aureola/
#======================================================================================

]]

conky.config = {

   --Various settings

   background = true,                      -- forked to background
   cpu_avg_samples = 2,
   diskio_avg_samples = 10,
   double_buffer = true,
   if_up_strictness = 'address',
   net_avg_samples = 2,
   no_buffers = true,
   temperature_unit = 'celsius',
   text_buffer_size = 2048,
   update_interval = 1,
   imlib_cache_size = 0,                       --spotify cover
   

   --Placement

   alignment = 'top_right',
   --Arch Duoscreen
   --gap_x = -1910,
   gap_x = 10,
   gap_y = 20,
   minimum_height = 1100,
   minimum_width = 230,
   maximum_width = 230,

   --Graphical

   border_inner_margin = 10,                -- margin between border and text
   border_outer_margin = 1,                -- margin between border and edge of window
   border_width = 0,                      -- border width in pixels
   default_bar_width = 230,
   default_bar_height = 10,
   default_gauge_height = 25,
   default_gauge_width =40,
   default_graph_height = 40,
   default_graph_width = 153,
   default_shade_color = '#000000',
   default_outline_color = '#000000',
   draw_borders = false,                  --draw borders around text
   draw_graph_borders = true,
   draw_shades = false,
   draw_outline = false,
   stippled_borders = 0,

   --Textual
   
   extra_newline = false,
   format_human_readable = true,
   font = 'SourceSansPro-ExtraLight:size=11:oblique',
   max_text_width = 0,
   max_user_text = 16384,
   override_utf8_locale = true,
   short_units = true,
   top_name_width = 21,
   top_name_verbose = false,
   uppercase = false,
   use_spacer = 'none',
   use_xft = true,
   xftalpha = 1,

   --Windows

   own_window = true,
   own_window_argb_value = 150,
   own_window_argb_visual = true,
   own_window_class = 'Conky',
   own_window_colour = '#000000',
   own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   own_window_transparent = no,
   own_window_title = 'system_conky',
   own_window_type = 'normal',-- # options are: normal/override/dock/desktop/panel
   

   --Colours

   default_color = '#000000',              -- default color and border color
   color1 = '#bbbbbb',
   color2 = '#FFFFFF',
   color3 = '#9C1220',
   color4 = '#BDBDBD',
   color5 = '#CCCCCC',
   color6 = '#FFA300',

   --Signal Colours
   color7 = '#1F7411',  --green
   color8 = '#FFA726',  --orange
   color9 = '#F1544B',  --firebrick
   

   --Lua


};


conky.text = [[
${image ~/.config/conky/images/archlabs-white.png -p 170,0 -s 60x60  -f 5}
${color1}${font SourceSansPro-ExtraLight:size=18:weight:bold}${color2}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}
${color1}${hr 2}
${voffset -10}${color1}${font SourceSansPro-ExtraLight:size=10:weight:bold:italic}${color6}$sysname $kernel
${color1}${font SourceSansPro-ExtraLight:size=12:weight:bold}Uptime ${alignr}${color6} $uptime
${color1}${font SourceSansPro-ExtraLight:size=12:weight:bold}Cpu Temp ${alignr}${color6}${execi 10 sensors | grep 'Core 0' | awk {'print $3'}}
${color1}${color1}Cpu Freq ${alignr}${color6}${freq_g} Ghz
${color1}${cpubar cpu0 10,150}${color1} Cpu ${alignr}${if_match ${cpu cpu0} > 80}${color9}${else}${if_match ${cpu cpu0} > 50}${color8}${else}${color6}${endif}${endif}${cpu cpu0}%
${if_existing /proc/acpi/battery/BAT0/info}${if_match ${battery_percent BAT0} <= 20}${color3}${battery_bar 10,150 BAT0} Battery${alignr}${color7}${battery_percent BAT0}%${else}${color1}${battery_bar 10,150 BAT0} Battery${alignr}${color1}${battery_percent BAT0}%${endif}${else}${voffset -20}${endif}
${color1}${membar 10,150} Mem ${alignr}${if_match ${memperc} > 80}${color9}${else}${color6}${endif}${color6}${memperc}%
${color1}Total Processes${alignr}${color6}${processes}
${color1}Running processes${color6}${alignr}${running_processes}
${color1}Load${alignr}${color6}${loadavg}
${color1}Packages Upgrades${alignr}${color6}${execi 3600 checkupdates | wc -l}
${color1}${hr 2}
${font SourceSansPro-ExtraLight size=12:weight:bold}${color1}CPU   
${font SourceSansPro-ExtraLight size=8:weight:italic}${color6}${execi 6000 cat /proc/cpuinfo | grep -i 'Model name' -m 1 | cut -c14-35}
# Showing TOP 5 CPU-consumers
${offset 30}${font SourceSansPro-ExtraLight:size=12:weight:bold}${color1}${top name 1}${alignr}${color6}${top cpu 1}%${font}
${offset 30}${color1}${top name 2}${alignr}${color6}${top cpu 2}%
${offset 30}${color1}${top name 3}${alignr}${color6}${top cpu 3}%
${offset 30}${color1}${top name 4}${alignr}${color6}${top cpu 4}%
${offset 30}${color1}${top name 5}${alignr}${color6}${top cpu 5}%
${offset 30}${color1}${top name 6}${alignr}${color6}${top cpu 6}%
${font SourceSansPro-ExtraLight size=12 weight:bold}${color1}CPU Usage over Time
${color1}${cpugraph 40,230 FFA300 ffffff  -t}
${color1}${hr 2}
${if_existing /proc/net/route en}${font SourceSansPro-ExtraLight size=12 weight:bold}${color2}Ethernet
${offset 10}${color1}Up ${color6}${totalup enp2s0}${color1}${alignr}${color6}${totaldown enp2s0} ${color1}Down
${offset 10}${color1}Up ${color6}${upspeed enp2s0}${color1}${alignr}${color6}${downspeed enp2s0} ${color1}Down
#${upspeedgraph enp2s0 40,300 4B1B0C FF5C2B 10000000 -l -t}
#${downspeedgraph enp2s0 40,300 324D23 77B753 10000000 -l -t}
${else}${font SourceSansPro-ExtraLight size=12 weight:bold}${color2}Wireless
${offset 10}${color1}Up ${color1}${totalup wlan0}${color1}${alignr}${color1}${totaldown wlan0} Down
${offset 10}${color1}Up ${color1}${upspeed wlan0}${color1}${alignr}${color1}${downspeed wlan0} Down
#${upspeedgraph wlan0 40,300 4B1B0C FF5C2B 10000000 -l -t}
#${downspeedgraph wlan0 40,300 324D23 77B753 10000000 -l -t}
${endif}\
${color2}Dropbox Status :
${if_running dropbox}\
${alignr}${color6}${execi 3 python2 ~/.config/conky/scripts/acros/dropbox.py status}\
${else}\
${alignr}${color6} Offline\
${endif}
${color2}Insync Status :
${if_running insync}\
${alignr}${color6}${execi 3 insync get_status | tr '[:upper:]' '[:lower:]'}\
${else}\
${alignr}${color6} Offline\
${endif}
${color2}Spotify Playing :
${color6}${if_running spotify}\
${alignr}${color1}Title : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}
${alignr}${color1}Artist : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$}
${alignr}${color1}Album : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "album"|egrep -v "album"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}\
${else}\
${color6}${alignr}Offline\
${endif}\
]]
linux user # 527315
ArchLabs Betatester
I never lose. Either i win, or i learn.
User avatar
darknetmatrix
Moderator
Moderator
 
Posts: 164
Joined: Sat Feb 25, 2017 3:46 pm
Location: Belgium
Running Release: 5.x.x

Re: Conky Configs, Scripts & Help Thread

PostPosted by Dobbie03 » Sun May 14, 2017 6:30 am

darknetmatrix wrote:In the default conky/AUL-acros.conkyrc that comes with archlabs i can't get the cpu temp to work.
The package lm_sensors is installed on my system and i have run "sensors-detect", but still not working?
Anyone of the conky specialists can help here?
Code: Select all
--[[
#=====================================================================================
#                               aureola
# Date    : 29/04/2017
# Author  : Erik Dubois at http://www.erikdubois.be
# Version : v1.0.1
# License : Distributed under the terms of GNU GPL version 2 or later
# Documentation : http://erikdubois.be/category/linux/aureola/
#======================================================================================

]]

conky.config = {

   --Various settings

   background = true,                      -- forked to background
   cpu_avg_samples = 2,
   diskio_avg_samples = 10,
   double_buffer = true,
   if_up_strictness = 'address',
   net_avg_samples = 2,
   no_buffers = true,
   temperature_unit = 'celsius',
   text_buffer_size = 2048,
   update_interval = 1,
   imlib_cache_size = 0,                       --spotify cover
   

   --Placement

   alignment = 'top_right',
   --Arch Duoscreen
   --gap_x = -1910,
   gap_x = 10,
   gap_y = 20,
   minimum_height = 1100,
   minimum_width = 230,
   maximum_width = 230,

   --Graphical

   border_inner_margin = 10,                -- margin between border and text
   border_outer_margin = 1,                -- margin between border and edge of window
   border_width = 0,                      -- border width in pixels
   default_bar_width = 230,
   default_bar_height = 10,
   default_gauge_height = 25,
   default_gauge_width =40,
   default_graph_height = 40,
   default_graph_width = 153,
   default_shade_color = '#000000',
   default_outline_color = '#000000',
   draw_borders = false,                  --draw borders around text
   draw_graph_borders = true,
   draw_shades = false,
   draw_outline = false,
   stippled_borders = 0,

   --Textual
   
   extra_newline = false,
   format_human_readable = true,
   font = 'SourceSansPro-ExtraLight:size=11:oblique',
   max_text_width = 0,
   max_user_text = 16384,
   override_utf8_locale = true,
   short_units = true,
   top_name_width = 21,
   top_name_verbose = false,
   uppercase = false,
   use_spacer = 'none',
   use_xft = true,
   xftalpha = 1,

   --Windows

   own_window = true,
   own_window_argb_value = 150,
   own_window_argb_visual = true,
   own_window_class = 'Conky',
   own_window_colour = '#000000',
   own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   own_window_transparent = no,
   own_window_title = 'system_conky',
   own_window_type = 'normal',-- # options are: normal/override/dock/desktop/panel
   

   --Colours

   default_color = '#000000',              -- default color and border color
   color1 = '#bbbbbb',
   color2 = '#FFFFFF',
   color3 = '#9C1220',
   color4 = '#BDBDBD',
   color5 = '#CCCCCC',
   color6 = '#FFA300',

   --Signal Colours
   color7 = '#1F7411',  --green
   color8 = '#FFA726',  --orange
   color9 = '#F1544B',  --firebrick
   

   --Lua


};


conky.text = [[
${image ~/.config/conky/images/archlabs-white.png -p 170,0 -s 60x60  -f 5}
${color1}${font SourceSansPro-ExtraLight:size=18:weight:bold}${color2}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}
${color1}${hr 2}
${voffset -10}${color1}${font SourceSansPro-ExtraLight:size=10:weight:bold:italic}${color6}$sysname $kernel
${color1}${font SourceSansPro-ExtraLight:size=12:weight:bold}Uptime ${alignr}${color6} $uptime
${color1}${font SourceSansPro-ExtraLight:size=12:weight:bold}Cpu Temp ${alignr}${color6}${execi 10 sensors | grep 'Core 0' | awk {'print $3'}}
${color1}${color1}Cpu Freq ${alignr}${color6}${freq_g} Ghz
${color1}${cpubar cpu0 10,150}${color1} Cpu ${alignr}${if_match ${cpu cpu0} > 80}${color9}${else}${if_match ${cpu cpu0} > 50}${color8}${else}${color6}${endif}${endif}${cpu cpu0}%
${if_existing /proc/acpi/battery/BAT0/info}${if_match ${battery_percent BAT0} <= 20}${color3}${battery_bar 10,150 BAT0} Battery${alignr}${color7}${battery_percent BAT0}%${else}${color1}${battery_bar 10,150 BAT0} Battery${alignr}${color1}${battery_percent BAT0}%${endif}${else}${voffset -20}${endif}
${color1}${membar 10,150} Mem ${alignr}${if_match ${memperc} > 80}${color9}${else}${color6}${endif}${color6}${memperc}%
${color1}Total Processes${alignr}${color6}${processes}
${color1}Running processes${color6}${alignr}${running_processes}
${color1}Load${alignr}${color6}${loadavg}
${color1}Packages Upgrades${alignr}${color6}${execi 3600 checkupdates | wc -l}
${color1}${hr 2}
${font SourceSansPro-ExtraLight size=12:weight:bold}${color1}CPU   
${font SourceSansPro-ExtraLight size=8:weight:italic}${color6}${execi 6000 cat /proc/cpuinfo | grep -i 'Model name' -m 1 | cut -c14-35}
# Showing TOP 5 CPU-consumers
${offset 30}${font SourceSansPro-ExtraLight:size=12:weight:bold}${color1}${top name 1}${alignr}${color6}${top cpu 1}%${font}
${offset 30}${color1}${top name 2}${alignr}${color6}${top cpu 2}%
${offset 30}${color1}${top name 3}${alignr}${color6}${top cpu 3}%
${offset 30}${color1}${top name 4}${alignr}${color6}${top cpu 4}%
${offset 30}${color1}${top name 5}${alignr}${color6}${top cpu 5}%
${offset 30}${color1}${top name 6}${alignr}${color6}${top cpu 6}%
${font SourceSansPro-ExtraLight size=12 weight:bold}${color1}CPU Usage over Time
${color1}${cpugraph 40,230 FFA300 ffffff  -t}
${color1}${hr 2}
${if_existing /proc/net/route en}${font SourceSansPro-ExtraLight size=12 weight:bold}${color2}Ethernet
${offset 10}${color1}Up ${color6}${totalup enp2s0}${color1}${alignr}${color6}${totaldown enp2s0} ${color1}Down
${offset 10}${color1}Up ${color6}${upspeed enp2s0}${color1}${alignr}${color6}${downspeed enp2s0} ${color1}Down
#${upspeedgraph enp2s0 40,300 4B1B0C FF5C2B 10000000 -l -t}
#${downspeedgraph enp2s0 40,300 324D23 77B753 10000000 -l -t}
${else}${font SourceSansPro-ExtraLight size=12 weight:bold}${color2}Wireless
${offset 10}${color1}Up ${color1}${totalup wlan0}${color1}${alignr}${color1}${totaldown wlan0} Down
${offset 10}${color1}Up ${color1}${upspeed wlan0}${color1}${alignr}${color1}${downspeed wlan0} Down
#${upspeedgraph wlan0 40,300 4B1B0C FF5C2B 10000000 -l -t}
#${downspeedgraph wlan0 40,300 324D23 77B753 10000000 -l -t}
${endif}\
${color2}Dropbox Status :
${if_running dropbox}\
${alignr}${color6}${execi 3 python2 ~/.config/conky/scripts/acros/dropbox.py status}\
${else}\
${alignr}${color6} Offline\
${endif}
${color2}Insync Status :
${if_running insync}\
${alignr}${color6}${execi 3 insync get_status | tr '[:upper:]' '[:lower:]'}\
${else}\
${alignr}${color6} Offline\
${endif}
${color2}Spotify Playing :
${color6}${if_running spotify}\
${alignr}${color1}Title : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}
${alignr}${color1}Artist : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$}
${alignr}${color1}Album : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "album"|egrep -v "album"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}\
${else}\
${color6}${alignr}Offline\
${endif}\
]]


Did you run it as "sudo sensors-detect"?
I like my Metal like my coffee.......black
User avatar
Dobbie03
Founder
Founder
 
Posts: 549
Joined: Sat Feb 18, 2017 2:51 pm
Location: New Zealand
Running Release: DobbieBang

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Sun May 14, 2017 8:26 am

@ darknetmatrix
Dobbie03 wrote:Did you run it as "sudo sensors-detect"?


Yup, needs sudo ... read this too: Using Sensors
Seriously suggest platform method if your computer can handle it.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by darknetmatrix » Sun May 14, 2017 8:35 pm

Dobbie03 wrote:
darknetmatrix wrote:In the default conky/AUL-acros.conkyrc that comes with archlabs i can't get the cpu temp to work.
The package lm_sensors is installed on my system and i have run "sensors-detect", but still not working?
Anyone of the conky specialists can help here?
Code: Select all
--[[
#=====================================================================================
#                               aureola
# Date    : 29/04/2017
# Author  : Erik Dubois at http://www.erikdubois.be
# Version : v1.0.1
# License : Distributed under the terms of GNU GPL version 2 or later
# Documentation : http://erikdubois.be/category/linux/aureola/
#======================================================================================

]]

conky.config = {

   --Various settings

   background = true,                      -- forked to background
   cpu_avg_samples = 2,
   diskio_avg_samples = 10,
   double_buffer = true,
   if_up_strictness = 'address',
   net_avg_samples = 2,
   no_buffers = true,
   temperature_unit = 'celsius',
   text_buffer_size = 2048,
   update_interval = 1,
   imlib_cache_size = 0,                       --spotify cover
   

   --Placement

   alignment = 'top_right',
   --Arch Duoscreen
   --gap_x = -1910,
   gap_x = 10,
   gap_y = 20,
   minimum_height = 1100,
   minimum_width = 230,
   maximum_width = 230,

   --Graphical

   border_inner_margin = 10,                -- margin between border and text
   border_outer_margin = 1,                -- margin between border and edge of window
   border_width = 0,                      -- border width in pixels
   default_bar_width = 230,
   default_bar_height = 10,
   default_gauge_height = 25,
   default_gauge_width =40,
   default_graph_height = 40,
   default_graph_width = 153,
   default_shade_color = '#000000',
   default_outline_color = '#000000',
   draw_borders = false,                  --draw borders around text
   draw_graph_borders = true,
   draw_shades = false,
   draw_outline = false,
   stippled_borders = 0,

   --Textual
   
   extra_newline = false,
   format_human_readable = true,
   font = 'SourceSansPro-ExtraLight:size=11:oblique',
   max_text_width = 0,
   max_user_text = 16384,
   override_utf8_locale = true,
   short_units = true,
   top_name_width = 21,
   top_name_verbose = false,
   uppercase = false,
   use_spacer = 'none',
   use_xft = true,
   xftalpha = 1,

   --Windows

   own_window = true,
   own_window_argb_value = 150,
   own_window_argb_visual = true,
   own_window_class = 'Conky',
   own_window_colour = '#000000',
   own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   own_window_transparent = no,
   own_window_title = 'system_conky',
   own_window_type = 'normal',-- # options are: normal/override/dock/desktop/panel
   

   --Colours

   default_color = '#000000',              -- default color and border color
   color1 = '#bbbbbb',
   color2 = '#FFFFFF',
   color3 = '#9C1220',
   color4 = '#BDBDBD',
   color5 = '#CCCCCC',
   color6 = '#FFA300',

   --Signal Colours
   color7 = '#1F7411',  --green
   color8 = '#FFA726',  --orange
   color9 = '#F1544B',  --firebrick
   

   --Lua


};


conky.text = [[
${image ~/.config/conky/images/archlabs-white.png -p 170,0 -s 60x60  -f 5}
${color1}${font SourceSansPro-ExtraLight:size=18:weight:bold}${color2}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}
${color1}${hr 2}
${voffset -10}${color1}${font SourceSansPro-ExtraLight:size=10:weight:bold:italic}${color6}$sysname $kernel
${color1}${font SourceSansPro-ExtraLight:size=12:weight:bold}Uptime ${alignr}${color6} $uptime
${color1}${font SourceSansPro-ExtraLight:size=12:weight:bold}Cpu Temp ${alignr}${color6}${execi 10 sensors | grep 'Core 0' | awk {'print $3'}}
${color1}${color1}Cpu Freq ${alignr}${color6}${freq_g} Ghz
${color1}${cpubar cpu0 10,150}${color1} Cpu ${alignr}${if_match ${cpu cpu0} > 80}${color9}${else}${if_match ${cpu cpu0} > 50}${color8}${else}${color6}${endif}${endif}${cpu cpu0}%
${if_existing /proc/acpi/battery/BAT0/info}${if_match ${battery_percent BAT0} <= 20}${color3}${battery_bar 10,150 BAT0} Battery${alignr}${color7}${battery_percent BAT0}%${else}${color1}${battery_bar 10,150 BAT0} Battery${alignr}${color1}${battery_percent BAT0}%${endif}${else}${voffset -20}${endif}
${color1}${membar 10,150} Mem ${alignr}${if_match ${memperc} > 80}${color9}${else}${color6}${endif}${color6}${memperc}%
${color1}Total Processes${alignr}${color6}${processes}
${color1}Running processes${color6}${alignr}${running_processes}
${color1}Load${alignr}${color6}${loadavg}
${color1}Packages Upgrades${alignr}${color6}${execi 3600 checkupdates | wc -l}
${color1}${hr 2}
${font SourceSansPro-ExtraLight size=12:weight:bold}${color1}CPU   
${font SourceSansPro-ExtraLight size=8:weight:italic}${color6}${execi 6000 cat /proc/cpuinfo | grep -i 'Model name' -m 1 | cut -c14-35}
# Showing TOP 5 CPU-consumers
${offset 30}${font SourceSansPro-ExtraLight:size=12:weight:bold}${color1}${top name 1}${alignr}${color6}${top cpu 1}%${font}
${offset 30}${color1}${top name 2}${alignr}${color6}${top cpu 2}%
${offset 30}${color1}${top name 3}${alignr}${color6}${top cpu 3}%
${offset 30}${color1}${top name 4}${alignr}${color6}${top cpu 4}%
${offset 30}${color1}${top name 5}${alignr}${color6}${top cpu 5}%
${offset 30}${color1}${top name 6}${alignr}${color6}${top cpu 6}%
${font SourceSansPro-ExtraLight size=12 weight:bold}${color1}CPU Usage over Time
${color1}${cpugraph 40,230 FFA300 ffffff  -t}
${color1}${hr 2}
${if_existing /proc/net/route en}${font SourceSansPro-ExtraLight size=12 weight:bold}${color2}Ethernet
${offset 10}${color1}Up ${color6}${totalup enp2s0}${color1}${alignr}${color6}${totaldown enp2s0} ${color1}Down
${offset 10}${color1}Up ${color6}${upspeed enp2s0}${color1}${alignr}${color6}${downspeed enp2s0} ${color1}Down
#${upspeedgraph enp2s0 40,300 4B1B0C FF5C2B 10000000 -l -t}
#${downspeedgraph enp2s0 40,300 324D23 77B753 10000000 -l -t}
${else}${font SourceSansPro-ExtraLight size=12 weight:bold}${color2}Wireless
${offset 10}${color1}Up ${color1}${totalup wlan0}${color1}${alignr}${color1}${totaldown wlan0} Down
${offset 10}${color1}Up ${color1}${upspeed wlan0}${color1}${alignr}${color1}${downspeed wlan0} Down
#${upspeedgraph wlan0 40,300 4B1B0C FF5C2B 10000000 -l -t}
#${downspeedgraph wlan0 40,300 324D23 77B753 10000000 -l -t}
${endif}\
${color2}Dropbox Status :
${if_running dropbox}\
${alignr}${color6}${execi 3 python2 ~/.config/conky/scripts/acros/dropbox.py status}\
${else}\
${alignr}${color6} Offline\
${endif}
${color2}Insync Status :
${if_running insync}\
${alignr}${color6}${execi 3 insync get_status | tr '[:upper:]' '[:lower:]'}\
${else}\
${alignr}${color6} Offline\
${endif}
${color2}Spotify Playing :
${color6}${if_running spotify}\
${alignr}${color1}Title : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}
${alignr}${color1}Artist : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$}
${alignr}${color1}Album : ${color6}${execi 5 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "album"|egrep -v "album"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}\
${else}\
${color6}${alignr}Offline\
${endif}\
]]


Did you run it as "sudo sensors-detect"?

Yes, i have run it as sudo
linux user # 527315
ArchLabs Betatester
I never lose. Either i win, or i learn.
User avatar
darknetmatrix
Moderator
Moderator
 
Posts: 164
Joined: Sat Feb 25, 2017 3:46 pm
Location: Belgium
Running Release: 5.x.x

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Mon May 15, 2017 1:50 am

read this too: Using Sensors

Could you post the output of sensors and if you have inxi installed: inxi -s
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by natemaia » Mon May 15, 2017 2:49 am

I use this: (you may have to change the cut values accordingly)
Code: Select all
${color #42A5F5}${membar 0}${color #FFFFFF}
CPU${alignr}${cpu cpu0}% @ ${freq_g}GHz
Core 0 ${alignr}${execi 30 sensors | grep 'Core 0' | cut -c17-18}°C
Core 1 ${alignr}${execi 30 sensors | grep 'Core 1' | cut -c17-18}°C
Core 2 ${alignr}${execi 30 sensors | grep 'Core 2' | cut -c17-18}°C
Core 3 ${alignr}${execi 30 sensors | grep 'Core 3' | cut -c17-18}°C
${color #42A5F5}${cpugraph 60,210 42A5F5 FFFFFF  -t}${color #FFFFFF}

Also if you use Nvidia gpu and have nvidia-settings installed
Code: Select all
${color #42A5F5}${membar 0}${color #FFFFFF}
Core $alignr ${execi 30 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits}°C
Clocks $alignr ${execi 30 nvidia-settings -query [gpu:0]/GPUCurrentClockFreqs -t}MHz
Memory ${alignr}${exec nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits} /${exec nvidia-smi --query-gpu=memory.total --format=csv,noheader,nounits} MB

These have both worked well for me and I havnt had to run sudo sensors-detect, that may just be luck though ;)
Last edited by natemaia on Mon May 15, 2017 3:06 am, edited 1 time in total.
User avatar
natemaia
ArchLabs Guru
ArchLabs Guru
 
Posts: 75
Joined: Thu Mar 16, 2017 10:14 pm
Location: Canada - British Columbia
Running Release: 5.0

Re: Conky Configs, Scripts & Help Thread

PostPosted by darknetmatrix » Mon May 15, 2017 3:01 am

Sector11 wrote:read this too: Using Sensors

Could you post the output of sensors and if you have inxi installed: inxi -s

Code: Select all
[darknet@darknet-archlabs ~]$ inxi -s
Resuming in non X mode: glxinfo not found. For package install advice run: inxi --recommends
Sensors:   System Temperatures: cpu: 43.0C mobo: 36.0C gpu: 30.0
           Fan Speeds (in rpm): cpu: 2973 sys-1: 2070
linux user # 527315
ArchLabs Betatester
I never lose. Either i win, or i learn.
User avatar
darknetmatrix
Moderator
Moderator
 
Posts: 164
Joined: Sat Feb 25, 2017 3:46 pm
Location: Belgium
Running Release: 5.x.x

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Mon May 15, 2017 4:25 am

natemaia wrote:Also if you use Nvidia gpu and have nvidia-settings installed
${execi 30 nvidia-smi --query-gpu=temperature.gpu --format=csv,noheader,nounits}°C

You might get away with what I use:
Code: Select all
${color6}GPU${color} ${nvidia temp}°

nvidia has native conky commands, so there is no ${execi ...} commands needed.
From conky v1.10 man page:
nvidia threshold temp ambient gpufreq memfreq imagequality
Nvidia grafic card support for the XNVCtrl library. Each option can be shortened to the least
significant part. Temperatures are printed as float, all other values as integer.

threshold The threshold temperature at which the gpu slows down
temp Gives the gpu current temperature
ambient Gives current air temperature near GPU case
gpufreq Gives the current gpu frequency
memfreq Gives the current mem frequency
imagequality Which imagequality should be chosen by OpenGL applications


Image

ambient doesn't work for me. :(
Code: Select all
${color6}GPU${color} ${nvidia temp}°

threshold ${nvidia threshold}°
temp ${nvidia temp}°
ambient ${nvidia ambient}°
gpufreq ${nvidia gpufreq}
memfreq ${nvidia memfreq}
imagequality ${nvidia imagequality}


These have both worked well for me and I havnt had to run sudo sensors-detect, that may just be luck though ;)

"sensors" doesn't grab the GPU info for nvidia - no idea about other graphics cards though, but it's interesting that you didn't run "sudo sensors-detect" and still get you Intel Core info. What about the Motherboard and fan speeds or core "frequencies"?

There is also "hddtemp" :D

And I end with frequencies: ${freq_g}GHz or ${freq_g 0}GHz = "0" the total or average for the chip.

You can show them all - just like temps.
These work on CPU's (AMD) or CORES (intel) - even threads from a quad core

As seen above - my triple core AMD:
Code: Select all
0 ${freq_g 0}GHz

1 ${freq_g 1}GHz
2 ${freq_g 2}GHz
3 ${freq_g 3}GHz


OOPS! 0 doesn't count! my error

Code: Select all
freq (n)
    Returns  CPU #n's frequency in MHz. CPUs are counted from 1. If omitted, the parameter defaults to 1.

freq_g (n)
    Returns CPU #n's frequency in GHz. CPUs are counted from 1. If omitted, the parameter  defaults to 1.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Mon May 15, 2017 4:27 am

darknetmatrix wrote:
Sector11 wrote:read this too: Using Sensors

Could you post the output of sensors and if you have inxi installed: inxi -s

Code: Select all
[darknet@darknet-archlabs ~]$ inxi -s
Resuming in non X mode: glxinfo not found. For package install advice run: inxi --recommends
Sensors:   System Temperatures: cpu: 43.0C mobo: 36.0C gpu: 30.0
           Fan Speeds (in rpm): cpu: 2973 sys-1: 2070

Thank you but need the output of sensors as well:
Code: Select all
 14 May 17 @ 13:26:44 ~
  $ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +30.0°C  (crit = +110.0°C)

f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.50 V 
in1:          +1.35 V 
in2:          +1.50 V 
in3:          +0.86 V 
in4:          +0.00 V 
in5:          +0.00 V 
in6:          +0.00 V 
3VSB:         +3.39 V 
Vbat:         +2.99 V 
fan1:        1992 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +36.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +37.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +27.5°C  (high = +70.0°C)
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by darknetmatrix » Mon May 15, 2017 5:01 am

Sector11 wrote:
darknetmatrix wrote:
Sector11 wrote:read this too: Using Sensors

Could you post the output of sensors and if you have inxi installed: inxi -s

Code: Select all
[darknet@darknet-archlabs ~]$ inxi -s
Resuming in non X mode: glxinfo not found. For package install advice run: inxi --recommends
Sensors:   System Temperatures: cpu: 43.0C mobo: 36.0C gpu: 30.0
           Fan Speeds (in rpm): cpu: 2973 sys-1: 2070

Thank you but need the output of sensors as well:
Code: Select all
 14 May 17 @ 13:26:44 ~
  $ sensors
acpitz-virtual-0
Adapter: Virtual device
temp1:        +30.0°C  (crit = +110.0°C)

f71862fg-isa-0a00
Adapter: ISA adapter
+3.3V:        +3.50 V 
in1:          +1.35 V 
in2:          +1.50 V 
in3:          +0.86 V 
in4:          +0.00 V 
in5:          +0.00 V 
in6:          +0.00 V 
3VSB:         +3.39 V 
Vbat:         +2.99 V 
fan1:        1992 RPM
fan2:           0 RPM  ALARM
fan3:           0 RPM  ALARM
temp1:        +36.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +255.0°C, hyst = +251.0°C)  sensor = transistor
temp2:        +37.0°C  (high = +85.0°C, hyst = +81.0°C)
                       (crit = +100.0°C, hyst = +96.0°C)  sensor = thermistor
temp3:       +127.0°C  (high = +70.0°C, hyst = +68.0°C)  ALARM (CRIT)
                       (crit = +85.0°C, hyst = +83.0°C)  sensor = transistor

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +27.5°C  (high = +70.0°C)

Code: Select all
[darknet@darknet-archlabs ~]$ sensors
fam15h_power-pci-00c4
Adapter: PCI adapter
power1:       38.45 W  (crit = 124.95 W)

atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage:      +0.96 V  (min =  +0.80 V, max =  +1.60 V)
+3.3V Voltage:      +3.36 V  (min =  +2.97 V, max =  +3.63 V)
+5V Voltage:        +5.16 V  (min =  +4.50 V, max =  +5.50 V)
+12V Voltage:      +12.18 V  (min = +10.20 V, max = +13.80 V)
CPU Fan Speed:     2909 RPM  (min =  600 RPM, max = 7200 RPM)
Chassis Fan Speed: 2083 RPM  (min =  600 RPM, max = 7200 RPM)
CPU Temperature:    +42.0°C  (high = +60.0°C, crit = +95.0°C)
MB Temperature:     +37.0°C  (high = +45.0°C, crit = +75.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:        +30.0°C  (crit = +120.0°C, hyst = +90.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +25.1°C  (high = +70.0°C)
                       (crit = +83.5°C, hyst = +80.5°C)
linux user # 527315
ArchLabs Betatester
I never lose. Either i win, or i learn.
User avatar
darknetmatrix
Moderator
Moderator
 
Posts: 164
Joined: Sat Feb 25, 2017 3:46 pm
Location: Belgium
Running Release: 5.x.x

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Mon May 15, 2017 7:17 am

@ darknetmatrix

Does this give any output in your terminal and if yes, please post it:
Code: Select all
  $ sudo find / -name "*_input"

Mine outputs "_input" files in the /sys/devices/platform/f71882fg.2560/ so I can use conkys ${platform ..} command for a couple of things
Code: Select all
  $ sudo find / -name "*_input"
[sudo] password for sector11:
/sys/devices/pci0000:00/0000:00:18.3/temp1_input
/sys/devices/virtual/hwmon/hwmon0/temp1_input
/sys/devices/platform/f71882fg.2560/in1_input
/sys/devices/platform/f71882fg.2560/in8_input
/sys/devices/platform/f71882fg.2560/temp3_input
/sys/devices/platform/f71882fg.2560/in2_input
/sys/devices/platform/f71882fg.2560/in3_input
/sys/devices/platform/f71882fg.2560/fan1_input
/sys/devices/platform/f71882fg.2560/in4_input
/sys/devices/platform/f71882fg.2560/fan2_input
/sys/devices/platform/f71882fg.2560/in5_input
/sys/devices/platform/f71882fg.2560/fan3_input
/sys/devices/platform/f71882fg.2560/in6_input
/sys/devices/platform/f71882fg.2560/temp1_input
/sys/devices/platform/f71882fg.2560/in0_input
/sys/devices/platform/f71882fg.2560/in7_input
/sys/devices/platform/f71882fg.2560/temp2_input


You posted these ....
Code: Select all
[darknet@darknet-archlabs ~]$ sensors
fam15h_power-pci-00c4
Adapter: PCI adapter
power1:       38.45 W  (crit = 124.95 W)

atk0110-acpi-0
Adapter: ACPI interface
Vcore Voltage:      +0.96 V  (min =  +0.80 V, max =  +1.60 V)
+3.3V Voltage:      +3.36 V  (min =  +2.97 V, max =  +3.63 V)
+5V Voltage:        +5.16 V  (min =  +4.50 V, max =  +5.50 V)
+12V Voltage:      +12.18 V  (min = +10.20 V, max = +13.80 V)
CPU Fan Speed:     2909 RPM  (min =  600 RPM, max = 7200 RPM)
Chassis Fan Speed: 2083 RPM  (min =  600 RPM, max = 7200 RPM)
CPU Temperature:    +42.0°C  (high = +60.0°C, crit = +95.0°C)
MB Temperature:     +37.0°C  (high = +45.0°C, crit = +75.0°C)

radeon-pci-0100
Adapter: PCI adapter
temp1:        +30.0°C  (crit = +120.0°C, hyst = +90.0°C)

k10temp-pci-00c3
Adapter: PCI adapter
temp1:        +25.1°C  (high = +70.0°C)
                       (crit = +83.5°C, hyst = +80.5°C)


Code: Select all
[darknet@darknet-archlabs ~]$ inxi -s
Resuming in non X mode: glxinfo not found. For package install advice run: inxi --recommends
Sensors:   System Temperatures: cpu: 43.0C mobo: 36.0C gpu: 30.0
           Fan Speeds (in rpm): cpu: 2973 sys-1: 2070


And from those; you have at least:
CPU Fan speed
Chassis Fan Speed
CPU Temperature
MB Temperature

and GPU I'm guessing is:
Code: Select all
radeon-pci-0100
Adapter: PCI adapter
temp1:        +30.0°C  (crit = +120.0°C, hyst = +90.0°C)


I'm horrible with grep/awk/sed etc but the info is there. So from here on is guesswork:

I get my sensors like this, stripping all formating codes.
Code: Select all
Sensors
${swapbar 0}
TEMPS
CPU ${platform f71882fg.2560 temp 2}°
M|B ${execpi 5 sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°
SDA ${hddtemp /dev/sda}°
GPU ${nvidia temp}°
${swapbar 0}
CPU
3.2 GHz
CPU MHz
1  ${freq 1}
2  ${freq 2}
3  ${freq 3}
${swapbar 0}
CPU Fan
  ${platform f71882fg.2560 fan 1}
${swapbar 0}
CPU %
A ${if_match ${cpu cpu0} < 10}  ${cpu cpu0}\
${else}${if_match ${cpu cpu0} < 100} ${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}
${swapbar 0,20}
1 ${if_match ${cpu cpu1} < 10}  ${cpu cpu1}\
${else}${if_match ${cpu cpu1} < 100} ${cpu cpu1}\
${else}${cpu cpu1}${endif}${endif}
2 ${if_match ${cpu cpu2} < 10}  ${cpu cpu2}\
${else}${if_match ${cpu cpu2} < 100} ${cpu cpu2}\
${else}${cpu cpu2}${endif}${endif}
3 ${if_match ${cpu cpu3} < 10}  ${cpu cpu3}\
${else}${if_match ${cpu cpu3} < 100} ${cpu cpu3}\
${else}${cpu cpu3}${endif}${endif}
${swapbar 0}
Memory
${mem}
${memmax}


So I'm guessing something like this will work for you (but with your code, not mine):

Code: Select all
M|B ${execpi 5 sensors atk0110-acpi-0 | grep 'MB Temp' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°

in my terminal:
Code: Select all
  $ sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'
26

tweaked for your terminal:
Code: Select all
  $ sensors atk0110-acpi-0 | grep 'MB Temp'

Code: Select all
  $ sensors atk0110-acpi-0 | grep 'MB Temp' | awk -F'+' '{print $2}'

Code: Select all
  $ sensors atk0110-acpi-0 | grep 'MB Temp' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'

Do you get any results?
If so what? - please post them.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by darknetmatrix » Tue May 16, 2017 4:01 am

output:
Code: Select all
[darknet@darknet-archlabs ~]$ sudo find / -name "*_input"
[sudo] password for darknet:
/sys/devices/pci0000:00/0000:00:18.4/hwmon/hwmon2/power1_input
/sys/devices/pci0000:00/0000:00:02.0/0000:01:00.0/hwmon/hwmon3/temp1_input
/sys/devices/pci0000:00/0000:00:18.3/hwmon/hwmon1/temp1_input
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:15/ATK0110:00/hwmon/hwmon0/fan1_input
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:15/ATK0110:00/hwmon/hwmon0/in2_input
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:15/ATK0110:00/hwmon/hwmon0/temp2_input
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:15/ATK0110:00/hwmon/hwmon0/in0_input
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:15/ATK0110:00/hwmon/hwmon0/fan2_input
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:15/ATK0110:00/hwmon/hwmon0/in3_input
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:15/ATK0110:00/hwmon/hwmon0/in1_input
/sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A03:00/device:15/ATK0110:00/hwmon/hwmon0/temp1_input
find: ‘/run/user/1001/gvfs’: Permission denied
[darknet@darknet-archlabs ~]$
linux user # 527315
ArchLabs Betatester
I never lose. Either i win, or i learn.
User avatar
darknetmatrix
Moderator
Moderator
 
Posts: 164
Joined: Sat Feb 25, 2017 3:46 pm
Location: Belgium
Running Release: 5.x.x

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Tue May 16, 2017 4:54 am

@ darknetmatrix

It looks like hwmon "MIGHT" work for you ... try this in a conky:
Code: Select all
Fan 1 ${hwmon 0 fan 1} RPM
Fan 2 ${hwmon 0 fan 2} RPM

and in a terninal inxi -s - if the fan speeds match or are close "good".

And two or three times I have asked you to read this link: Usins Sensors it will have your solution to getting these in your conky.

You also did not answer this ... but if you read and try the stuff found in the above link you should be well on your way.
Sector11 wrote:So I'm guessing something like this will work for you (but with your code, not mine):
Code: Select all
M|B ${execpi 5 sensors atk0110-acpi-0 | grep 'MB Temp' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'}°

in my terminal - this is MY motherboard temperature:
Code: Select all
  $ sensors k10temp-pci-00c3 | grep 'temp1' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'
26


So TRY THESE - tweaked for your terminal:
Code: Select all
  $ sensors atk0110-acpi-0 | grep 'MB Temp'

Code: Select all
  $ sensors atk0110-acpi-0 | grep 'MB Temp' | awk -F'+' '{print $2}'

Code: Select all
  $ sensors atk0110-acpi-0 | grep 'MB Temp' | awk -F'+' '{print $2}' | awk -F'.' '{print $1}'

Do you get any results?
If so what? - please post them.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by darknetmatrix » Tue May 16, 2017 10:35 pm

S11, you are the conky master!
I have been reading on http://conky.pitstop.free.fr/wiki/index ... s_%28en%29 and '${exec sensors | grep -n 'temp1' | sed -n 2p | awk -F'+' '{print $2}' | awk -F' ' '{print $1}'} did the tric for me. ;)
Now i have a complete working conky :D
Last edited by darknetmatrix on Tue May 16, 2017 11:14 pm, edited 1 time in total.
linux user # 527315
ArchLabs Betatester
I never lose. Either i win, or i learn.
User avatar
darknetmatrix
Moderator
Moderator
 
Posts: 164
Joined: Sat Feb 25, 2017 3:46 pm
Location: Belgium
Running Release: 5.x.x

Re: Conky Configs, Scripts & Help Thread

PostPosted by darknetmatrix » Tue May 16, 2017 10:42 pm

Image
linux user # 527315
ArchLabs Betatester
I never lose. Either i win, or i learn.
User avatar
darknetmatrix
Moderator
Moderator
 
Posts: 164
Joined: Sat Feb 25, 2017 3:46 pm
Location: Belgium
Running Release: 5.x.x

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Wed May 17, 2017 12:17 am

Always nice to see a complete conky!

Yours runs cooler than mine. I'm at 31° and I just fired up.
Image
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Thu May 18, 2017 6:06 am

Weather - one of the things conky does nicely with a little help.
Image
The weather bar across the top uses two of TeoBigusGeekus' scripts: 1)Accuweather - 1_21-10-16 & 4) Moon phases' script - 4_23-10-16. They come complete with the weather icon images required. Read the README that comes with each script, there is some setting up required.

Anyway, the conky uses a little .png for the background, so the weather images don't get washed out by ARGB values. I'm using "bk_30.png", take your pick, the 30 is 30% opaque. Also beware of $PATHS in my conky, I have the scripts and images all over the place. :)

The conky: S11_accu_tm_BAR_v10.conky (It's 1550 wide)
Code: Select all
conky.config = {
-- pkill -xf "conky -c /home/sector11/1_accuweather/S11_accu_tm_BAR_v10.conky" &
-- Created - Tue 08 Nov 2016
-- converted to conky v1.10: Wed 17 May 2017

--  Begin Window Settings

   own_window = true,
   own_window_type = 'normal',
   own_window_transparent = true,
   own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
   own_window_colour = '#000000',
   own_window_class = 'Conky',
   own_window_title = 'Accuweather TopMiddle BAR Full',
--   own_window_argb_visual = 'yes',
--   own_window_argb_value = 40,

   minimum_width = 1550, minimum_height = 0,
   maximum_width = 1550,

   gap_x = 0,
   gap_y = 2,

   alignment = 'top_middle',

--  End Window Settings
--  Font Settings

   use_xft = true,
   font = 'Fira Mono:bold:size=10',
   xftalpha = 1.0,
   override_utf8_locale = true,

   uppercase = false,

--  End Font Settings
--  Color Settings

   draw_shades = true,
   default_shade_color = '#000000',
   draw_outline = false,
   default_outline_color = '#000000',

   default_color = '#DCDCDC',--Gainsboro
   color0 = '#A9A9A9',--DarkGrey
   color1 = '#778899',--LightSlateGray
   color2 = '#FAEBD7',--AntiqueWhite
   color3 = '#87CEFA',--LightSkyBlue
   color4 = '#48D1CC',--MediumTurquoise
   color5 = '#FFDEAD',--NavajoWhite
   color6 = '#00BFFF',--DeepSkyBlue
   color7 = '#F8F8FF',--GhostWhite
   color8 = '#FFD700',--Gold
   color9 = '#FFA07A',--LightSalmon

--  End Color Settings
--  Borders Section

   draw_borders = false,
   stippled_borders = 5,
   border_inner_margin = 0,
   border_outer_margin = 0,
   border_width = 2,
   draw_graph_borders = true,

--  End Borders Secton
--  Miscellaneous Section

   background = true,
   use_spacer = 'none',
   no_buffers = true,
   double_buffer = true,

--  End Miscellaneous Section

update_interval = 1,

};

conky.text = [[
${execi 900 bash $HOME/1_accuweather/1_accuweather -f2015 -f2016 -h2015 -h2016}\
${execi 900 bash /media/5/Conky/4_Moon/moon}\
${image /media/5/Conky/images/bk_30.png -p -3,0 -s 1550x80}\
${image /media/5/Conky/4_Moon/0.png -p 70,4 -s 25x25}\
${image $HOME/1_accuweather/forecast_2016/forecast_0.png -p 23,4 -s 45x45}\
±${execi 300 sed -n '3p' ~/1_accuweather/curr_cond}\
  ${goto 115}${color3}Pressure\
    ${goto 235}HUM\
      ${goto 300}CLD${color}\
        ${goto 356}|   ${color5}Sun      Moon${color}  |\
        ${goto 525}${color9}${if_match "${execpi 300 sed -n '4p' /home/sector11/1_accuweather/first_days}" == "Lo"} \
${else}${execpi 300 sed -n '3p' /home/sector11/1_accuweather/first_days}${endif}\
        ${goto 628}${execi 300 sed -n '8p' ~/1_accuweather/first_days}\
        ${goto 732}${execi 300 sed -n '13p' ~/1_accuweather/first_days}\
        ${goto 837}${execi 300 sed -n '18p' ~/1_accuweather/first_days}\
        ${goto 941}${execi 300 sed -n '23p' ~/1_accuweather/first_days}\
        ${goto 1045}${execi 300 sed -n '3p' ~/1_accuweather/last_days}\
        ${goto 1149}${execi 300 sed -n '8p' ~/1_accuweather/last_days}\
        ${goto 1254}${execi 300 sed -n '13p' ~/1_accuweather/last_days}\
        ${goto 1357}${execi 300 sed -n '18p' ~/1_accuweather/last_days}\
        ${goto 1460}${execi 300 sed -n '23p' ~/1_accuweather/last_days}${color}
  ${goto 115}${execi 300 sed -n '8p' ~/1_accuweather/curr_cond}\
    ${goto 235}${execi 300 sed -n '7p' ~/1_accuweather/curr_cond}\
      ${goto 300}${execi 300 sed -n '10p' ~/1_accuweather/curr_cond}\
        ${goto 356}| ${color2}↑ ${execi 300 sed -n '23p' ~/1_accuweather/curr_cond}  ↑ ${execi 300 sed -n '25p' ~/1_accuweather/curr_cond}${color} |
        ${execi 300 sed -n '2p' ~/1_accuweather/curr_cond}\
  ${goto 115}${color3}Wind & Speed\
    ${goto 235}UVI\
      ${goto 300}VIS${color}\
        ${goto 356}| ${color3}↓ ${execi 300 sed -n '24p' ~/1_accuweather/curr_cond}  ↓ ${execi 300 sed -n '26p' ~/1_accuweather/curr_cond}${color} |\
        ${goto 588}${color3}${if_match "${execpi 300 sed -n '4p' /home/sector11/1_accuweather/first_days}" == "Lo"}\
${execpi 300 sed -n '3p' /home/sector11/1_accuweather/first_days}\
${else}${execpi 300 sed -n '4p' /home/sector11/1_accuweather/first_days}${endif}\
        ${goto 692}${execi 300 sed -n '9p' ~/1_accuweather/first_days}\
        ${goto 796}${execi 300 sed -n '14p' ~/1_accuweather/first_days}\
        ${goto 900}${execi 300 sed -n '18p' ~/1_accuweather/first_days}\
        ${goto 1004}${execi 300 sed -n '24p' ~/1_accuweather/first_days}\
        ${goto 1108}${execi 300 sed -n '4p' ~/1_accuweather/last_days}\
        ${goto 1212}${execi 300 sed -n '9p' ~/1_accuweather/last_days}\
        ${goto 1316}${execi 300 sed -n '14p' ~/1_accuweather/last_days}\
        ${goto 1420}${execi 300 sed -n '19p' ~/1_accuweather/last_days}\
        ${goto 1524}${execi 300 sed -n '24p' ~/1_accuweather/last_days}${color}
 ${color5}Currently${color}\
  ${goto 115}${execi 300 sed -n '5p' ~/1_accuweather/curr_cond} ${execi 300 sed -n '6p' ~/1_accuweather/curr_cond}\
    ${goto 235}${execi 300 sed -n '9p' ~/1_accuweather/curr_cond}/11\
      ${goto 300}${execi 300 sed -n '13p' ~/1_accuweather/curr_cond}\
        ${goto 356}| ~ ${execi 300 sed -n '16p' ~/1_accuweather/curr_cond | cut -c-5}  ~ ${execi 300 sed -n '20p' ~/1_accuweather/curr_cond | cut -c-5} |\
        ${goto 524}${color5}${execi 3600 echo `date --date="0 day" | awk '{print $1" "$3" "$2}'`}\
        ${goto 628}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
        ${goto 732}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
        ${goto 836}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}\
        ${goto 940}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}\
        ${goto 1044}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}\
        ${goto 1148}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}\
        ${goto 1252}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}\
        ${goto 1356}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
        ${goto 1460}${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}${color}\
${image $HOME/1_accuweather/forecast_2016/forecast_1.png -p 539,4 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_2.png -p 643,4 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_3.png -p 747,4 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_4.png -p 851,4 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_5.png -p 955,4 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_6.png -p 1059,4 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_7.png -p 1163,4 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_8.png -p 1267,4 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_9.png -p 1371,4 -s 45x45}\
${image $HOME/1_accuweather/forecast_2016/forecast_10.png -p 1475,4 -s 45x45}]];

Questions, just ask, here or in Teo's thread over at BunsenLabs.

BTW, Teo is using ARCH and conky v1.10 so most of his archives now have sample conkys in v1.10
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Thu May 18, 2017 6:12 am

A little note about my conkys ... near the top you will find lines like this:
Code: Select all
-- pkill -xf "conky -c /home/sector11/1_accuweather/S11_accu_tm_BAR_v10.conky" &

That line allows you to "KILL" that single conky IF ir was started exactly as seen between the quotes.

When testing conkys I copy that line to a terminal:
Code: Select all
  $pkill -xf "conky -c /home/sector11/1_accuweather/S11_accu_tm_BAR_v10.conky" &

without the "-- " of course, hit enter and up arrow, edit the line and the conky starts:
Code: Select all
 17 May 17 @ 15:09:12 ~
  $ pkill -xf "conky -c /home/sector11/1_accuweather/S11_accu_tm_BAR_v10.conky" &
[1] 3058
[1]+  Done                    pkill -xf "conky -c /home/sector11/1_accuweather/S11_accu_tm_BAR_v10.conky"
 
 17 May 17 @ 15:10:15 ~
  $ conky -c /home/sector11/1_accuweather/S11_accu_tm_BAR_v10.conky &
[1] 3073
 
 17 May 17 @ 15:10:24 ~
  $ conky: desktop window (265) is root window
conky: window type - normal
conky: drawing to created window (0x1e00001)
conky: drawing to double buffer
conky: forked to background, pid is 3078

--2017-05-17 15:10:24--  http://www.moongiant.com/phase/today
Resolving www.moongiant.com (www.moongiant.com)... 184.51.207.24, 184.51.207.49, 2804:14c:65f9::bd06:2d13, ...
Connecting to www.moongiant.com (www.moongiant.com)|184.51.207.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 42070 (41K) [text/html]
Saving to: ‘/media/5/Conky/4_Moon/raw’

/media/5/Conky/4_Moon/raw           100%[===================================================================>]  41.08K  --.-KB/s   in 0.1s   

2017-05-17 15:10:25 (284 KB/s) - ‘/media/5/Conky/4_Moon/raw’ saved [42070/42070]


hit enter and up arrow twice to kill it if needed. :)

Does not bother any other running conky.
Last edited by Sector11 on Sun May 28, 2017 10:20 am, edited 1 time in total.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by natemaia » Thu May 25, 2017 8:55 pm

How can i get my conky over to my second monitors right side?
My conkyrc
Code: Select all
conky.config = {

   --Various settings

   background = true,
   cpu_avg_samples = 2,
   diskio_avg_samples = 10,
   double_buffer = true,
   if_up_strictness = 'address',
   net_avg_samples = 2,
   no_buffers = true,
   temperature_unit = 'celsius',
   text_buffer_size = 2048,
   update_interval = 1,
   imlib_cache_size = 0,


   --Placement

   alignment = 'top_right',
   gap_x = 1,
   gap_y = 42,
   minimum_height = 1027,
   minimum_width = 210,
   maximum_width = 210,

   --Graphical

   border_inner_margin = 10,
   border_outer_margin = 1,
   border_width = 0,
   draw_borders = false,
   draw_graph_borders = true,
   draw_shades = false,
   draw_outline = false,
   stippled_borders = 0,

   --Textual

   extra_newline = false,
   format_human_readable = true,
   font = 'Droid Sans Mono:size=11',
   max_text_width = 0,
   max_user_text = 16384,
   override_utf8_locale = true,
   short_units = true,
   top_name_width = 21,
   top_name_verbose = false,
   uppercase = false,
   use_spacer = 'none',
   use_xft = true,
   xftalpha = 1,

   --Windows

   own_window = true,
   own_window_argb_value = 200,
   own_window_argb_visual = true,
   own_window_class = 'Conky',
   own_window_colour = '#C1C1C1',
   own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
   own_window_transparent = no,
   own_window_title = 'system_conky',
   own_window_type = 'normal',


};


conky.text = [[
${image $HOME/.config/conky/images/archlabs-logo-blue.png -p 30}








${alignc}${color #000000}${font Droid Sans Mono:size=26}ARCHLABS${font Droid Sans Mono:size=11}
${color #4084D6}${membar 0}${color #000000}
${font Droid Sans Mono:size=11}Up${alignr}${uptime_short}
Host${alignr}${nodename}
Kernel${alignr}${kernel}

${font Droid Sans Mono:size=13}${alignc}MEMORY${font Droid Sans Mono:size=11}
${color #4084D6}${membar 0}${color #000000}
RAM ${alignr} ${memmax}
In Use ${alignr} ${memperc}% = ${mem}
Swap ${alignr} ${swap} of ${swapmax}

${font Droid Sans Mono:size=13}${alignc}Core i7-4790K${font Droid Sans Mono:size=11}
${color #4084D6}${membar 0}${color #000000}
CPU${alignr}${cpu cpu0}% @ ${freq_g}GHz
Core 0 ${alignr}${execi 10 sensors | grep 'Core 0' | cut -c17-18}°C
Core 1 ${alignr}${execi 10 sensors | grep 'Core 1' | cut -c17-18}°C
Core 2 ${alignr}${execi 10 sensors | grep 'Core 2' | cut -c17-18}°C
Core 3 ${alignr}${execi 10 sensors | grep 'Core 3' | cut -c17-18}°C

${color #4084D6}${cpugraph 60,210 4084D6 E62117  -t}${color #000000}

${font Droid Sans Mono:size=13}${alignc}GTX-780 Ti${font Droid Sans Mono:size=11}
${color #4084D6}${membar 0}${color #000000}
Temp ${alignr}${nvidia temp}°C
Core Clock ${alignr}${nvidia gpufreq} MHz
Mem Clock ${alignr}${nvidia memfreq} MHz
Memory ${alignr}${execi 30 nvidia-smi --query-gpu=memory.used --format=csv,noheader,nounits} Mb Used

${font Droid Sans Mono:size=13}${alignc}DISKS${font Droid Sans Mono:size=11}
${color #4084D6}${membar 0}${color #000000}
Root ${alignr} ${fs_free /} Free
Storage${alignr} ${fs_free /media/smoke/Storage/} Free
External${alignr} ${fs_free /run/media/smoke/External/} Free

${font Droid Sans Mono:size=13}${alignc}Spotify${font Droid Sans Mono:size=11}
${color #4084D6}${membar 0}${color #000000}
${if_running spotify}\
${color #000000}Title${alignr}${execi 10 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "title"|egrep -v "title"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}
${color #000000}Artist${alignr}${execi 10 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 2 "artist"|egrep -v "artist"|egrep -v "array"|cut -b 27-|cut -d '"' -f 1|egrep -v ^$}
${color #000000}Album${alignr}${execi 10 dbus-send --print-reply --dest=org.mpris.MediaPlayer2.spotify /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get string:'org.mpris.MediaPlayer2.Player' string:'Metadata'|egrep -A 1 "album"|egrep -v "album"|cut -b 44-|cut -d '"' -f 1|egrep -v ^$}\
${else}\
${font Droid Sans Mono:size=13}${alignc}Offline${font Droid Sans Mono:size=11}
${endif}\

]];
User avatar
natemaia
ArchLabs Guru
ArchLabs Guru
 
Posts: 75
Joined: Thu Mar 16, 2017 10:14 pm
Location: Canada - British Columbia
Running Release: 5.0

Re: Conky Configs, Scripts & Help Thread

PostPosted by erikdubois » Thu May 25, 2017 11:34 pm

try gap_x -1800 or so
Living to learn, learning to live.
Linux fits well in my life's motto.
More info on http://erikdubois.be
Archlabs support articles are on https://goo.gl/AaYI0b
Archlabs support youtube channel is on https://goo.gl/Lovquv
User avatar
erikdubois
Site Admin
Site Admin
 
Posts: 333
Joined: Sun Mar 05, 2017 5:42 am
Location: Belgium

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Fri May 26, 2017 12:35 am

natemaia wrote:How can i get my conky over to my second monitors right side?

Start your conky with the -X option:
Code: Select all
       -X | --display= DISPLAY
              X11 display to use

example wrote:conky -X ? -c /home/sector11/1_accuweather/S11_accu_tm_BAR_v10.conky &

I only have a single monitor so untested I have no idea if -X or --display starts with 0 or 1
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by natemaia » Sun May 28, 2017 10:06 am

Erik's works but im looking into splitting into two seperate screens
as opposed to having one giant resolution like now.

Thanks alot for the help :)
User avatar
natemaia
ArchLabs Guru
ArchLabs Guru
 
Posts: 75
Joined: Thu Mar 16, 2017 10:14 pm
Location: Canada - British Columbia
Running Release: 5.0

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Sun May 28, 2017 10:27 am

natemaia wrote:Erik's works but im looking into splitting into two seperate screens
as opposed to having one giant resolution like now.

Thanks alot for the help :)

Well, if you only have one X 3600 wide, erick's way is the right way I guess - especially if it works.
Never argue with something that works and don't ever fix it!

If you do split your screen though, you might have to go to the -X factor.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by natemaia » Sun May 28, 2017 10:51 am

If you do split your screen though, you might have to go to the -X factor.

I'm working on that now.

Due to having different resolution, etc. on either screen id really prefer this

Love the quick responses :D thanks S11
User avatar
natemaia
ArchLabs Guru
ArchLabs Guru
 
Posts: 75
Joined: Thu Mar 16, 2017 10:14 pm
Location: Canada - British Columbia
Running Release: 5.0

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Sun May 28, 2017 12:59 pm

natemaia wrote:
If you do split your screen though, you might have to go to the -X factor.

I'm working on that now.

Due to having different resolution, etc. on either screen id really prefer this

Love the quick responses :D thanks S11

I try. :)
I'll bet you've seen this: Multihead

OK, I'm leaving now .. :mrgreen:
Good luck.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by natemaia » Tue Jun 13, 2017 8:52 pm

Get a count of new gmail

Make a file named gmail.py, put it in ~/.config/conky/scripts/
Make sure you fill in your email and password
Code: Select all
#! /usr/bin/env python

import urllib.request
from xml.etree import ElementTree as etree

# Enter your username and password below within quotes below, in place of ****.
# Set up authentication for gmail
auth_handler = urllib.request.HTTPBasicAuthHandler()
auth_handler.add_password(realm='mail.google.com',
                          uri='https://mail.google.com/',
                          user= '****',
                          passwd= '****')
opener = urllib.request.build_opener(auth_handler)
# ...and install it globally so it can be used with urlopen.
urllib.request.install_opener(opener)

gmail = 'https://mail.google.com/gmail/feed/atom'
NS = '{http://purl.org/atom/ns#}'
with urllib.request.urlopen(gmail) as source:
    tree = etree.parse(source)
fullcount = tree.find(NS + 'fullcount').text

print(fullcount + ' new')


Then use something like this in your conky
Code: Select all
Emails${alignr}${execpi 300 python ~/.config/conky/scripts/gmail.py}


Straight from the arch wiki :)
User avatar
natemaia
ArchLabs Guru
ArchLabs Guru
 
Posts: 75
Joined: Thu Mar 16, 2017 10:14 pm
Location: Canada - British Columbia
Running Release: 5.0

Re: Conky Configs, Scripts & Help Thread

PostPosted by Mike022465 » Mon Aug 07, 2017 10:14 am

https://www.dropbox.com/s/6nqqw68z2uapwqj/ArchLabs-2017-08-06-13_Conky.png?dl=0

Here's the conky script for what I've done. It's based on the AL-Def-Cal-LUA and using the code from AP-Weather-White, please feel free to use if you wish:


Code: Select all
--[[
#=====================================================================================
#                               ArchLabs
# Date    : 06/07/2017
# Source  : BunsenLabs smacz betatester
# converted to conky 1.10 syntax for ArchLabs by: postmaster and Erik Dubois
# original config borrowed from BunsenLabs with love
# Editor  : Erik Dubois at http://www.erikdubois.be
# Version : v2.1.1
# License : Distributed under the terms of GNU GPL version 2 or later
# Documentation : http://erikdubois.be
#======================================================================================
# CONKY
# For commands in conky.config section:
# http://conky.sourceforge.net/config_settings.html
#
# For commands in conky.text section:
# http://conky.sourceforge.net/variables.html
#
# A PDF with all variables is provided
#======================================================================================
# FONTS
# To avoid copyright infringements you will have to download
# and install the fonts yourself sometimes.
#=====================================================================================
# GENERAL INFO ABOUT FONTS
# Go and look for a nice font on sites like http://www.dafont.com/
# Download and unzip - double click the font to install it (font-manager must be installed)
# No font-manager then put fonts in ~/.fonts
# Change the font name in the conky
# The name can be known with a command in the terminal: fc-list | grep "part of name"
# Change width and height of the conky according to font
# Reboot your system or fc-cache -fv in terminal
# Enjoy
#=====================================================================================
# FONTS FOR THIS CONKY
# no extra font(s) needed
#======================================================================================
# LUA
# You need not only install conky but also a package that supports lua on your computer
# Depending on your HARDWARE you should choose wisely in the AUR
# My hardware has an NVIDIA I will choose "conky-lua-nv" from AUR.
#======================================================================================

]]

conky.config = {

   --Various settings

   background = true,                      -- forked to background
   cpu_avg_samples = 2,                  -- The number of samples to average for CPU monitoring.
   diskio_avg_samples = 10,               -- The number of samples to average for disk I/O monitoring.
   double_buffer = true,                  -- Use the Xdbe extension? (eliminates flicker)
   if_up_strictness = 'address',            -- how strict if testing interface is up - up, link or address
   net_avg_samples = 2,                  -- The number of samples to average for net data
   no_buffers = true,                     -- Subtract (file system) buffers from used memory?
   text_buffer_size = 2048,               -- size of buffer for display of content of large variables - default 256
   update_interval = 1,                  -- update interval
   imlib_cache_size = 0,                       -- disable image cache to get a new spotify cover per song
 
   

   --Placement

   alignment = 'top_right',                  -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
                                    -- middle_left,middle_middle,middle_right,none
   --Arch Duoscreen
   --gap_x = -1910,
   gap_x = 10,                           -- pixels between right or left border
   gap_y = 50,                           -- pixels between bottom or left border
   minimum_height = 700,                  -- minimum height of window
   minimum_width = 200,                  -- minimum height of window
   maximum_width = 200,                  -- maximum height of window

   --Graphical

   border_inner_margin = 5,                -- margin between border and text
   border_outer_margin = 5,                -- margin between border and edge of window
   border_width = 0,                      -- border width in pixels
   default_bar_width = 280,               -- default is 0 - full width               
   default_bar_height = 10,               -- default is 6
   default_gauge_height = 25,               -- default is 25
   default_gauge_width =40,               -- default is 40
   default_graph_height = 40,               -- default is 25
   default_graph_width = 153,               -- default is 0 - full width
   default_shade_color = '#000000',         -- default shading colour
   default_outline_color = '#000000',         -- default outline colour
   draw_borders = false,                  -- draw borders around text
   draw_graph_borders = true,               -- draw borders around graphs
   draw_shades = false,                  -- draw shades
   draw_outline = false,                  -- draw outline
   stippled_borders = 0,                  -- dashing the border

   --Textual
   
   extra_newline = false,                  -- extra newline at the end - for asesome's wiboxes
   format_human_readable = true,            -- KiB, MiB rather then number of bytes
   font = 'CarroisGothicSC:bold:size=9',           -- font for complete conky unless in code defined
   max_text_width = 0,                     -- 0 will make sure line does not get broken if width too smal
   max_user_text = 16384,                  -- max text in conky default 16384
   override_utf8_locale = true,            -- force UTF8 requires xft
   short_units = true,                     -- shorten units from KiB to k
   top_name_width = 21,                  -- width for $top name value default 15
   top_name_verbose = false,               -- If true, top name shows the full command line of  each  process - Default value is false.
   uppercase = false,                     -- uppercase or not
   use_spacer = 'none',                  -- adds spaces around certain objects to align - default none
   use_xft = true,                        -- xft font - anti-aliased font
   xftalpha = 1,                        -- alpha of the xft font - between 0-1

   --Windows

   own_window = true,                     -- create your own window to draw
   own_window_argb_value = 0,             -- real transparency - composite manager required 0-255
   own_window_argb_visual = true,            -- use ARGB - composite manager required
   own_window_class = 'Conky',               -- manually set the WM_CLASS name for use with xprop
   own_window_colour = '#000000',            -- set colour if own_window_transparent no
   own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager',  -- if own_window true - just hints - own_window_type sets it
   own_window_transparent = false,            -- if own_window_argb_visual is true sets background opacity 0%
   own_window_title = 'system_conky',         -- set the name manually  - default conky "hostname"
   own_window_type = 'desktop',            -- if own_window true options are: normal/override/dock/desktop/panel
   

   --Colours

   default_color = '#C0C0C0',              -- default color and border color
   color0 = '#B0E0E6',
   color1 = '#5393BF',
   color2 = '#D8BFD8',
   color3 = '#cccccc',
   color4 = '#BDBDBD',
   color5 = '#CCCCCC',
   color6 = '#aa0000',

   --Signal Colours
   color7 = '#1F7411',                    --green
   color8 = '#FFA726',                    --orange
   color9 = '#F1544B',                    --firebrick
   

   --Lua
   lua_load = '$HOME/.config/conky/lua/draw-bg.lua',
   lua_draw_hook_pre = 'draw_bg 15 0 0 0 0 0x101010 0.5',
   
   --Template
   template0="~/.config/conky/images/weather-icons/64px-white",
   template6="Please enter your own API Key here",
   template7="Please enter your City ID here",
   template8="metric",
   template9="en_CA.UTF-8",

};

conky.text = [[
${font CarroisGothicSC:bold:size=10.5}${alignc}${color5}${time %X}
${goto 27}${color1}${execpi 7200 LAR=`date +%-d`; cal -1 -s | sed 's/\<'$LAR'\>/${color5}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 27}/g'}${color}${font}
${color5}${alignc}S Y S T E M    I N F O
${hr}${color}
Host:${alignr}${nodename}
Uptime:${alignr}${uptime}
#Time:${alignr}${time %H:%M}
UTC:${alignr}${utime %H:%M}
#Brussels: ${alignr}${tztime Europe/Brussels %H:%M}# ${time %p}${font}

${goto 60}Used${alignr}Size
Root${goto 60}${fs_used /}${alignr}${fs_size /}
Home${goto 60}${fs_used /home}${alignr}${fs_size /home}

${goto 60}MEM${alignr}MAX
RAM${goto 60}${mem}${alignr}${memmax}
Swap${goto 60}${swap}${alignr}${swapmax}

CPU:${goto 60}Used${alignr}GHz
Avg${goto 60}${if_match ${cpu cpu0}<10}${color}00${color}${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}${color1}0${color}${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%${alignr}${freq_g}

${color1}${alignc}S H O R T C U T    K E Y S${color}
${color1}${hr}${color}
${color1}${color2}Right-mouse click on
desktop to get menu${color}
${color1}${hr}${color}
${color1}[S]+Space${alignr}${color2}Main Menu${color}
${color1}[Alt]+F2${alignr}${color2}Alt Menu${color}
${color1}[Alt]+F3${alignr}${color2}Alt Menu${color}
${color1}[S]+[Shift]+D${alignr}${color2}Alt Menu${color}
${color1}[Ctrl]+[Space]${alignr}${color2}Synapse${color}
#${color1}[S] + Tab${alignr}${color2}Client Menu${color}
${color1}${hr}${color}
\
\
\
\
\
${execi 300 l=${template9}; l=${l%%_*}; curl -s "api.openweathermap.org/data/2.5/forecast/daily?APPID=${template6}&id=${template7}&cnt=5&units=${template8}&lang=$l" -o ~/.cache/forecast.json}\
${execi 300 l=${template9}; l=${l%%_*}; curl -s "api.openweathermap.org/data/2.5/weather?APPID=${template6}&id=${template7}&cnt=5&units=${template8}&lang=$l" -o ~/.cache/weather.json}\
\
\
\
\
${font CarroisGothicSC :size=24}${color0}\
${voffset 5}\
$alignr${execi 300 jq ".main.temp" ~/.cache/weather.json | awk '{print int($1+0.5)}' # round num}°C ${font}${color}
\
\
\
\
${font CarroisGothicSC :size=12}\
${voffset 5}\
$alignr${color1}${execi 300 jq ".list[0].temp.min" ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°C ${color}| \
${color1}${execi 300 jq ".list[0].temp.max" ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°C ${font}${color}
\
\
\
\
${font CarroisGothicSC :size=14}${color1}\
${voffset 5}\
${execi 300 jq -r ".weather[0].description" ~/.cache/weather.json}${font}${color}
\
\
\
\
${execi 300 cp -f ${template0}/$(jq .weather[0].id ~/.cache/weather.json).png ~/.cache/current.png}${image ~/.cache/current.png -p 0,600 -s 64x64}
\
${font CarroisGothicSC :size=14}${color1}\
${voffset -10}\
${execi 300 jq -r ".name" ~/.cache/weather.json}${font}${color}
#
${color1}${hr}${color}
${color1}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}${alignr}${execi 6000 lsb_release -a | grep 'Release'|awk {'print $2""$3""$4""$5'}}${color}
]];
M.
User avatar
Mike022465
 
Posts: 17
Joined: Mon Aug 07, 2017 9:36 am
Location: Somewhere north of Calgary.
Running Release: 5.0.0

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Mon Aug 07, 2017 11:56 am

Mike022465 wrote:Here's the conky script for what I've done. It's based on the AL-Def-Cal-LUA

It's actually based on one of mine, which in turn is based on the style of the original #! conky.

Now if I may make one suggestion, just for the calendar part: A mono font so the days line up right.
Image
All you need to do is change the font for the calendar to a mono font.

I lived in Calgary in the 50's and I still miss the Stampede! :(
Forget the Klondike Days, the Stampede is where it's at!
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Mike022465 » Mon Aug 07, 2017 1:59 pm

https://www.dropbox.com/s/m6pnddhovjl7cbk/ArchLabs_2017-08-06-14_Conky1.png?dl=0

Thanks for the tip! Greatly appreciated. A little more tweaking and I got it where I want it. The mono form font got it all hunky-dory!
(Check below for the revision)

Calgary still rocks with the Stampede, but it sucks donkey-b*lls for trying to get back to work. Been over 3 years and am still looking...

Hope things are better there than here.

Thanks,

M.

Sector11 wrote:
Mike022465 wrote:Here's the conky script for what I've done. It's based on the AL-Def-Cal-LUA

It's actually based on one of mine, which in turn is based on the style of the original #! conky.

Now if I may make one suggestion, just for the calendar part: A mono font so the days line up right.
Image
All you need to do is change the font for the calendar to a mono font.

I lived in Calgary in the 50's and I still miss the Stampede! :(
Forget the Klondike Days, the Stampede is where it's at!


Code: Select all
--[[
#=====================================================================================
#                               ArchLabs
# Date    : 06/07/2017
# Source  : BunsenLabs smacz betatester
# converted to conky 1.10 syntax for ArchLabs by: postmaster and Erik Dubois
# original config borrowed from BunsenLabs with love
# Editor  : Erik Dubois at http://www.erikdubois.be
# Version : v2.1.1
# License : Distributed under the terms of GNU GPL version 2 or later
# Documentation : http://erikdubois.be
#======================================================================================
# CONKY
# For commands in conky.config section:
# http://conky.sourceforge.net/config_settings.html
#
# For commands in conky.text section:
# http://conky.sourceforge.net/variables.html
#
# A PDF with all variables is provided
#======================================================================================
# FONTS
# To avoid copyright infringements you will have to download
# and install the fonts yourself sometimes.
#=====================================================================================
# GENERAL INFO ABOUT FONTS
# Go and look for a nice font on sites like http://www.dafont.com/
# Download and unzip - double click the font to install it (font-manager must be installed)
# No font-manager then put fonts in ~/.fonts
# Change the font name in the conky
# The name can be known with a command in the terminal: fc-list | grep "part of name"
# Change width and height of the conky according to font
# Reboot your system or fc-cache -fv in terminal
# Enjoy
#=====================================================================================
# FONTS FOR THIS CONKY
# no extra font(s) needed
#======================================================================================
# LUA
# You need not only install conky but also a package that supports lua on your computer
# Depending on your HARDWARE you should choose wisely in the AUR
# My hardware has an NVIDIA I will choose "conky-lua-nv" from AUR.
#======================================================================================

]]

conky.config = {

   --Various settings

   background = true,                      -- forked to background
   cpu_avg_samples = 2,                  -- The number of samples to average for CPU monitoring.
   diskio_avg_samples = 10,               -- The number of samples to average for disk I/O monitoring.
   double_buffer = true,                  -- Use the Xdbe extension? (eliminates flicker)
   if_up_strictness = 'address',            -- how strict if testing interface is up - up, link or address
   net_avg_samples = 2,                  -- The number of samples to average for net data
   no_buffers = true,                     -- Subtract (file system) buffers from used memory?
   text_buffer_size = 2048,               -- size of buffer for display of content of large variables - default 256
   update_interval = 1,                  -- update interval
   imlib_cache_size = 0,                       -- disable image cache to get a new spotify cover per song
 
   

   --Placement

   alignment = 'top_right',                  -- top_left,top_middle,top_right,bottom_left,bottom_middle,bottom_right,
                                    -- middle_left,middle_middle,middle_right,none
   --Arch Duoscreen
   --gap_x = -1910,
   gap_x = 10,                           -- pixels between right or left border
   gap_y = 50,                           -- pixels between bottom or left border
   minimum_height = 700,                  -- minimum height of window
   minimum_width = 200,                  -- minimum height of window
   maximum_width = 200,                  -- maximum height of window

   --Graphical

   border_inner_margin = 5,                -- margin between border and text
   border_outer_margin = 5,                -- margin between border and edge of window
   border_width = 0,                      -- border width in pixels
   default_bar_width = 280,               -- default is 0 - full width               
   default_bar_height = 10,               -- default is 6
   default_gauge_height = 25,               -- default is 25
   default_gauge_width =40,               -- default is 40
   default_graph_height = 40,               -- default is 25
   default_graph_width = 153,               -- default is 0 - full width
   default_shade_color = '#000000',         -- default shading colour
   default_outline_color = '#000000',         -- default outline colour
   draw_borders = false,                  -- draw borders around text
   draw_graph_borders = true,               -- draw borders around graphs
   draw_shades = false,                  -- draw shades
   draw_outline = false,                  -- draw outline
   stippled_borders = 0,                  -- dashing the border

   --Textual
   
   extra_newline = false,                  -- extra newline at the end - for asesome's wiboxes
   format_human_readable = true,            -- KiB, MiB rather then number of bytes
   font = 'CarroisGothicSC:bold:size=9',           -- font for complete conky unless in code defined
   max_text_width = 0,                     -- 0 will make sure line does not get broken if width too smal
   max_user_text = 16384,                  -- max text in conky default 16384
   override_utf8_locale = true,            -- force UTF8 requires xft
   short_units = true,                     -- shorten units from KiB to k
   top_name_width = 21,                  -- width for $top name value default 15
   top_name_verbose = false,               -- If true, top name shows the full command line of  each  process - Default value is false.
   uppercase = false,                     -- uppercase or not
   use_spacer = 'none',                  -- adds spaces around certain objects to align - default none
   use_xft = true,                        -- xft font - anti-aliased font
   xftalpha = 1,                        -- alpha of the xft font - between 0-1

   --Windows

   own_window = true,                     -- create your own window to draw
   own_window_argb_value = 0,             -- real transparency - composite manager required 0-255
   own_window_argb_visual = true,            -- use ARGB - composite manager required
   own_window_class = 'Conky',               -- manually set the WM_CLASS name for use with xprop
   own_window_colour = '#000000',            -- set colour if own_window_transparent no
   own_window_hints = 'undecorated,below,above,sticky,skip_taskbar,skip_pager',  -- if own_window true - just hints - own_window_type sets it
   own_window_transparent = false,            -- if own_window_argb_visual is true sets background opacity 0%
   own_window_title = 'system_conky',         -- set the name manually  - default conky "hostname"
   own_window_type = 'desktop',            -- if own_window true options are: normal/override/dock/desktop/panel
   

   --Colours

   default_color = '#C0C0C0',              -- default color and border color
   color0 = '#B0E0E6',
   color1 = '#5393BF',
   color2 = '#D8BFD8',
   color3 = '#cccccc',
   color4 = '#BDBDBD',
   color5 = '#CCCCCC',
   color6 = '#aa0000',

   --Signal Colours
   color7 = '#1F7411',                    --green
   color8 = '#FFA726',                    --orange
   color9 = '#F1544B',                    --firebrick
   

   --Lua
   lua_load = '$HOME/.config/conky/lua/draw-bg.lua',
   lua_draw_hook_pre = 'draw_bg 15 0 0 0 0 0x101010 0.5',
   
   --Template
   template0="~/.config/conky/images/weather-icons/64px-white",
   template6="f7208c8e726bbee3de67cf760c2ab527",
   template7="5913490",
   template8="metric",
   template9="en_CA.UTF-8",

};

conky.text = [[
${font CarroisGothicSC:bold:size=14.5}${alignc}${color5}${time %X}
${goto 27}${font DejaVu Sans Mono:size=10.5}${color1}${execpi 7200 LAR=`date +%-d`; cal -1 -s | sed 's/\<'$LAR'\>/${color5}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 27}/g'}${color}${font}
${font CarroisGothicSC:size=10.5}${color5}${alignc}System Info
${hr}${color}
Host:${alignr}${nodename}
Uptime:${alignr}${uptime}
#Time:${alignr}${time %H:%M}
UTC:${alignr}${utime %H:%M}
#Brussels: ${alignr}${tztime Europe/Brussels %H:%M}# ${time %p}${font}

${goto 60}Used${alignr}Size
Root${goto 60}${fs_used /}${alignr}${fs_size /}
Home${goto 60}${fs_used /home}${alignr}${fs_size /home}

${goto 60}MEM${alignr}MAX
RAM${goto 60}${mem}${alignr}${memmax}
Swap${goto 60}${swap}${alignr}${swapmax}

CPU:${goto 60}Used${alignr}GHz
Avg${goto 60}${if_match ${cpu cpu0}<10}${color}00${color}${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}${color1}0${color}${cpu cpu0}\
${else}${cpu cpu0}${endif}${endif}%${alignr}${freq_g}

${color5}${alignc}Short Cuts${color}
${color5}${hr}${color}
${color1}${color2}${alignc}Right-mouse click on
${alignc}desktop to get menu${color}
${color5}${hr}${color}
${color1}[Fn]+PrtSc${alignr}${color2}Screenshot${color}
${color1}[S]+K${alignr}${color2}Lock Screen${color}
${color1}[S]+F${alignr}${color2}File Manager${color}
${color1}[S]+x${alignr}${color2}Log Out${color}
${color1}[Ctrl]+[Space]${alignr}${color2}Synapse${color}
#${color1}[S] + Tab${alignr}${color2}Client Menu${color}
${color5}${hr}${color}
\
\
\
${color5}${alignc}Weather At The Moment${color}
${color5}${hr}${color}
\
\
${execi 300 l=${template9}; l=${l%%_*}; curl -s "api.openweathermap.org/data/2.5/forecast/daily?APPID=${template6}&id=${template7}&cnt=5&units=${template8}&lang=$l" -o ~/.cache/forecast.json}\
${execi 300 l=${template9}; l=${l%%_*}; curl -s "api.openweathermap.org/data/2.5/weather?APPID=${template6}&id=${template7}&cnt=5&units=${template8}&lang=$l" -o ~/.cache/weather.json}\
\
\
\
\
${font CarroisGothicSC :size=24}${color0}\
${voffset 5}\
$alignr${execi 300 jq ".main.temp" ~/.cache/weather.json | awk '{print int($1+0.5)}' # round num}°C ${font}${color}
\
\
\
\
${font CarroisGothicSC :size=12}\
${voffset 5}\
$alignr${color1}${execi 300 jq ".list[0].temp.min" ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°C ${color}| \
${color1}${execi 300 jq ".list[0].temp.max" ~/.cache/forecast.json | awk '{print int($1+0.5)}' # round num}°C ${font}${color}
\
\
\
\
${font CarroisGothicSC :size=14}${color1}\
${voffset 5}\
${execi 300 jq -r ".weather[0].description" ~/.cache/weather.json}${font}${color}
\
\
\
\
${execi 300 cp -f ${template0}/$(jq .weather[0].id ~/.cache/weather.json).png ~/.cache/current.png}${image ~/.cache/current.png -p 0,680 -s 64x64}
\
${font CarroisGothicSC :size=14}${color1}\
${voffset -10}\
${execi 300 jq -r ".name" ~/.cache/weather.json}${font}${color}
#
${color5}${hr}${color}
${color5}${execi 6000 lsb_release -d | grep 'Descr'|awk {'print $2 " " $3" " $4" " $5'}}${alignr}${execi 6000 lsb_release -a | grep 'Release'|awk {'print $2""$3""$4""$5'}}${color}
]];
M.
User avatar
Mike022465
 
Posts: 17
Joined: Mon Aug 07, 2017 9:36 am
Location: Somewhere north of Calgary.
Running Release: 5.0.0

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Mon Aug 07, 2017 4:17 pm

Mike022465 wrote:Thanks for the tip! Greatly appreciated. A little more tweaking and I got it where I want it. The mono form font got it all hunky-dory!

NICE! And you're welcome. I'm retired and my Canadian pension goes a lot farther here than back home so yea, we're doing fine.
Not "Keeping Up with the Kardashians" fine but having all the bills paid and a full fridge with a little saving each month is a nice feeling .

I do hope you find work soon. Good Luck
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am

Re: Conky Configs, Scripts & Help Thread

PostPosted by Mike022465 » Tue Aug 08, 2017 10:53 am

Keep 'er tight and ride high, Brother! Thanks greatly for the wisdom and kind words!

Sector11 wrote:
Mike022465 wrote:Thanks for the tip! Greatly appreciated. A little more tweaking and I got it where I want it. The mono form font got it all hunky-dory!

NICE! And you're welcome. I'm retired and my Canadian pension goes a lot farther here than back home so yea, we're doing fine.
Not "Keeping Up with the Kardashians" fine but having all the bills paid and a full fridge with a little saving each month is a nice feeling .

I do hope you find work soon. Good Luck
M.
User avatar
Mike022465
 
Posts: 17
Joined: Mon Aug 07, 2017 9:36 am
Location: Somewhere north of Calgary.
Running Release: 5.0.0

Re: Conky Configs, Scripts & Help Thread

PostPosted by Sector11 » Tue Aug 08, 2017 11:25 am

Posted this over on Bunsen this AM so thought why not here too. It's conky v1.9 but the too easy to run convert.lua on them:
Keep on keeping on Mike!
Bruce
===========
OK a couple of new clocks. Well one is old I've had it for a while, posted it on the #! forums, so that gives you an idea "Set Theory Clock" or the Berlin Clock as some call it, on the right. Has a 'few' images so I'll either need to archive it and find a place to put it OR you can do like I did and grab them from the website. ;)

And the second one, on the left, super simple clock: Plexiglas Clock
Image
Oh didn't I tell you, the site is in German .... hmmmmmmmm OK, it's in English as well:
Image

I have the "SVG Railway Station Clock " here as well, when I find it, I'll post it. It's a LUA script if I recall correctly.

Here's the Plexiglas Clock: Image
and the conky:
Code: Select all
# pkill -xf "conky -q -c /media/5/Conky/3quarks/plexiglas/plexiglas.conky" &

# 24 hours watches: http://24hourtime.info/
# http://www.3quarks.com/index.html
# Thanks to: Rüdiger Appel

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,below,undecorated #,sticky
own_window_colour 000000
own_window_class Conky
own_window_title Plexiglas Conky

gap_x 5
gap_y 5

minimum_size 166 80 ## h|W equal to plexiglas-ns.png
maximum_width 166

alignment tl

override_utf8_locale yes
use_xft yes
xftfont LED_mono:size=25
xftalpha 1.0

default_color B2ADAB   # Same as plexiglas
color0 000000

background yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes

update_interval 0.5
TEXT
${image /media/5/Conky/3quarks/plexiglas/plexiglas-ns.png}
${goto 25}88:88:88${goto 25}${color0}${time %T}${color}

Posted just after: Image Well, on the Bunsen forums this morning.
Enjoy.
I'm a member of Conky Anonymous, a One Step Program
The CA One Step:
1. We admitted we were powerless over conky - and LOVE IT!
User avatar
Sector11
 
Posts: 79
Joined: Sat May 06, 2017 5:45 am


Return to Configs, Scripts, Tutorials and Tips

Who is online

Users browsing this forum: No registered users and 0 guests