You are not logged in.

#1741 2023-01-24 11:56:58

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

unklar wrote:

Very nice.
I'd be interested to know where in the lua-script of the clock you tweaked it to make it smaller. Is that relevant for the rings in general, or, only for this one from londonali?  wink

Well, the outer rings on that clock are semi transparent and are interesting on different back grounds.
0-S11-2023-01-24-084750.jpg ← open it.

clock-s11-mzsade-temetka-mix.2023.lua
Original: Air Clock by Alison Pitt (2009) (WOW 14 years old)
A mix of tweaks by S11, mzsade and temekta

--[[
Air Clock by Alison Pitt (2009)

This clock is designed to look like KDE 4.3's "Air" clock, but from inside Conky.

You can adjust the clock's radius and placement, as well as the size and offset of the drop shadow. You can also choose whether to display the seconds hand. This clock updates every time Conky does, so if you want to show seconds, it is recommended that you set update_interval to no more than 0.5s. If you turn off seconds, you can set the update_interval to as long as 30s.  The settings are in the "Settings" section, starting at Line 21.

Call this script in Conky using the following before TEXT (assuming you save this script to ~/scripts/clock.lua):
	lua_load ~/scripts/clock.lua
	lua_draw_hook_pre draw_clock
]]
require 'cairo'
function conky_draw_clock()
	if conky_window==nil then return end
	local w=conky_window.width
	local h=conky_window.height
	local cs=cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, w, h)
	cr=cairo_create(cs)

	-- Settings

		-- What radius should the clock face (not including border) be, in pixels?

		local clock_r=48

		-- x and y coordinates, relative to the top left corner of Conky, in pixels

		local xc=w/1.95
		local yc=h/2.65

		-- Extent of the shadow, in pixels

		shadow_width=25  --5

		-- x and y offsets of the drop shadow, relative to the centre of the clock face, in pixels. Can be positive (downward) or negative (upward)

		shadow_xoffset=0
		shadow_yoffset=0  --2

		-- Do you want to show the second hand? Use this if you use a Conky update_interval > 1s. Can be true or false.

		show_seconds=true --false

	-- Grab time

	local hours=os.date("%I")
	local mins=os.date("%M")
	local secs=os.date("%S")

	secs_arc=(2*math.pi/60)*secs
	mins_arc=(2*math.pi/60)*mins
	hours_arc=(2*math.pi/12)*hours+mins_arc/12

	-- Drop shadow

	local ds_pat=cairo_pattern_create_radial(xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25,xc+shadow_xoffset,yc+shadow_yoffset,clock_r*1.25+shadow_width)
	cairo_pattern_add_color_stop_rgba(ds_pat,0,0,0,0,0.2)
	cairo_pattern_add_color_stop_rgba(ds_pat,1,0,0,0,0)

	cairo_move_to(cr,0,0)
	cairo_line_to(cr,w,0)
	cairo_line_to(cr,w,h)
	cairo_line_to(cr,0,h)
	cairo_new_sub_path(cr)
	cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
	cairo_set_source(cr,ds_pat)
	cairo_set_fill_rule(cr,CAIRO_FILL_RULE_EVEN_ODD)
	cairo_fill(cr)

	-- Glassy border

	cairo_arc(cr,xc,yc,clock_r*1.25,0,2*math.pi)
	cairo_set_source_rgba(cr,0.5,0.5,0.5,0.2)
	cairo_set_line_width(cr,1)
	cairo_stroke(cr)

	local border_pat=cairo_pattern_create_linear(xc,yc-clock_r*1.25,xc,yc+clock_r*1.25)

	cairo_pattern_add_color_stop_rgba(border_pat,0,1,1,1,0.7)
	cairo_pattern_add_color_stop_rgba(border_pat,0.3,1,1,1,0)
	cairo_pattern_add_color_stop_rgba(border_pat,0.5,1,1,1,0)
	cairo_pattern_add_color_stop_rgba(border_pat,0.7,1,1,1,0)
	cairo_pattern_add_color_stop_rgba(border_pat,1,1,1,1,0.7)
	cairo_set_source(cr,border_pat)
	cairo_arc(cr,xc,yc,clock_r*1.125,0,2*math.pi)
	cairo_close_path(cr)
	cairo_set_line_width(cr,clock_r*0.25)
	cairo_stroke(cr)

	-- Set clock face

	cairo_arc(cr,xc,yc,clock_r,0,2*math.pi)
	cairo_close_path(cr)

	local face_pat=cairo_pattern_create_radial(xc,yc-clock_r*0.75,0,xc,yc,clock_r)

	cairo_pattern_add_color_stop_rgba(face_pat,0,1,1,1,0.9)
	cairo_pattern_add_color_stop_rgba(face_pat,0.5,1,1,1,0.9)
	cairo_pattern_add_color_stop_rgba(face_pat,1,0.9,0.9,0.9,0.9)
	cairo_set_source(cr,face_pat)
	cairo_fill_preserve(cr)
	cairo_set_source_rgba(cr,0.5,0.5,0.5,0.2)
	cairo_set_line_width(cr, 1)
	cairo_stroke (cr)

	-- Draw hour hand

	xh=xc+0.7*clock_r*math.sin(hours_arc)
	yh=yc-0.7*clock_r*math.cos(hours_arc)
	cairo_move_to(cr,xc,yc)
	cairo_line_to(cr,xh,yh)

	cairo_set_line_cap(cr,CAIRO_LINE_CAP_ROUND)
	cairo_set_line_width(cr,3.5)
	cairo_set_source_rgba(cr,0,0,0,0.5)
	cairo_stroke(cr)

	-- Draw minute hand

	xm=xc+0.9*clock_r*math.sin(mins_arc)
	ym=yc-0.9*clock_r*math.cos(mins_arc)
	cairo_move_to(cr,xc,yc)
	cairo_line_to(cr,xm,ym)

	cairo_set_line_width(cr,2)
	cairo_stroke(cr)

	-- Draw seconds hand

	if show_seconds then
		xs=xc+0.9*clock_r*math.sin(secs_arc)
		ys=yc-0.9*clock_r*math.cos(secs_arc)
		cairo_move_to(cr,xc,yc)
		cairo_line_to(cr,xs,ys)

		cairo_set_line_width(cr,0.5)
		cairo_stroke(cr)
	end
end

@ jeffreyC - I've heard that.  But I'm not a member of their forum.  Might have to rectify that.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1742 2023-01-24 12:58:50

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

unklar wrote:
jeffreyC wrote:

That might be of interest to the users of antiX the default conky on it is 1.9

antiX is a 'misreport'  wink
Conky 1.9 works with any OS without problems. At least the ones I know. Example (accuweather I have not yet fixed, in the sense of 'removed').

https://i.imgur.com/WuRfFH3t.png

No not quite, jeffreyC never said conky v1.9 won't work here he just pointed out that AntiX's default conky used v1.9 coding.  Safe to assume that Conky v1.9 is their default install.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1743 2023-01-24 13:45:23

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

Sector11 wrote:
unklar wrote:
jeffreyC wrote:

That might be of interest to the users of antiX the default conky on it is 1.9

antiX is a 'misreport'  wink
Conky 1.9 works with any OS without problems. At least the ones I know. Example (accuweather I have not yet fixed, in the sense of 'removed').

https://i.imgur.com/WuRfFH3t.png

No not quite, jeffreyC never said conky v1.9 won't work here he just pointed out that AntiX's default conky used v1.9 coding.  Safe to assume that Conky v1.9 is their default install.

That's why I wrote that in quotation marks with a wink.

so, understood.
local clock_r does the job.

j3gPk5Nt.png

Edit: Thanks for the code..  wink

Last edited by unklar (2023-01-24 13:48:36)

Offline

#1744 2023-01-24 15:27:40

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

unklar wrote:

That's why I wrote that in quotation marks with a wink.

so, understood.
local clock_r does the job.

https://i.imgur.com/j3gPk5Nt.png

Edit: Thanks for the code..  wink

I gotta have my morning coffee "before" responding to things.
lol lol lol

AntiX - "Anonymous" using a copy of S11's test conky and speaks German ....
Hmmmmmmmmmmm  wink


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1745 2023-01-25 07:21:27

Naik
Member
From: the edge of insanity
Registered: 2015-10-03
Posts: 328

Re: Show us your conky

Hey folks,

speaking of lua and looking at all the great conkys here I wanted to ask whether there is a chance to modify my (shamlessly stolen) rings.lua to include markers in the clock-ring (the last section). I looked all over and found that most other examples use a slightly different approach to drawing rings. But I would like to keep it as close as possible to the existing rings.lua from deeptoaster3:

config = {
  bg_color = 0xffffff,
  bg_alpha = 0.2,
  fg_color_override = nil,
  fg_alpha = 0.8,
  network_ethernet = 'eno1',
  network_wlan = 'wlan0',
  clock_min = { 15,30,45 },
  clock_hour = { '3','6','9','12','18','21' }
}
groups = {
  {
    fg_color = 0x62C5C5,
    rings = {
      {
        breakpoints = { 'top cpu 1', 'top cpu 2', 'top cpu 3', 'top cpu 4' },
        command = 'cpu',
        max = 100
      },
      { command = 'acpitemp', max = 100 }
    }
  },
  {
    fg_color = 0x74A6CF,
    rings = {
      {
        breakpoints = {
          'top_mem mem 1',
          'top_mem mem 2',
          'top_mem mem 3',
          'top_mem mem 4'
        },
        command = 'memperc',
        max = 100
      },
      { command = 'swapperc', max = 100 }
    }
  },
  {
    fg_color = 0x6A88D4,
    rings = {
      {
        command =
            "fs_used_perc /",
        max = 100
      },
      {
        command =
            "fs_used_perc /win",
        max = 100
      },
    }
  },
  {
    fg_color = 0x6052C9,
    rings = {
      { 
		command = 'downspeedf ' .. config.network_wlan, log = true, max = 12 
		
		},
      { 
		command = 'upspeedf ' .. config.network_wlan, log = true, max = 12 }
    }
  },
  {
    fg_color = 0x837FD3,
    rings = {
      { 
        command = 'time %H', log = false, max = 24 
       },
      {  
		command = 'time %M', log = false, max = 60 
		},
      {  
		command = 'time %S', log = false, max = 60
		},
    }
  }
}
require 'cairo'
function angle(position, max)
  return position / max * math.pi * 1.5 - math.pi
end
function evaluate(command, log)
  local value = conky_parse(string.format('${%s}', command)):gsub('%%', '')
  value = tonumber(value)
  if value == nil then
    return
  elseif log then
    return math.log(value + 1)
  else
    return value
  end
end
function rgba(color, alpha)
  return color / 0x10000 % 0x100 / 255, color / 0x100 % 0x100 / 255,
      color % 0x100 / 255, alpha
end
function draw_line(cairo, y, breakpoint_count, fg_color)
  cairo_set_line_width(cairo, 2)
  cairo_set_source_rgba(cairo, rgba(fg_color, config.fg_alpha))
  cairo_move_to(cairo, 0, y - 1)
  cairo_line_to(cairo, 237 - breakpoint_count * 2, y - 1)
  cairo_stroke(cairo)
end
function draw_ring(cairo, y, radius, breakpoints, max, fg_color)
  local previous_angle = angle(0, max)
  cairo_set_source_rgba(cairo, rgba(fg_color, config.fg_alpha))
  for breakpoint_index in pairs(breakpoints) do
    local breakpoint_angle = angle(breakpoints[breakpoint_index], max)
    if breakpoint_angle > previous_angle then
      cairo_set_line_width(cairo, (#breakpoints - breakpoint_index) * 2 + 6)
      cairo_arc(
        cairo,
        300,
        y,
        radius + #breakpoints - breakpoint_index,
        previous_angle,
        breakpoint_angle
      )
      cairo_stroke(cairo)
      previous_angle = breakpoint_angle + math.pi / 135
    end

  end
  breakpoint_angle = angle(max, max)
  if breakpoint_angle > previous_angle then
    cairo_set_line_width(cairo, 6)
    cairo_set_source_rgba(cairo, rgba(config.bg_color, config.bg_alpha))
    cairo_arc(cairo, 300, y, radius, previous_angle, breakpoint_angle)
    cairo_stroke(cairo)
  end
end
function conky_rings()
  if conky_window == nil then
    return
  end
  local cairo = cairo_create(cairo_xlib_surface_create(
    conky_window.display,
    conky_window.drawable,
    conky_window.visual,
    conky_window.width,
    conky_window.height
  ))
  for group_index in pairs(groups) do
    local group = groups[group_index]
    local y = group_index * 160 - 96
    local breakpoint_count = 0
    local fg_color = group.fg_color
    if config.fg_color_override ~= nil then
      fg_color = config.fg_color_override
    end
    for ring_index in pairs(group.rings) do
      local breakpoints = {}
      local ring = group.rings[ring_index]
      local value = evaluate(ring.command, ring.log)
      if ring.breakpoints ~= nil then
        local position = 0
        for breakpoint_index in pairs(ring.breakpoints) do
          local value = evaluate(ring.breakpoints[breakpoint_index], ring.log)
          if value == nil then
            break
          end
          position = position + value
          table.insert(breakpoints, position)
        end
      end
      if value ~= nil then
        table.insert(breakpoints, value)
      end
      breakpoint_count = math.max(breakpoint_count, #breakpoints)
      if #breakpoints ~= 0 then
        draw_ring(
          cairo,
          y,
          68 - ring_index * 8,
          breakpoints,
          ring.max,
          fg_color
        )
      end
    end
    draw_line(cairo, y, breakpoint_count, fg_color)
  end
end

the last section (of the config part) resembles a clock and I would like to add a kind of segmentation or little markers on the bg rings to indicate 3,6,9,... and the like.
I am obviously absolutly lost regarding the mechanics of lua, so any help would be highly apreciated.

naik --greetz

Last edited by Naik (2023-01-25 07:22:59)


"Kaum macht [Mensch]* es richtig, funktioniert es sofort!"
BL-Kitchen Codeberg

Offline

#1746 2023-01-25 15:00:20

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

I search for my conky calendar to made the first day lu (monday) at the place to di (sunday)

Capture-d-cran-2023-01-25-15-52-29.png

Capture-d-cran-2023-01-25-15-52-58.png

here code

${execpi 60 DJS=`date +%_d`; cal -j | sed '8d' | sed 's/$/                     /' | fold -w 27 | sed -n '/^.\{27\}/p' | sed 's/^//' | sed /" $DJS "/s/" $DJS "/" "'${color 6495ee}'"$DJS"'${color}'" "/}

tanks for helping


@+

Last edited by loutch (2023-01-25 15:01:00)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#1747 2023-01-25 17:58:59

ceeslans
Member
Registered: 2015-09-30
Posts: 195

Re: Show us your conky

Would this work for you?

${execpi 60 DJS=`date +%-d` ; ncal -bh | sed '8d' | sed 's/$/                     /' | fold -w 27 

Last edited by ceeslans (2023-01-25 17:59:48)

Offline

#1748 2023-01-25 18:26:17

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello ceeslans

Tanks a lot work great just change

${execpi 60 DJS=`date +%-d` ; ncal -bh | sed '8d' | sed 's/$/ 

to

 ${execpi 60 DJS=`date +%-d` ; ncal -bh | sed '6d' | sed 's/$/

Capture-d-cran-2023-01-25-19-25-19.png


@+

Last edited by loutch (2023-01-25 18:30:31)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#1749 2023-01-26 12:38:49

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

loutch wrote:

Hello
here code

${execpi 60 DJS=`date +%_d`; cal -j | sed '8d' | sed 's/$/                     /' | fold -w 27 | sed -n '/^.\{27\}/p' | sed 's/^//' | sed /" $DJS "/s/" $DJS "/" "'${color 6495ee}'"$DJS"'${color}'" "/}

This code is using the -j flag for

−j Display Julian days (days one-based, numbered from January 1).

If you want to keep that and have a "Mon" start:

−b Use old style format for ncal output.
−M Weeks start on Monday.
−S Weeks start on Sunday.
 26 Jan 23 @ 09:34:09 ~
   $ ncal -bhjM
       January 2023          
 Mo  Tu  We  Th  Fr  Sa  Su  
                          1  
  2   3   4   5   6   7   8  
  9  10  11  12  13  14  15  
 16  17  18  19  20  21  22  
 23  24  25  26  27  28  29  
 30  31                      
 
 26 Jan 23 @ 09:34:22 ~
   $ 

This is more in line with the -j you had:

${execpi 60 DJS=`date +%_d`; ncal -bjhM | sed '8d' | sed 's/$/                     /' | fold -w 27 | sed -n '/^.\{27\}/p' | sed 's/^//' | sed /" $DJS "/s/" $DJS "/" "'${color 6495ee}'"$DJS"'${color}'" "/}

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1750 2023-01-26 15:13:00

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

@ S11 tanks , like ceeslans , in  your line i must change

sed '8d'

to

sed '6d' 

in conkyrc  to have the 30 & 31 days.

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#1751 2023-01-26 15:27:43

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

Naik wrote:

Hey folks,

speaking of lua and looking at all the great conkys here I wanted to ask whether there is a chance to modify my (shamlessly stolen) rings.lua to include markers in the clock-ring (the last section). I looked all over and found that most other examples use a slightly different approach to drawing rings. But I would like to keep it as close as possible to the existing rings.lua from deeptoaster3:

...

the last section (of the config part) resembles a clock and I would like to add a kind of segmentation or little markers on the bg rings to indicate 3,6,9,... and the like.
I am obviously absolutly lost regarding the mechanics of lua, so any help would be highly apreciated.

naik --greetz

Sorry, @naik, I have no idea about lua.  dA09H03.png

If I understand you correctly, the lower right circles should contain the numbers 3, 6, 9 (12), like on a clock.

Maybe this thread from @damo about his lua clock will help you. In the clock_settings file he explains in the right section how the lua instructions work.

Offline

#1752 2023-01-26 15:43:42

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Show us your conky

loutch wrote:

Hello

@ S11 tanks , like ceeslans , in  your line i must change

sed '8d'

to

sed '6d' 

in conkyrc  to have the 30 & 31 days.

@+

Hello @loutch,

In 2016 @EL Conkystador gave me this code because of Monday. It still works.  wink

${alignc}${color0}${time %T}
  ${time %b %Y}${alignr 15}Woche ${time %V}${color}
${alignc}${if_match ${time %u}==1}${color0}Mo${color1} Di Mi Do Fr Sa So ${else}\
${if_match ${time %u}==2}${color1}Mo ${color0}Di${color1} Mi Do Fr Sa So${else}\
${if_match ${time %u}==3}${color1}Mo Di ${color0}Mi${color1} Do Fr Sa So${else}\
${if_match ${time %u}==4}${color1}Mo Di Mi ${color0}Do${color1} Fr Sa So${else}\
${if_match ${time %u}==5}${color1}Mo Di Mi Do ${color0}Fr${color1} Sa So${else}\
${if_match ${time %u}==6}${color1}Mo Di Mi Do Fr ${color0}Sa${color1} So${else}\
${if_match ${time %u}==7}${color1}Mo Di Mi Do Fr Sa ${color0}So${color1}${else}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}
${alignc}  ${color1}${execpi 1800 LAR=`date +%-d`; ncal -bhM | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${alignc}  /g'}${color}

Offline

#1753 2023-01-26 17:04:49

loutch
Member
Registered: 2015-12-12
Posts: 848

Re: Show us your conky

Hello

Danke mein Freund hier meiner in Fransösich

${alignc}${if_match ${time %u}==1}${color9}Lu${color1} Ma Me Je Ve Sa Di ${else}\
${if_match ${time %u}==2}${color9}Lu ${color0}Ma${color1} Me Je Ve Sa Di${else}\
${if_match ${time %u}==3}${color9}Lu Ma ${color0}Me${color1} Je Ve Sa Di${else}\
${if_match ${time %u}==4}${color9}Lu Ma Me ${color0}Je${color1} Ve Sa Di${else}\
${if_match ${time %u}==5}${color9}Lu Ma Me Je ${color0}Ve${color1} Sa Di${else}\
${if_match ${time %u}==6}${color9}Lu Ma Me Je Ve ${color0}Sa${color1} Di${else}\
${if_match ${time %u}==7}${color9}Lu Ma Me Je Ve Sa ${color0}Di${color1}${else}
${endif}${endif}${endif}${endif}${endif}${endif}${endif}
${alignc}  ${color9}${execpi 1800 LAR=`date +%-d`; ncal -bhM | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color0}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${alignc}  /g'}${color} 
]];

Capture-d-cran-2023-01-26-18-03-27.png

Many tanks to all of you &

@+

Last edited by loutch (2023-01-26 17:19:26)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#1754 2023-01-26 21:57:17

grzegorzdabrowka
Member
Registered: 2016-01-03
Posts: 20
Website

Re: Show us your conky

Hello World

Test forum produces Test forum

This is some code.
# Uniwersal ConfConky v. 0.3.2 2023.01 "T1012"
# 
background no
# font 7x10
use_xft yes
# font Bitstream Vera Sans Mono:size=8
# font Liberation Mono:size=8
# font DejaVu Sans Mono:size=8
# ${font Liberation Sans Narrow:size=8:bold}
# ${font Liberation Sans Narrow:size=8}
xftfont ubuntu condensed Mono:size=8
xftalpha 0.9 #Alpha of Xft font. Must be a value at or between 1 and 0 (transparency font)
override_utf8_locale yes # special signs
update_interval 3.1
total_run_times 0
use_spacer yes
own_window yes
own_window_type normal
own_window_transparent no
own_window_argb_visual yes
own_window_argb_value 120
own_window_colour black
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
draw_shades yes
draw_outline no
draw_borders no
draw_graph_borders yes
stippled_borders 1
border_inner_margin 1
border_width 1
gap_x 55 # 55 fit to right-bar Docky
gap_y 5
no_buffers yes
uppercase no
cpu_avg_samples 2
net_avg_samples 2
use_spacer none
default_color white
default_shade_color black
default_outline_color black

alignment top_right
color1 white
color2 goldenrod
color3 grey
color4 black
maximum_width 380

max_user_text 131072 # Maximum size of user text buffer, i.e. layout below TEXT default is 16384 bytes, text buffer size a little maybe 1024


# ${iconv_start UTF-8 ISO_8859-1} «»™Œœ¤»±€£$¥¢§ª°×º¹²³¶‰6άΣЍµ♡♥♫♪♣▲ΣΣ∑∑∑∑Σ▾▴^v▅▄■□☐❏●○⌨◬⦨¿ ${iconv_stop}
# │─┌┬┐└┴┘├┼┤
# ║═╔╦╗╚╩╝╠╬╣
# ↑↓↖↗↘↙→←↔↕►◄▲▼<>Vv^×●○
# ░▒▓☺☻♥♦♣♠
# •◘○◙♂♀☼
# ¼½¾®©
# conky & conky -c conkyrc2;
# conky & exit
# killall conky $ exit
# sudo swapon /dev/sdb3
# sudo swapoff /dev/sdb3
# '>', '<', '>=', '<=', '==', '!='.
# ${goto 5}${offset -5}${voffset -5}
# ${if_match "${gw_iface}"=="eth0"}yes eth0${else}no eth0${endif}
# ${if_up lo} dns serwer
# ${if_match "${}"==""}${else}${}${endif}
# ${if_existing /proc/net/route eth0} Wired${endif}
# ${if_empty ${}}N${else}Y${endif}
# conky -c .config/conky/test.conkyrc
#${execpi 5 lsusb | grep -iv 'hub' | cut --fields=7- --delimiter=' '}


TEXT
#
#
#
# part 01 system
#
#
${image $HOME/.face -p 135,0 -s 48x36}\
#
${color2}Distro: ${color1}\
${shadecolor peru}\
\
${if_existing /etc/lsb-release}\
${execp cat /etc/lsb-release | grep DISTRIB_ID= | cut -c 12-} \
${execp cat /etc/lsb-release | grep DISTRIB_RELEASE= | cut -c 17-} \
${execp cat /etc/lsb-release | grep DISTRIB_CODENAME= | cut -c 18-}\
${else}\
\
${if_existing /etc/initrd-release}\
${execp cat /etc/initrd-release | grep PRETTY_NAME= | cut -c 13-}\
${else}\
\
${if_existing /etc/os-release}\
${execp cat /etc/os-release | grep PRETTY_NAME= | cut -c 13-}\
${else}\
\
${if_existing /etc/issue.net}\
${execi 10800 cat /etc/issue.net}\
${else}\
\
other distro\
${endif}${endif}${endif}${endif}\
${shadecolor }\
#
${color2}${alignr}Debian:${color1} ${if_existing /etc/debian_version}${execp cat /etc/debian_version}${else}none${endif}${voffset -1}
#
${color2}System & Kernel:${color1}${execi uname -mpi} ${alignc}${sysname} ${alignr}& ${kernel}${voffset -1}
${color2}Proc CPU Det:${color1}${machine}; ${freq} MHz\
${color2}${alignr}Laptop mode: ${color1}${laptop_mode}${voffset -1}
${font Liberation Sans Narrow:size=8:bold}\
${color2}User@Hostname & Work time:${color1}${alignr}${uid_name 1000}@${nodename}  &  ${execp who -b | cut -c23-} | ${uptime}${voffset -1}\
#${exec ps -eo pid,command,etime|grep 'tor'|grep 'bin'|cut -d r -f 4|xargs}${voffset -1}
${font}
${color2}Quantity logged in users: ${color1}${user_number} ${color2}${alignr}Names: ${color1}${user_names}
${color2}Monit. ${color1}${monitor_number} ${exec xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"} \
${color2}Desk.\
${color1} \
${if_match ${desktop_number} >= 1}${if_match $desktop == 1}■${else}□${endif} ${else}${endif}\
${if_match ${desktop_number} >= 2}${if_match $desktop == 2}■${else}□${endif} ${else}${endif}\
${if_match ${desktop_number} >= 3}${if_match $desktop == 3}■${else}□${endif} ${else}${endif}\
${if_match ${desktop_number} >= 4}${if_match $desktop == 4}■${else}□${endif} ${else}${endif}\
${if_match ${desktop_number} >= 5}${if_match $desktop == 5}■${else}□${endif} ${else}${endif}\
${if_match ${desktop_number} >= 6}${if_match $desktop == 6}■${else}□${endif} ${else}${endif}\
${if_match ${desktop_number} >= 7}${if_match $desktop == 7}■${else}□${endif} ${else}${endif}\
${if_match ${desktop_number} >= 8}${if_match $desktop == 8}■${else}□${endif} ${else}${endif}\
\
${color1}${alignr}"${desktop_name}"  nr  ${desktop} of ${desktop_number}${voffset -1}
#
${color2}Keyb.⌨: \
${font liberation Mono:size=7}\
\
${if_existing /etc/locale.conf}\
${color1}${execp cat /etc/locale.conf | cut -c 7-17}\
${else}\
${if_existing /etc/default/locale}\
${color1}${execp cat /etc/default/locale | grep LANG= | sed 's#LANG=##' | cut -c 4-}\
${else}\
${endif}${endif} \
\
${if_existing /etc/default}\
${execp cat /etc/default/keyboard | grep XKBMODEL= | sed 's#XKBMODEL=##' | sed 's#"##' | sed 's#"##' | cut -c 1-}\
${else}${endif}\
\
${font}\
\
${voffset -2}\
${color1}${alignr}NumLock${if_match "${exec xset q | grep Num |awk '{print $8}'}"=="on"}\
On ${color green}●\
${else}${color grey}Off●${endif}\
 \
${color1}${if_match "${exec xset q | grep Cap |awk '{print $4}'}"=="on"}\
${color1}CAPLOCKOn ${color green}●\
${else}CapLock${color grey}Off●\
${endif}\
 \
${color1}ScrollLock ${if_match "${exec xset q | grep Scr |awk '{print $12}'}"=="on"}\
On ${color green}●\
${else}${color grey}Off●${endif}
#
${voffset -1}${color2}\
Conky prog.:${color1} v.${conky_version} \
\
${color2}${alignc}Env.: ${color1}${execp env | grep DESKTOP_SESSION= |cut -c 17-}\
\
${color2}${alignr}System Updates: ${color1}${execi 3600 aptitude search "~U" | wc -l | tail}\
${if_match "${execi 3600 aptitude search "~U" | wc -l | tail}" > "0"}\
${if_updatenr 1} ${color white}○${endif}${if_updatenr 2} ${color red}●\
${else}${endif}\
${endif}
${color2}${voffset -1}CPU arch. Conky: ${color1}${conky_build_arch}${voffset -1}\
${color2}${alignr}Date Conky built: ${color1}${conky_build_date}
${voffset -8}${color3}${stippled_hr}
#
#
#
#
#
#
# part 01x battery
#
#
${voffset -6}${battery_bar 14,380}${color2}
${voffset -23} Battery status:${color1} ${battery}${color1}\
${if_match "${battery_short}"==""}? - unknown${else}${endif}\
${if_match "${battery_short}"==" "}? - unknown${else}${endif}\
${if_match "${battery_short}"=="N/A"}? - unknown${else}${endif}\
${if_match "${battery_short}"=="N/A "}? - unknown${else}${endif}\
${if_match "${battery_short}"=="N"}N - not present${else}${endif}\
${if_match "${battery_short}"=="N "}N - not present${else}${endif}\
${if_match "${battery_short}"=="F"}F - full${else}${endif}\
${if_match "${battery_short}"=="F "}F - full${else}${endif}\
${if_match "${battery_short}"=="U"}U - unknown${else}${endif}\
${if_match "${battery_short}"=="U "}U - unknown${else}${endif}\
${if_match "${battery_short}"=="E"}E - empty${else}${endif}\
${if_match "${battery_short}"=="E "}E - empty${endif}\
${if_match "${battery_short}"=="C"}C - charging${endif}\
${if_match "${battery_short}"=="C "}C - charging${endif}\
${if_match "${battery_short}"=="D"}D - discharging${endif}\
${if_match "${battery_short}"=="D "}D - discharging${endif}\
${alignr}\
\
${if_match "${battery}"==""}${else}${color green}\
${if_match ${battery_percent} <= 80}${color lightgreen}${endif}\
${if_match ${battery_percent} <= 60}${color yellow}${endif}\
${if_match ${battery_percent} <= 40}${color orange}${endif}\
${if_match ${battery_percent} <= 20}${color red}${endif}\
\
${battery_time} ${else}${endif} \
${battery_percent}% \
${endif}
${voffset -4}${color3}${stippled_hr}
#
#
#
#
#
#
# part 02 procesor
#
#
# how many CPUs? ${pre_exec nproc} ${execi 86400 nproc} ${execi 86400 nproc --all}
# how to check automaticly ${hwmon X temp Y} ???  how to do loop "for i" ???
#
${voffset -4}${color2}Processor: ${color1}${alignr}\
${execi 99999 cat /proc/cpuinfo | grep "model name" -m1 | cut -d":" -f2 | cut -d" " -f2- | sed 's#Processor ##'}\
#${execi 10000 cat /proc/cpuinfo | grep 'model name' | sed -e 's/model name.*: //'| uniq}
${voffset -4}
#
${if_match "${execp nproc}">="1"}${color seagreen}${cpubar cpu1 15,}
${voffset -22}${color2} CPU 1:\
${voffset -6}${offset 0}${goto 50}${color1}${cpugauge cpu1 15, 30}${voffset 7}${alignr 5}\
${if_match "${hwmon 0 fan 2}">"0"}${hwmon 0 fan 2}${else}\
${if_match "${hwmon 1 fan 2}">"0"}${hwmon 1 fan 2}${else}\
${if_match "${hwmon 2 fan 2}">"0"}${hwmon 2 fan 2}${endif}${endif}${endif} rpm   \
${if_match "${hwmon 0 temp 2}">"0"}${hwmon 0 temp 2}${else}\
${if_match "${hwmon 1 temp 2}">"0"}${hwmon 1 temp 2}${else}\
${if_match "${hwmon 2 temp 2}">"0"}${hwmon 2 temp 2}${endif}${endif}${endif}°C   \
${freq_g 1}GHz   \
\
${if_match ${cpu cpu1} <= 60}${color1}${else}\
${if_match ${cpu cpu1} <= 70}${color yellow}${else}\
${if_match ${cpu cpu1} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -16}\
\
${cpu cpu1}%${else}${voffset -13}${endif}
#
${if_match "${execp nproc}">="2"}${color seagreen}${cpubar cpu2 15,}
${voffset -22}${color2} CPU 2:\
${voffset -6}${offset 0}${goto 50}${color1}${cpugauge cpu2 15, 30}${voffset 7}${alignr 5}\
${if_match "${hwmon 0 fan 3}">"0"}${hwmon 0 fan 3}${else}\
${if_match "${hwmon 1 fan 3}">"0"}${hwmon 1 fan 3}${else}\
${if_match "${hwmon 2 fan 3}">"0"}${hwmon 2 fan 3}${endif}${endif}${endif} rpm   \
${if_match "${hwmon 0 temp 3}">"0"}${hwmon 0 temp 3}${else}\
${if_match "${hwmon 1 temp 3}">"0"}${hwmon 1 temp 3}${else}\
${if_match "${hwmon 2 temp 3}">"0"}${hwmon 2 temp 3}${endif}${endif}${endif}°C   \
${freq_g 2}GHz   \
\
${if_match ${cpu cpu2} <= 60}${color1}${else}\
${if_match ${cpu cpu2} <= 70}${color yellow}${else}\
${if_match ${cpu cpu2} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -16}\
\
${cpu cpu2}%${else}${voffset -13}${endif}
#
${if_match "${execp nproc}">="3"}${color seagreen}${cpubar cpu3 15,}
${voffset -22}${color2} CPU 3:\
${voffset -6}${offset 0}${goto 50}${color1}${cpugauge cpu3 15, 30}${voffset 7}${alignr 5}\
${if_match "${hwmon 0 fan 4}">"0"}${hwmon 0 fan 4}${else}\
${if_match "${hwmon 1 fan 4}">"0"}${hwmon 1 fan 4}${else}\
${if_match "${hwmon 2 fan 4}">"0"}${hwmon 2 fan 4}${endif}${endif}${endif} rpm   \
${if_match "${hwmon 0 temp 4}">"0"}${hwmon 0 temp 4}${else}\
${if_match "${hwmon 1 temp 4}">"0"}${hwmon 1 temp 4}${else}\
${if_match "${hwmon 2 temp 4}">"0"}${hwmon 2 temp 4}${endif}${endif}${endif}°C   \
${freq_g 3}GHz   \
\
${if_match ${cpu cpu3} <= 60}${color1}${else}\
${if_match ${cpu cpu3} <= 70}${color yellow}${else}\
${if_match ${cpu cpu3} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -16}\
\
${cpu cpu3}%${else}${voffset -13}${endif}
#
${if_match "${execp nproc}">="4"}${color seagreen}${cpubar cpu4 15,}
${voffset -22}${color2} CPU 4:\
${voffset -6}${offset 0}${goto 50}${color1}${cpugauge cpu4 15, 30}${voffset 7}${alignr 5}\
${if_match "${hwmon 0 fan 5}">"0"}${hwmon 0 fan 5}${else}\
${if_match "${hwmon 1 fan 5}">"0"}${hwmon 1 fan 5}${else}\
${if_match "${hwmon 2 fan 5}">"0"}${hwmon 2 fan 5}${endif}${endif}${endif} rpm   \
${if_match "${hwmon 0 temp 5}">"0"}${hwmon 0 temp 5}${else}\
${if_match "${hwmon 1 temp 5}">"0"}${hwmon 1 temp 5}${else}\
${if_match "${hwmon 2 temp 5}">"0"}${hwmon 2 temp 5}${endif}${endif}${endif}°C   \
${freq_g 4}GHz   \
\
${if_match ${cpu cpu4} <= 60}${color1}${else}\
${if_match ${cpu cpu4} <= 70}${color yellow}${else}\
${if_match ${cpu cpu4} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -16}\
\
${cpu cpu4}%${else}${voffset -13}${endif}
#
${if_match "${execp nproc}">="5"}${color seagreen}${cpubar cpu5 15,}
${voffset -22}${color2} CPU 5:\
${voffset -6}${offset 0}${goto 50}${color1}${cpugauge cpu5 15, 30}${voffset 7}${alignr 5}\
${if_match "${hwmon 0 fan 6}">"0"}${hwmon 0 fan 6}${else}\
${if_match "${hwmon 1 fan 6}">"0"}${hwmon 1 fan 6}${else}\
${if_match "${hwmon 2 fan 6}">"0"}${hwmon 2 fan 6}${endif}${endif}${endif} rpm   \
${if_match "${hwmon 0 temp 6}">"0"}${hwmon 0 temp 6}${else}\
${if_match "${hwmon 1 temp 6}">"0"}${hwmon 1 temp 6}${else}\
${if_match "${hwmon 2 temp 6}">"0"}${hwmon 2 temp 6}${endif}${endif}${endif}°C   \
${freq_g 5}GHz   \
\
${if_match ${cpu cpu5} <= 60}${color1}${else}\
${if_match ${cpu cpu5} <= 70}${color yellow}${else}\
${if_match ${cpu cpu5} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -16}\
\
${cpu cpu5}%${else}${voffset -13}${endif}
#
${if_match "${execp nproc}">="6"}${color seagreen}${cpubar cpu6 15,}
${voffset -22}${color2} CPU 6:\
${voffset -6}${offset 0}${goto 50}${color1}${cpugauge cpu6 15, 30}${voffset 7}${alignr 5}\
${if_match "${hwmon 0 fan 7}">"0"}${hwmon 0 fan 7}${else}\
${if_match "${hwmon 1 fan 7}">"0"}${hwmon 1 fan 7}${else}\
${if_match "${hwmon 2 fan 7}">"0"}${hwmon 2 fan 7}${endif}${endif}${endif} rpm   \
${if_match "${hwmon 0 temp 7}">"0"}${hwmon 0 temp 7}${else}\
${if_match "${hwmon 1 temp 7}">"0"}${hwmon 1 temp 7}${else}\
${if_match "${hwmon 2 temp 7}">"0"}${hwmon 2 temp 7}${endif}${endif}${endif}°C   \
${freq_g 6}GHz   \
\
${if_match ${cpu cpu6} <= 60}${color1}${else}\
${if_match ${cpu cpu6} <= 70}${color yellow}${else}\
${if_match ${cpu cpu6} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -16}\
\
${cpu cpu6}%${else}${voffset -13}${endif}
#
${if_match "${execp nproc}">="7"}${color seagreen}${cpubar cpu7 15,}
${voffset -22}${color2} CPU 7:\
${voffset -6}${offset 0}${goto 50}${color1}${cpugauge cpu7 15, 30}${voffset 7}${alignr 5}\
${if_match "${hwmon 0 fan 8}">"0"}${hwmon 0 fan 8}${else}\
${if_match "${hwmon 1 fan 8}">"0"}${hwmon 1 fan 8}${else}\
${if_match "${hwmon 2 fan 8}">"0"}${hwmon 2 fan 8}${endif}${endif}${endif} rpm   \
${if_match "${hwmon 0 temp 8}">"0"}${hwmon 0 temp 8}${else}\
${if_match "${hwmon 1 temp 8}">"0"}${hwmon 1 temp 8}${else}\
${if_match "${hwmon 2 temp 8}">"0"}${hwmon 2 temp 8}${endif}${endif}${endif}°C   \
${freq_g 7}GHz   \
\
${if_match ${cpu cpu7} <= 60}${color1}${else}\
${if_match ${cpu cpu7} <= 70}${color yellow}${else}\
${if_match ${cpu cpu7} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -16}\
\
${cpu cpu7}%${else}${voffset -13}${endif}
#
${if_match "${execp nproc}">="8"}${color seagreen}${cpubar cpu8 15,}
${voffset -22}${color2} CPU 8:\
${voffset -6}${offset 0}${goto 50}${color1}${cpugauge cpu8 15, 30}${voffset 7}${alignr 5}\
${if_match "${hwmon 0 fan 9}">"0"}${hwmon 0 fan 9}${else}\
${if_match "${hwmon 1 fan 9}">"0"}${hwmon 1 fan 9}${else}\
${if_match "${hwmon 2 fan 9}">"0"}${hwmon 2 fan 9}${endif}${endif}${endif} rpm   \
${if_match "${hwmon 0 temp 9}">"0"}${hwmon 0 temp 9}${else}\
${if_match "${hwmon 1 temp 9}">"0"}${hwmon 1 temp 9}${else}\
${if_match "${hwmon 2 temp 9}">"0"}${hwmon 2 temp 9}${endif}${endif}${endif}°C   \
${freq_g 8}GHz   \
\
${if_match ${cpu cpu8} <= 60}${color1}${else}\
${if_match ${cpu cpu8} <= 70}${color yellow}${else}\
${if_match ${cpu cpu8} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset -16}\
\
${cpu cpu8}%${else}${voffset -13}${endif}
#
${color darkgreen}${cpugraph 30,0 000000 006600 -l}
${voffset -35} ${color2}CPU History:\
\
${color2}   temp.:${color1}\
${if_match "${hwmon temp 0}">"0"}${hwmon temp 0}${else}\
${if_match "${hwmon temp 1}">"0"}${hwmon temp 1}${else}\
${if_match "${hwmon temp 2}">"0"}${hwmon temp 2}${else}\
${if_match "${hwmon temp 3}">"0"}${hwmon temp 3}${endif}${endif}${endif}°C\
\
${voffset -8}${offset -130}${color1}${cpugauge 30, 80}
${voffset -35} ${alignr}${color2}Nr of CPUs:${color1}${execp nproc} \
${color2}Freq:${color1}${freq}MHz \
${color2}Avg.:\
\
${if_match ${cpu} <= 60}${color1}${else}\
${if_match ${cpu} <= 70}${color yellow}${else}\
${if_match ${cpu} <= 80}${color orange}${else}\
${color red}\
${endif}${endif}${endif}${voffset 0}\
\
${cpu}% ${color1}
${color2} System load avg.:${color1}${alignr}${loadavg 1}[MB/1mim] ${loadavg 2}[MB/5mim] ${loadavg 3}[MB/15min] #${loadavg 3}
#
${voffset 0}
${color darkblue}${entropy_bar 15,380}
${voffset -22} ${color2}Empaty:${color1}${alignr 5}${entropy_perc} %  ${entropy_avail}  /  ${entropy_poolsize}
#
${voffset -4}${color3}${stippled_hr}
#
#
#
#
#
#
# part 03 procesy
#
#
${color2}${voffset -4}Top 5 sort. CPU&MEM: ${color2}${alignr}Processes./Run: ${color1}${processes}/${running_processes} ${color2}Threads/Run:${color1} ${threads}/${running_threads}
${font liberation Mono:size=7}${voffset -3}\
${color2}NAME${goto 100}CPU%${goto 137}MEM%${goto 183}PID${goto 209}|${goto 226}MEM%${goto 268}CPU%${goto 318}PID${goto 350}NAME            
#${color2}NAME            CPU%  MEM%    PID |${alignr}MEM%   CPU%    PID   NAME 
${color1}${top name 1}${offset -10}${color FF0000}${top cpu 1}${color1}${top mem 1} ${top pid 1}${alignr}|${color FF0000}${top_mem mem 1} ${color1}${top_mem cpu 1} ${top_mem pid 1} ${top_mem name 1}
${color1}${top name 2}${offset -10}${color FF4500}${top cpu 2}${color1}${top mem 2} ${top pid 2}${alignr}|${color FF4500}${top_mem mem 2} ${color1}${top_mem cpu 2} ${top_mem pid 2} ${top_mem name 2}
${color1}${top name 3}${offset -10}${color FFFF00}${top cpu 3}${color1}${top mem 3} ${top pid 3}${alignr}|${color FFFF00}${top_mem mem 3} ${color1}${top_mem cpu 3} ${top_mem pid 3} ${top_mem name 3}
${color1}${top name 4}${offset -10}${color 9ACD32}${top cpu 4}${color1}${top mem 4} ${top pid 4}${alignr}|${color 9ACD32}${top_mem mem 4} ${color1}${top_mem cpu 4} ${top_mem pid 4} ${top_mem name 4}
${color1}${top name 5}${offset -10}${color 008000}${top cpu 5}${color1}${top mem 5} ${top pid 5}${alignr}|${color 008000}${top_mem mem 5} ${color1}${top_mem cpu 5} ${top_mem pid 5} ${top_mem name 5}
#${color1}${top name 6}${offset -10}${color 006400}${top cpu 6}${color1}${top mem 6} ${top pid 6}${alignr}|${color 006400}${top_mem mem 6} ${color1}${top_mem cpu 6} ${top_mem pid 6} ${top_mem name 6}
${font}\
${color3}${voffset -7}${stippled_hr}
#
#
#
#
#
#
# part 04 RAM
#
#
${voffset -5}${color blue}${membar 15,0}
${voffset -22} ${color2}Memory RAM Usage:${color1}${voffset -6}${offset 10}${memgauge 15, 30}${voffset -8}${alignr 5}${memperc} % ${mem} / ${memmax}
${color orange}${memgraph 30,0 0000FF CD5C5C -l}
${voffset -36} ${color2}Memory RAM History
${color2} Buffers: ${color1}${buffers} ${color2}${alignc}Cached: ${color1}${cached}${alignr 5}${color2}MemEasyFree: ${color1}${memeasyfree}
${voffset -3}${color3}${stippled_hr}
#
#
#
##
#
#
# part 05 Dysk
#
#
${voffset -3}${color2}File Sys.${color1}\
#
${alignr}\
${color2}Status: ${color1}${disk_protect /dev/sda} ${fs_free /home} \
${color2} File system: ${color1}${fs_type}\
${color2} Trash: ${color1}\
${if_match "${execi 15 du -sh ~/.local/share/Trash/files/ | awk '{print $1}' | sed '/^4.0K/ d'  | sed 's/$/ to del/'}"==""}empty\
${else}\
${execi 15 du -sh ~/.local/share/Trash/files/ | awk '{print $1}' | sed '/^4.0K/ d'  | sed 's/$/ to del/'}\
${endif}
#
${color2}Folder User: ${color1}/$USER \
${color2}${alignc}Home kat.: ${color1}$HOME\
${color2}${alignr}Nr of USBs dev.: ${color1}${execpi 5 lsusb | grep -iv 'hub' | cut --fields=7- --delimiter=' ' | wc -l}
#${color2}List of USB devices:\
#${color1}${execpi 5 lsusb | grep -iv 'hub' | cut --fields=7- --delimiter=' '}
#
${voffset -4}${color brown}${fs_bar 15 /}
${voffset -22} ${color2}${font Liberation Sans Narrow:size=8}Sys. part.: \
${color2}UUID ${color1}\
${execpi 3600 cat /etc/fstab | grep '^UUID' | grep '=' | grep '1' | cut -c 6-41}
\
\
${alignr 5}${color1}${voffset -13}\
\
\
${fs_used_perc /} %  ${fs_used /}  /  ${fs_size /}${font}
#
${voffset 3}\
${if_match "${swapmax}"==""    }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0"   }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0B"  }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0B " }${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapmax}"=="0B  "}${color2}Swap:${alignr 0}${color1}no swap${else}\
${if_match "${swapperc}"=="No swap"}${color2}Swap:${alignr 0}${color1}no swap${else}
${voffset -15}${color grey}${swapbar 15,}
${voffset -22}${color2} Swap: ${color1} ${swapfree}  ${alignr 5}${swapperc}%    ${swap}/${swapmax}\
${endif}${endif}${endif}${endif}${endif}${endif}
#
#
#
#
#
${if_existing /sys/block/sda}\
${if_match "${execi 3600 cat  /sys/block/sda/size |cut -c 1-}">"0"}\
${color 556B2F}${diskiograph_read /dev/sda 20,188 A9A9A9 556B2F 0 }\
${alignr 0}${color 8B0000}${diskiograph_write /dev/sda 20,188 A9A9A9 8B0000 0 }
${voffset -24}${color2} Rd.: ${color1}${diskio_read /dev/sda}\
${font liberation Mono:size=7}${color3}▲\
${alignc}${color2} Disc ${color1}\
/dev/${color1}sda \
${execi 3600 cat /sys/block/sda/device/vendor |cut -c 1-4} \
${if_match "${hddtemp /dev/sda}"=="N/A"}${else}\
${if_match "${hddtemp /dev/sda}"==""   }${else}\
${if_match "${hddtemp /dev/sda}"=="0"  }${else}\
${hddtemp /dev/sda}°C \
${endif}${endif}${endif}\
${execi 3600 cat /sys/block/sda/device/state | cut -c 1-3} \
${execi 3600 cat /sys/block/sda/device/model || echo "none"} \
\
${color3}▼${voffset -2}${alignr}${font}${color2}Wr.:${color1} ${diskio_write /dev/sda} \
${else}${voffset -13}${endif}\
${else}${voffset -13}${endif}
#
#
${if_existing /sys/block/sdb}\
${if_match "${execi 3600 cat  /sys/block/sdb/size |cut -c 1-}">"0"}\
${color 556B2F}${diskiograph_read /dev/sdb 20,188 A9A9A9 556B2F 0 }\
${alignr 0}${color 8B0000}${diskiograph_write /dev/sdb 20,188 A9A9A9 8B0000 0 }
${voffset -24}${color2} Rd.: ${color1}${diskio_read /dev/sdb}\
${font liberation Mono:size=7}${color3}▲\
${alignc}${color2} Disc ${color1}\
/dev/${color1}sdb \
${execi 3600 cat /sys/block/sdb/device/vendor |cut -c 1-4} \
${if_match "${hddtemp /dev/sdb}"=="N/A"}${else}\
${if_match "${hddtemp /dev/sdb}"==""   }${else}\
${if_match "${hddtemp /dev/sdb}"=="0"  }${else}\
${hddtemp /dev/sdb}°C \
${endif}${endif}${endif}\
${execi 3600 cat /sys/block/sdb/device/state | cut -c 1-3} \
${execi 3600 cat /sys/block/sdb/device/model || echo "none"} \
\
${color3}▼${voffset -2}${alignr}${font}${color2}Wr.:${color1} ${diskio_write /dev/sdb} \
${else}${voffset -13}${endif}\
${else}${voffset -13}${endif}
#
#
${if_existing /sys/block/sdc}\
${if_match "${execi 3600 cat  /sys/block/sdc/size |cut -c 1-}">"0"}\
${color 556B2F}${diskiograph_read /dev/sdc 20,188 A9A9A9 556B2F 0 }\
${alignr 0}${color 8B0000}${diskiograph_write /dev/sdc 20,188 A9A9A9 8B0000 0 }
${voffset -24}${color2} Rd.: ${color1}${diskio_read /dev/sdc}\
${font liberation Mono:size=7}${color3}▲\
${alignc}${color2} Disc ${color1}\
/dev/${color1}sdc \
${execi 3600 cat /sys/block/sdc/device/vendor |cut -c 1-4} \
${if_match "${hddtemp /dev/sdc}"=="N/A"}${else}\
${if_match "${hddtemp /dev/sdc}"==""   }${else}\
${if_match "${hddtemp /dev/sdc}"=="0"  }${else}\
${hddtemp /dev/sdc}°C \
${endif}${endif}${endif}\
${execi 3600 cat /sys/block/sdc/device/state | cut -c 1-3} \
${execi 3600 cat /sys/block/sdc/device/model || echo "none"} \
\
${color3}▼${voffset -2}${alignr}${font}${color2}Wr.:${color1} ${diskio_write /dev/sdc} \
${else}${voffset -13}${endif}\
${else}${voffset -13}${endif}
#
#
${if_existing /sys/block/sdd}\
${if_match "${execi 3600 cat  /sys/block/sdd/size |cut -c 1-}">"0"}\
${color 556B2F}${diskiograph_read /dev/sdd 20,188 A9A9A9 556B2F 0 }\
${alignr 0}${color 8B0000}${diskiograph_write /dev/sdd 20,188 A9A9A9 8B0000 0 }
${voffset -24}${color2} Rd.: ${color1}${diskio_read /dev/sdd}\
${font liberation Mono:size=7}${color3}▲\
${alignc}${color2} Disc ${color1}\
/dev/${color1}sdd \
${execi 3600 cat /sys/block/sdd/device/vendor |cut -c 1-4} \
${if_match "${hddtemp /dev/sdd}"=="N/A"}${else}\
${if_match "${hddtemp /dev/sdd}"==""   }${else}\
${if_match "${hddtemp /dev/sdd}"=="0"  }${else}\
${hddtemp /dev/sdd}°C \
${endif}${endif}${endif}\
${execi 3600 cat /sys/block/sdd/device/state | cut -c 1-3} \
${execi 3600 cat /sys/block/sdd/device/model || echo "none"} \
\
${color3}▼${voffset -2}${alignr}${font}${color2}Wr.:${color1} ${diskio_write /dev/sdd} \
${else}${voffset -13}${endif}\
${else}${voffset -13}${endif}
#
#
${if_existing /sys/block/sde}\
${if_match "${execi 3600 cat  /sys/block/sde/size |cut -c 1-}">"0"}\
${color 556B2F}${diskiograph_read /dev/sde 20,188 A9A9A9 556B2F 0 }\
${alignr 0}${color 8B0000}${diskiograph_write /dev/sde 20,188 A9A9A9 8B0000 0 }
${voffset -24}${color2} Rd.: ${color1}${diskio_read /dev/sde}\
${font liberation Mono:size=7}${color3}▲\
${alignc}${color2} Disc ${color1}\
/dev/${color1}sde \
${execi 3600 cat /sys/block/sde/device/vendor |cut -c 1-4} \
${if_match "${hddtemp /dev/sde}"=="N/A"}${else}\
${if_match "${hddtemp /dev/sde}"==""   }${else}\
${if_match "${hddtemp /dev/sde}"=="0"  }${else}\
${hddtemp /dev/sde}°C \
${endif}${endif}${endif}\
${execi 3600 cat /sys/block/sde/device/state | cut -c 1-3} \
${execi 3600 cat /sys/block/sde/device/model || echo "none"} \
\
${color3}▼${voffset -2}${alignr}${font}${color2}Wr.:${color1} ${diskio_write /dev/sde} \
${else}${voffset -13}${endif}\
${else}${voffset -13}${endif}
#
#
#
#
#
${voffset 1}${color3}${stippled_hr}
#
#
#
#
# part 06 volume
#
#
#Left speaker ${exec amixer get Master | grep "[0-9]%"| grep "Left" | cut -d" " -f7 | cut -c 2- |  sed 's#%]##'}%
#${color2}Vol.: ${color1}${if_mixer_mute}[off]${else}[on] ${endif}\#no for ubuntu
${voffset -4}\
${color2}Volume: ${if_updatenr 1}♫♪ ♪${endif}${if_updatenr 2}♪ ♪♫${else}${endif} \
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}● ${color1}Off${else}${color green}● ${color1}On ${endif} \
#${color1}${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}${alignc}
${font liberation Mono:size=7}\
\
\
\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >  0}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color darkgreen}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >= 10}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color green}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >= 20}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color lightgreen}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >= 30}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color ADFF2F}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >= 40}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color yellow}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >= 50}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color orange}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >= 60}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color FF4500}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >= 70}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color red}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >= 80}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color darkred}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} >= 90}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color black}${endif}|||\
${if_match ${exec amixer get Master | egrep -o "[0-9]+%" | head -1 | egrep -o "[0-9]*"} = 100}\
${if_match "${exec amixer -c 0 get Master | grep Mono: | awk '{print $NF}'}" == "[off]"}${color grey}${else}${color black}${endif}|||\
${else}${color grey}X--${color}${endif}\
${else}${color grey}X-----${color}${endif}\
${else}${color grey}X--------${color}${endif}\
${else}${color grey}X-----------${color}${endif}\
${else}${color grey}X--------------${color}${endif}\
${else}${color grey}X-----------------${color}${endif}\
${else}${color grey}X--------------------${color}${endif}\
${else}${color grey}X-----------------------${color}${endif}\
${else}${color grey}X--------------------------${color}${endif}\
${else}${color grey}X-----------------------------${color}${endif}\
${else}${color grey}---------------------------------${color}${endif}\
${font}\
${color1}${alignr}${exec amixer get Master -M | grep -om 1 "[[:digit:]]*%"} \
${exec amixer get Master -c 0 | grep Mono: | awk '{print $(NF-3)}'}dB
#${alignr}${if_match ${mixer}<10}  ${mixer}${else}${if_match ${mixer}<100} ${mixer}${else}${mixer}${endif}${endif}%
#
${voffset -9}${color3}${stippled_hr}
#
#
#
#
#
#
#
#
# part 07 internet
#
#
${voffset -3}${color2}${font Liberation Sans Narrow:size=8}Internet \
${color1}${if_match "${gw_iface}" == "(null)"}${color grey}● ${color1}OffLine${else}${color green}● ${color1}OnLine${endif}\
${color2} Devices: ${color1}${gw_iface}\
#
${color2}${alignr} IP ext.: ${color1}\
#
${if_match "${execpi 3600 wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//';}"!=""}\
${execpi 3600 wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//';}\
${else}\
#
${if_match "${execi 60 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}"!=""}\
${execi 60 wget -q -O - checkip.dyndns.org | sed -e 's/[^[:digit:]\|.]//g'}\
${else}\
#
${if_match "${execi 60 wget -O - -q icanhazip.com}"!=""}\
${execi 60 wget -O - -q icanhazip.com}\
${else}\
#
${if_match "${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}"!=""}\
${exec wget -q -O - checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'}\
${else}\
#
${if_match "${execi 900 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}"!=""}\
${execi 900 wget http://checkip.dyndns.org/ -q -O - | grep -Eo '\<[[:digit:]]{1,3}(\.[[:digit:]]{1,3}){3}\>'}\
${else}\
#
${if_match "${execi 60 wget http://ipinfo.io/ip -qO -}"!=""}\
${execi 60 wget http://ipinfo.io/ip -qO -}\
${else}\
#
#${if_match "${execi 3600 wget -O - http://ip.tupeux.com | tail}"!=""}\
#${execi 3600 wget -O - http://ip.tupeux.com | tail}\
#${else}\
#
#${if_match "${execi 200 wget -O - http://ip.tupeux.com | tail}"!=""}\
#${execi 200 wget -O - http://ip.tupeux.com | tail}\
#${else}\
#
#${if_match "${curl ifconfig.me}"!=""}\
#${curl ifconfig.me}\
#${else}\
#
${endif}${endif}${endif}${endif}${endif}${addr ${gw_iface}}${endif} \
#
#
#
#
#${execi 60 curl ifconfig.co/country}
  ${execi 60 curl ifconfig.co/country-iso} - ${execi 60 curl ifconfig.co/city}
#
#
#
#
#
${color2}Gate/Router: ${color1}${if_gw}${gw_ip}${else}no${endif} \
#
#
#
#
${if_existing /usr/bin/fping}\
${color2}fping: ${color1}\
${exec fping -B 1.0 -t 1000 -i 1 -r 0 -e -c 1 -q 8.8.8.8 2>&1 | awk -F'/' '{print $8}'}ms\
${else}\
${color2}ping: ${color1}\
#${execi 10 ping 8.8.8.8 -c 1  | grep "64 bytes" | cut -f4 -d\=}
${execpi 4 echo "$(ping -W 1 -c 1 8.8.8.8 -q | grep rtt | egrep [0-9]+\.[0-9]+ -o | head -n 2 | tail -n 1)"} ms\
${endif}\
#
#
#
${color2}${alignr}DNS serwer: ${color1}${nameserver} ${color2}Mac Router: ${color1}${exec cat /sys/class/net/$(find /sys/class/net ! -type d | xargs --max-args=1 realpath  | awk -F\/ '/pci/{print $NF}'|head -n 1)/address}\
${font}
#
#
#
#
#
#
#
#
# BAR download and upload ###############
#Avail\
eth0 eth1 eth2 wlan0 wlan1 wlan2 wlan3 vmnet0 vmnet1 usb0 usb1 ppp0 ppp1 mobil enp0s20u2u7 enp0s26f7u1 enp0s29f7u1 enp0s29f7u5 enx000f0075191c ens33 enp3s0 enp4s0 enp5s0 enp5s8 enp63s0 wlp2s0 wlp3s0 wlx9cefd5ff7955 wlx0013ef5007fe tun0 tun1 br0 lo XXX multiple
#${color2}Available device:${color1}\
${if_existing /proc/net/route eth0} eth0 ${else}${endif}\
${if_existing /proc/net/route eth1} eth1 ${else}${endif}\
${if_existing /proc/net/route eth2} eth2 ${else}${endif}\
${if_existing /proc/net/route wlan0} wlan0 ${else}${endif}\
${if_existing /proc/net/route wlan1} wlan1 ${else}${endif}\
${if_existing /proc/net/route wlan2} wlan2 ${else}${endif}\
${if_existing /proc/net/route wlan3} wlan3 ${else}${endif}\
${if_existing /proc/net/route vmnet0} vmnet0 ${else}${endif}\
${if_existing /proc/net/route vmnet1} vmnet1 ${else}${endif}\
${if_existing /proc/net/route usb0} usb0 ${else}${endif}\
${if_existing /proc/net/route usb1} usb1 ${else}${endif}\
${if_existing /proc/net/route ppp0} ppp0 ${else}${endif}\
${if_existing /proc/net/route ppp1} ppp1 ${else}${endif}\
${if_existing /proc/net/route mobil} mobil ${else}${endif}\
${if_existing /proc/net/route enp0s20u2u7} enp0s20u2u7 ${else}${endif}\
${if_existing /proc/net/route enp0s26f7u1} enp0s26f7u1 ${else}${endif}\
${if_existing /proc/net/route enp0s29f7u1} enp0s29f7u1 ${else}${endif}\
${if_existing /proc/net/route enp0s29f7u5} enp0s29f7u5 ${else}${endif}\
${if_existing /proc/net/route enx000f0075191c} enx000f0075191c ${else}${endif}\
${if_existing /proc/net/route ens33} ens33 ${else}${endif}\
${if_existing /proc/net/route enp3s0} enp3s0 ${else}${endif}\
${if_existing /proc/net/route enp4s0} enp4s0 ${else}${endif}\
${if_existing /proc/net/route enp5s0} enp5s0 ${else}${endif}\
${if_existing /proc/net/route enp5s8} enp5s8 ${else}${endif}\
${if_existing /proc/net/route enp63s0} enp63s0 ${else}${endif}\
${if_existing /proc/net/route wlp2s0} wlp2s0 ${else}${endif}\
${if_existing /proc/net/route wlp3s0} wlp3s0 ${else}${endif}\
${if_existing /proc/net/route wlx9cefd5ff7955} wlx9cefd5ff7955 ${else}${endif}\
${if_existing /proc/net/route wlx0013ef5007fe} wlx0013ef5007fe ${else}${endif}\
${if_existing /proc/net/route tun0} tun0 ${else}${endif}\
${if_existing /proc/net/route tun1} tun1 ${else}${endif}\
${if_existing /proc/net/route br0} br0 ${else}${endif}\
${if_existing /proc/net/route lo} lo ${else}${endif}\
${if_existing /proc/net/route XXX} XXX ${else}${endif}\

#
#
#
#
#
${if_existing /proc/net/route eth0}\
${color cyan}\
${upspeedgraph eth0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph eth0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
eth0 \
${alignr}${color2}IP int.: ${color1}\
${addr eth0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed eth0}\
/s \
Σ ${totalup eth0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown eth0} \
${downspeed eth0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route eth1}\
${color cyan}\
${upspeedgraph eth1 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph eth1 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
eth1 \
${alignr}${color2}IP int.: ${color1}\
${addr eth1}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed eth1}\
/s \
Σ ${totalup eth1} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown eth1} \
${downspeed eth1}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route eth2}\
${color cyan}\
${upspeedgraph eth2 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph eth2 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
eth2 \
${alignr}${color2}IP int.: ${color1}\
${addr eth2}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed eth2}\
/s \
Σ ${totalup eth2} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown eth2} \
${downspeed eth2}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route wlan0}\
${color cyan}\
${upspeedgraph wlan0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph wlan0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
wlan0 \
${alignr}${color2}IP int.: ${color1}\
${addr wlan0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed wlan0}\
/s \
Σ ${totalup wlan0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown wlan0} \
${downspeed wlan0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route wlan1}\
${color cyan}\
${upspeedgraph wlan1 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph wlan1 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
wlan1 \
${alignr}${color2}IP int.: ${color1}\
${addr wlan1}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed wlan1}\
/s \
Σ ${totalup wlan1} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown wlan1} \
${downspeed wlan1}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route wlan2}\
${color cyan}\
${upspeedgraph wlan2 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph wlan2 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
wlan2 \
${alignr}${color2}IP int.: ${color1}\
${addr wlan2}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed wlan2}\
/s \
Σ ${totalup wlan2} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown wlan2} \
${downspeed wlan2}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route wlan3}\
${color cyan}\
${upspeedgraph wlan3 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph wlan3 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
wlan3 \
${alignr}${color2}IP int.: ${color1}\
${addr wlan3}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed wlan3}\
/s \
Σ ${totalup wlan3} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown wlan3} \
${downspeed wlan3}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route vmnet0}\
${color cyan}\
${upspeedgraph vmnet0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph vmnet0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
vmnet0 \
${alignr}${color2}IP int.: ${color1}\
${addr vmnet0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed vmnet0}\
/s \
Σ ${totalup vmnet0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown vmnet0} \
${downspeed vmnet0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route vmnet1}\
${color cyan}\
${upspeedgraph vmnet1 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph vmnet1 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
vmnet1 \
${alignr}${color2}IP int.: ${color1}\
${addr vmnet1}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed vmnet1}\
/s \
Σ ${totalup vmnet1} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown vmnet1} \
${downspeed vmnet1}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route usb0}\
${color cyan}\
${upspeedgraph usb0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph usb0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
usb0 \
${alignr}${color2}IP int.: ${color1}\
${addr usb0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed usb0}\
/s \
Σ ${totalup usb0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown usb0} \
${downspeed usb0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route usb1}\
${color cyan}\
${upspeedgraph usb1 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph usb1 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
usb1 \
${alignr}${color2}IP int.: ${color1}\
${addr usb1}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed usb1}\
/s \
Σ ${totalup usb1} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown usb1} \
${downspeed usb1}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route ppp0}\
${color cyan}\
${upspeedgraph ppp0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph ppp0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
ppp0 \
${alignr}${color2}IP int.: ${color1}\
${addr ppp0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed ppp0}\
/s \
Σ ${totalup ppp0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown ppp0} \
${downspeed ppp0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route ppp1}\
${color cyan}\
${upspeedgraph ppp1 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph ppp1 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
ppp1 \
${alignr}${color2}IP int.: ${color1}\
${addr ppp1}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed ppp1}\
/s \
Σ ${totalup ppp1} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown ppp1} \
${downspeed ppp1}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route mobil}\
${color cyan}\
${upspeedgraph mobil 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph mobil 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
mobil \
${alignr}${color2}IP int.: ${color1}\
${addr mobil}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed mobil}\
/s \
Σ ${totalup mobil} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown mobil} \
${downspeed mobil}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enp0s20u2u7}\
${color cyan}\
${upspeedgraph enp0s20u2u7 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enp0s20u2u7 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enp0s20u2u7 \
${alignr}${color2}IP int.: ${color1}\
${addr enp0s20u2u7}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enp0s20u2u7}\
/s \
Σ ${totalup enp0s20u2u7} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enp0s20u2u7} \
${downspeed enp0s20u2u7}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enp0s26f7u1}\
${color cyan}\
${upspeedgraph enp0s26f7u1 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enp0s26f7u1 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enp0s26f7u1 \
${alignr}${color2}IP int.: ${color1}\
${addr enp0s26f7u1}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enp0s26f7u1}\
/s \
Σ ${totalup enp0s26f7u1} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enp0s26f7u1} \
${downspeed enp0s26f7u1}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enp0s29f7u1}\
${color cyan}\
${upspeedgraph enp0s29f7u1 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enp0s29f7u1 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enp0s29f7u1 \
${alignr}${color2}IP int.: ${color1}\
${addr enp0s29f7u1}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enp0s29f7u1}\
/s \
Σ ${totalup enp0s29f7u1} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enp0s29f7u1} \
${downspeed enp0s29f7u1}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enp0s29f7u5}\
${color cyan}\
${upspeedgraph enp0s29f7u5 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enp0s29f7u5 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enp0s29f7u5 \
${alignr}${color2}IP int.: ${color1}\
${addr enp0s29f7u5}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enp0s29f7u5}\
/s \
Σ ${totalup enp0s29f7u5} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enp0s29f7u5} \
${downspeed enp0s29f7u5}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enx000f0075191c}\
${color cyan}\
${upspeedgraph enx000f0075191c 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enx000f0075191c 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enx000f0075191c \
${alignr}${color2}IP int.: ${color1}\
${addr enx000f0075191c}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enx000f0075191c}\
/s \
Σ ${totalup enx000f0075191c} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enx000f0075191c} \
${downspeed enx000f0075191c}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route ens33}\
${color cyan}\
${upspeedgraph ens33 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph ens33 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
ens33 \
${alignr}${color2}IP int.: ${color1}\
${addr ens33}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed ens33}\
/s \
Σ ${totalup ens33} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown ens33} \
${downspeed ens33}\
/s  \
${else}${voffset -13}${endif}
#
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enp3s0}\
${color cyan}\
${upspeedgraph enp3s0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enp3s0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enp3s0 \
${alignr}${color2}IP int.: ${color1}\
${addr enp3s0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enp3s0}\
/s \
Σ ${totalup enp3s0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enp3s0} \
${downspeed enp3s0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enp4s0}\
${color cyan}\
${upspeedgraph enp4s0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enp4s0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enp4s0 \
${alignr}${color2}IP int.: ${color1}\
${addr enp4s0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enp4s0}\
/s \
Σ ${totalup enp4s0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enp4s0} \
${downspeed enp4s0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enp5s0}\
${color cyan}\
${upspeedgraph enp5s0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enp5s0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enp5s0 \
${alignr}${color2}IP int.: ${color1}\
${addr enp5s0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enp5s0}\
/s \
Σ ${totalup enp5s0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enp5s0} \
${downspeed enp5s0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enp5s8}\
${color cyan}\
${upspeedgraph enp5s8 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enp5s8 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enp5s8 \
${alignr}${color2}IP int.: ${color1}\
${addr enp5s8}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enp5s8}\
/s \
Σ ${totalup enp5s8} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enp5s8} \
${downspeed enp5s8}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route enp63s0}\
${color cyan}\
${upspeedgraph enp63s0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph enp63s0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
enp63s0 \
${alignr}${color2}IP int.: ${color1}\
${addr enp63s0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed enp63s0}\
/s \
Σ ${totalup enp63s0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown enp63s0} \
${downspeed enp63s0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route wlp2s0}\
${color cyan}\
${upspeedgraph wlp2s0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph wlp2s0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
wlp2s0 \
${alignr}${color2}IP int.: ${color1}\
${addr wlp2s0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed wlp2s0}\
/s \
Σ ${totalup wlp2s0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown wlp2s0} \
${downspeed wlp2s0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route wlp3s0}\
${color cyan}\
${upspeedgraph wlp3s0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph wlp3s0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
wlp3s0 \
${alignr}${color2}IP int.: ${color1}\
${addr wlp3s0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed wlp3s0}\
/s \
Σ ${totalup wlp3s0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown wlp3s0} \
${downspeed wlp3s0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route wlx9cefd5ff7955}\
${color cyan}\
${upspeedgraph wlx9cefd5ff7955 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph wlx9cefd5ff7955 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
wlx9cefd5ff7955 \
${alignr}${color2}IP int.: ${color1}\
${addr wlx9cefd5ff7955}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed wlx9cefd5ff7955}\
/s \
Σ ${totalup wlx9cefd5ff7955} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown wlx9cefd5ff7955} \
${downspeed wlx9cefd5ff7955}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route wlx0013ef5007fe}\
${color cyan}\
${upspeedgraph wlx0013ef5007fe 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph wlx0013ef5007fe 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
wlx0013ef5007fe \
${alignr}${color2}IP int.: ${color1}\
${addr wlx0013ef5007fe}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed wlx0013ef5007fe}\
/s \
Σ ${totalup wlx0013ef5007fe} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown wlx0013ef5007fe} \
${downspeed wlx0013ef5007fe}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route tun0}\
${color cyan}\
${upspeedgraph tun0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph tun0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
tun0 \
${alignr}${color2}IP int.: ${color1}\
${addr tun0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed tun0}\
/s \
Σ ${totalup tun0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown tun0} \
${downspeed tun0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route tun1}\
${color cyan}\
${upspeedgraph tun1 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph tun1 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
tun1 \
${alignr}${color2}IP int.: ${color1}\
${addr tun1}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed tun1}\
/s \
Σ ${totalup tun1} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown tun1} \
${downspeed tun1}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route br0}\
${color cyan}\
${upspeedgraph br0 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph br0 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
br0 \
${alignr}${color2}IP int.: ${color1}\
${addr br0}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed br0}\
/s \
Σ ${totalup br0} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown br0} \
${downspeed br0}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route lo}\
${color cyan}\
${upspeedgraph lo 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph lo 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
lo \
${alignr}${color2}IP int.: ${color1}\
${addr lo}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed lo}\
/s \
Σ ${totalup lo} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown lo} \
${downspeed lo}\
/s  \
${else}${voffset -13}${endif}
#
#
#
##
#
#
#
#
${if_existing /proc/net/route XXX}\
${color cyan}\
${upspeedgraph XXX 26,188 2510a3 51270f 1}\
${color DeepSkyBlue}${alignr}\
${downspeedgraph XXX 26,188 51270f 1f4f16 1}\
${if_match "${gw_iface}" == "(null)"}  ${voffset -20}${else}${endif}\
${voffset -34}
${color2}  Card/Dev.${color1} \
XXX \
${alignr}${color2}IP int.: ${color1}\
${addr XXX}  
${color1}  Up${color3} ↑▲↑ ${color1}${upspeed XXX}\
/s \
Σ ${totalup XXX} \
${alignr}\
Down${color3} ↓▼↓ ${color1}Σ ${totaldown XXX} \
${downspeed XXX}\
/s  \
${else}${voffset -13}${endif}
#
#
#
#
#
#
#
${voffset 4}\
#
#
#
#
#
${if_existing /proc/net/route wlan0}\
${if_match "${wireless_link_qual_perc wlan0}"!="unk"}${voffset -3}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan0} ${color2}${alignr}Name ESSID: ${color1}${wireless_essid wlan0}
${color2}Signal: ${color1}${wireless_link_qual wlan0}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan0}% \
${color2}Freq: ${color1}${execi 3600 iwconfig wlan0 | grep "Frequency" | cut -d":" -f3 | cut -d" " -f1 |  sed 's#Ghz##'} Ghz\
${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan0}${voffset -2}
${color royalblue}${wireless_link_bar 15 wlan0}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan0} ${color1}${alignc}${exec iwconfig wlan0 | grep ESSID | cut -f1 -d' ' } ${exec iwconfig wlan0 | grep ESSID | cut -f6 -d' ' } ${exec iwconfig wlan0 | grep ESSID | cut -f7 -d' ' } ${color1}${alignr}${wireless_link_qual_perc wlan0} % ${voffset -7}
${else}${voffset -13}${endif}\
${else}${voffset -13}${endif}
#
${if_existing /proc/net/route wlan1}\
${if_match "${wireless_link_qual_perc wlan1}"!="unk"}${voffset -3}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan1} ${color2}${alignr}Name ESSID: ${color1}${wireless_essid wlan1}
${color2}Signal: ${color1}${wireless_link_qual wlan1}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan1}% \
${color2}Freq: ${color1}${execi 3600 iwconfig wlan1 | grep "Frequency" | cut -d":" -f3 | cut -d" " -f1 |  sed 's#Ghz##'} Ghz\
${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan1}${voffset -2}
${color royalblue}${wireless_link_bar 15 wlan1}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan1} ${color1}${alignc}${exec iwconfig wlan1 | grep ESSID | cut -f1 -d' ' } ${exec iwconfig wlan1 | grep ESSID | cut -f6 -d' ' } ${exec iwconfig wlan1 | grep ESSID | cut -f7 -d' ' } ${color1}${alignr}${wireless_link_qual_perc wlan1} % ${voffset -7}
${else}${voffset -13}${endif}\
${else}${voffset -13}${endif}
#
${if_existing /proc/net/route wlan2}\
${if_match "${wireless_link_qual_perc wlan2}"!="unk"}${voffset -3}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan2} ${color2}${alignr}Name ESSID: ${color1}${wireless_essid wlan2}
${color2}Signal: ${color1}${wireless_link_qual wlan2}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan2}% \
${color2}Freq: ${color1}${execi 3600 iwconfig wlan2 | grep "Frequency" | cut -d":" -f3 | cut -d" " -f1 |  sed 's#Ghz##'} Ghz\
${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan2}${voffset -2}
${color royalblue}${wireless_link_bar 15 wlan2}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan2} ${color1}${alignc}${exec iwconfig wlan2 | grep ESSID | cut -f1 -d' ' } ${exec iwconfig wlan2 | grep ESSID | cut -f6 -d' ' } ${exec iwconfig wlan2 | grep ESSID | cut -f7 -d' ' } ${color1}${alignr}${wireless_link_qual_perc wlan2} % ${voffset -7}
${else}${voffset -13}${endif}\
${else}${voffset -13}${endif}
#
${if_existing /proc/net/route wlan3}\
${if_match "${wireless_link_qual_perc wlan3}"!="unk"}${voffset -3}\
${color2}Wireless Lan (Wi-Fi) mode: ${color1}${wireless_mode wlan3} ${color2}${alignr}Name ESSID: ${color1}${wireless_essid wlan3}
${color2}Signal: ${color1}${wireless_link_qual wlan3}% ${alignc}${color2}Max: ${color1}${wireless_link_qual_max wlan3}% \
${color2}Freq: ${color1}${execi 3600 iwconfig wlan3 | grep "Frequency" | cut -d":" -f3 | cut -d" " -f1 |  sed 's#Ghz##'} Ghz\
${alignr}${color2}Wi-Fi AP: ${color1}${wireless_ap wlan3}${voffset -2}
${color royalblue}${wireless_link_bar 15 wlan3}
${voffset -22}${color2} Speed: ${color1}${wireless_bitrate wlan3} ${color1}${alignc}${exec iwconfig wlan3 | grep ESSID | cut -f1 -d' ' } ${exec iwconfig wlan3 | grep ESSID | cut -f6 -d' ' } ${exec iwconfig wlan3 | grep ESSID | cut -f7 -d' ' } ${color1}${alignr}${wireless_link_qual_perc wlan3} % ${voffset -7}
${else}${voffset -13}${endif}\
${else}${voffset -13}${endif}
#
${voffset -16}
#
#
#
#
#
#
#
${if_existing /var/lib/vnstat}\
\
${color2}${font liberation Mono:size=7}Network vnStat:${color1} ${goto 120}Today ${goto 175}Yesterdays ${goto 260}Week ${goto 330}Month
\
\
${if_existing /proc/net/route eth0}\
eth0\
${goto 110}${execi 300 vnstat -i eth0 | grep "today" | awk '{print $8" "substr ($9, 1, 1)}'} \
${goto 180}${execi 300 vnstat -i eth0 | grep "yesterday" | awk '{print $8" "substr ($9, 1, 1)}'} \
${goto 250}${execi 300 vnstat -i eth0 -w | grep "current week" | awk '{print $9" "substr ($10, 1, 1)}'} \
${goto 320}${execi 300 vnstat -i eth0 -m | grep "`date +"%b '%y"`" | awk '{print $9" "substr ($10, 1, 1)}'}\
${else}${voffset -11}${endif}
\
${if_existing /proc/net/route wlan0}\
wlan0\
${goto 110}${execi 300 vnstat -i wlan0 | grep "today" | awk '{print $8" "substr ($9, 1, 1)}'} \
${goto 180}${execi 300 vnstat -i wlan0 | grep "yesterday" | awk '{print $8" "substr ($9, 1, 1)}'} \
${goto 250}${execi 300 vnstat -i wlan0 -w | grep "current week" | awk '{print $9" "substr ($10, 1, 1)}'} \
${goto 320}${execi 300 vnstat -i wlan0 -m | grep "`date +"%b '%y"`" | awk '{print $9" "substr ($10, 1, 1)}'}\
${else}${voffset -11}${endif}
\
${if_existing /proc/net/route wlan1}\
wlan1\
${goto 110}${execi 300 vnstat -i wlan1 | grep "today" | awk '{print $8" "substr ($9, 1, 1)}'} \
${goto 180}${execi 300 vnstat -i wlan1 | grep "yesterday" | awk '{print $8" "substr ($9, 1, 1)}'} \
${goto 250}${execi 300 vnstat -i wlan1 -w | grep "current week" | awk '{print $9" "substr ($10, 1, 1)}'} \
${goto 320}${execi 300 vnstat -i wlan1 -m | grep "`date +"%b '%y"`" | awk '{print $9" "substr ($10, 1, 1)}'}\
${else}${voffset -11}${endif}
\
${if_existing /proc/net/route wlan2}\
wlan2\
${goto 110}${execi 300 vnstat -i wlan2 | grep "today" | awk '{print $8" "substr ($9, 1, 1)}'} \
${goto 180}${execi 300 vnstat -i wlan2 | grep "yesterday" | awk '{print $8" "substr ($9, 1, 1)}'} \
${goto 250}${execi 300 vnstat -i wlan2 -w | grep "current week" | awk '{print $9" "substr ($10, 1, 1)}'} \
${goto 320}${execi 300 vnstat -i wlan2 -m | grep "`date +"%b '%y"`" | awk '{print $9" "substr ($10, 1, 1)}'}\
${else}${voffset -11}${endif}
\
#
${voffset -11}${else}${voffset -11}${endif}
\
${font}\
${color3}${voffset -9}${stippled_hr}
#
#
#
#
#
#
#
# part 08 calendar
#
#
#
#${texeci 300 curl -s wttr.in | sed -n '3,7{s/\d27\[[0-9;]*m//g;s/^..//;s/ *$//;p}'}
${voffset -4}${color2}\
\
\
${font}\
${voffset -1}${offset -3}\
${font DejaVu Sans Mono:size=8}◄►\
${voffset 3}${offset -9}▼\
${offset -6}${voffset -6}▲${font}\
${offset -10}${voffset -1}\
${font xftfont ubuntu condensed Mono:size=13}×${font}\
${offset -5}${voffset -2}\
\
\
${color1}${texeci 300 curl wttr.in/?format="++%l+"}\
${texeci 300 curl wttr.in/?format="++%t" | grep "°C" | cut -d":" -f1 |  sed 's#°C##'|  sed 's#+##'}(\
${texeci 300 curl wttr.in/?format="%f" | grep "°C" | cut -d":" -f1 |  sed 's#°C##'|  sed 's#+##'})°C \
${texeci 300 curl wttr.in/?format="+%h+%w+%p+%P+%uUV+"}\
${alignr}\
${offset 2}${texecpi 300 wget -q -O - wttr.in/?format=%c | sed -e 's/*.* //' -e 's/<.*$//' | cut -c 1-3}\
${offset -1}${texecpi 300 wget -q -O - wttr.in/?format=%c | sed -e 's/*.* //' -e 's/<.*$//' | cut -c 1-3}\
${offset -1}${texecpi 300 curl wttr.in/?format=%c | cut -c 1-3}
${color2}\
Sun ☼${color1}\
${texeci 300 curl wttr.in/?format="++▲%D+++Z┘%z+++%d▼"} \
${alignr}${color2}\
Moon ${color1}\
${texeci 300 curl wttr.in/?format="%m+%Md"}
#
#m ${texecpi 300 curl wttr.in/?format=%m} Moon phase ????????,
#M ${texecpi 300 curl wttr.in/?format=%M} Moon day,
#D ${texecpi 300 curl wttr.in/?format=%D} Dawn ☼,
#S ${texecpi 300 curl wttr.in/?format=%S} Sunrise ☼,
#d ${texecpi 300 curl wttr.in/?format=%d} Dusk ☼,
#s ${texecpi 300 curl wttr.in/?format=%s} Sunset ☼,
#z ${texecpi 300 curl wttr.in/?format=%z} Zenith ☼,
#h ${texecpi 300 curl wttr.in/?format=%h} Humidity,
#f ${texecpi 300 curl wttr.in/?format=%f} Temperature (Feels Like),
#w ${texecpi 300 curl wttr.in/?format=%w} Wind,
#l ${texecpi 300 curl wttr.in/?format=%l} Location,
#p ${texecpi 300 curl wttr.in/?format=%p} Precipitation (mm/3 hours),
#P ${texecpi 300 curl wttr.in/?format=%P} Pressure (hPa),
#c ${texecpi 300 wget -q -O - wttr.in/?format=%c | sed -e 's/*.* //' -e 's/<.*$//' | cut -c 1-3} Weather condition,
#c ${texecpi 300 curl wttr.in/?format=%c} Weather condition,
#C ${texecpi 300 curl wttr.in/?format=%C} Weather condition textual name,
#x ${texecpi 300 curl wttr.in/?format=%x} Weather condition, plain-text symbol,
#u ${texecpi 300 curl wttr.in/?format=%u} UV index (1-12),
#T ${texecpi 300 curl wttr.in/?format=%T} Current time (Sun time),
#Z ${texecpi 300 curl wttr.in/?format=%Z} Local timezone,
#t ${texecpi 300 curl wttr.in/?format=%t} Temperature (Actual),
#X ${texecpi 300 curl wttr.in/London?format="%l:+%c+%t+%m\n"}Y
#
#
#
${voffset 0}${color2}Calendar: \
${font liberation Mono:size=7}${color1}${time %G-%m-%d}\
# part of cod from user "Sector11" (one for you!!!)
${if_match ${time %d} == 01}st${else}\
${if_match ${time %d} == 21}st${else}\
${if_match ${time %d} == 31}st${else}\
${if_match ${time %d} == 02}nd${else}\
${if_match ${time %d} == 22}nd${else}\
${if_match ${time %d} == 03}rd${else}\
${if_match ${time %d} == 23}rd${else}\
th\
${endif}${endif}${endif}${endif}${endif}${endif}${endif}\
#
#
 ${time %H}:${time %M}${blink :}${time %S }\
${if_match ${time %H}<=12}a.m. ${else}${if_match ${time %H}>12}p.m. ${endif}${endif}${time W%V d%j}${font}${alignr}\
${font Liberation Sans Narrow:size=7}\
${time %Z %z} ${execp cat /etc/timezone}${font}
#
#
${font liberation Mono:size=7}${voffset -4}\
# month back xxxxxxxxxxxxxx
${color3}${execpi 900 ncal -bh -m `date +%m` -A-1 -B1 | sed ':a;N;$!ba;s/\n/\${color3}\n${goto 0}/g'}
#
#
#
# month actual xxxxxxxxxxxxxx
${goto 150}${voffset -88}${color2}\
${execi 1800 date +%^B | cut -c1}${execi 1800 date +%B | cut -c2-} ${time %Y}
#${time %B %Y}
\
${goto 132}${voffset 0}\
#
#
#
${color3}\
${if_match "${execp cat /etc/default/locale | grep LANG= | sed 's#LANG=##' | cut -c 4-5}"=="PL"}\
${if_match ${time %u}==1}${color2}Po ${color1}${else}Po ${endif}\
${if_match ${time %u}==2}${color2}Wt ${color1}${else}Wt ${endif}\
${if_match ${time %u}==3}${color2}Śr ${color1}${else}Śr ${endif}\
${if_match ${time %u}==4}${color2}Cz ${color1}${else}Cz ${endif}\
${if_match ${time %u}==5}${color2}Pi ${color1}${else}Pi ${endif}\
${if_match ${time %u}==6}${color2}So ${color1}${else}So ${endif}\
${if_match ${time %u}==7}${color2}Ni ${color1}${else}Ni ${endif}\
${else}\
${if_match "${execp cat /etc/default/locale | grep LANG= | sed 's#LANG=##' | cut -c 4-5}"=="FR"}\
${if_match ${time %u}==1}${color2}Lu ${color1}${else}Lu ${endif}\
${if_match ${time %u}==2}${color2}Ma ${color1}${else}Ma ${endif}\
${if_match ${time %u}==3}${color2}Me ${color1}${else}Me ${endif}\
${if_match ${time %u}==4}${color2}Je ${color1}${else}Je ${endif}\
${if_match ${time %u}==5}${color2}Ve ${color1}${else}Ve ${endif}\
${if_match ${time %u}==6}${color2}Sa ${color1}${else}Sa ${endif}\
${if_match ${time %u}==7}${color2}Di ${color1}${else}Di ${endif}\
${else}\
${if_match ${time %u}==1}${color2}Mo ${color1}${else}Mo ${endif}\
${if_match ${time %u}==2}${color2}Tu ${color1}${else}Tu ${endif}\
${if_match ${time %u}==3}${color2}We ${color1}${else}We ${endif}\
${if_match ${time %u}==4}${color2}Th ${color1}${else}Th ${endif}\
${if_match ${time %u}==5}${color2}Fr ${color1}${else}Fr ${endif}\
${if_match ${time %u}==6}${color2}Sa ${color1}${else}Sa ${endif}\
${if_match ${time %u}==7}${color2}Su ${color1}${else}Su ${endif}\
${endif}${endif}
#
#
#
${color3}${goto 132}${color3}${execpi 900 LAR=`date +%-d`; ncal -bh -A  -B0  | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color2}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${goto 132}/g'}
#
#
#
# month next xxxxxxxxxxxxxx
${voffset -88}${goto 263}${color1}\
${execpi 900 ncal -bh -m `date +%m` -A1 -B-1 | sed ':a;N;$!ba;s/\n/\n${goto 263}/g'}\
${font}
#
${voffset -18}
${font liberation Mono:size=7}${color1}\
${tztime Europe/Greenwich %G-%m-%d %H:%M:%S }\
${if_match ${tztime Europe/Greenwich %H}<=12}a.m.${else}${if_match ${tztime Europe/Greenwich %H}>12}p.m.${endif}${endif}${font}\
${alignr}${font Liberation Sans Narrow:size=7}\
${tztime Europe/Greenwich %Z %z} Time Zone Europe/Greenwich${font}
#
${voffset -10}${color3}${stippled_hr}${voffset -4s}
#
#
#
#
#
#
#
#
#
#
${color2}Btc/USD${color1}${texecpi 300 curl usd.rate.sx/1btc?TFq | cut -c -5} \
${color2}Btc/Eth${color1}${texecpi 300 curl eth.rate.sx/1btc?TFq | cut -c -5} \
${color2}€/USD${color1}${texecpi 300 curl usd.rate.sx/1eur?TFq | cut -c -4} \
${color2}AUD/£${color1}${texecpi 300 wget -q -O - gbp.rate.sx/1aud?TFq | sed -e 's/*.*: //' -e 's/<.*$//'| cut -c -4} \
${color2}100JPY/CNY${color1}${texecpi 300 wget -q -O - cny.rate.sx/100jpy?TFq | sed -e 's/*.*: //' -e 's/<.*$//'| cut -c -4}
#${color2}AUD/£${color1}${texecpi 300 curl gbp.rate.sx/1aud?TFq | cut -c -4} \
#${color2}100JPY/CNY${color1}${texecpi 300 curl cny.rate.sx/100jpy?TFq | cut -c -4}
#
#
#
${voffset -8}${color3}${stippled_hr}${voffset -1}
#
#
#
#
#
#
#
# part 09 ports
#
#
${voffset -3}${color2}Ports connections:${alignr}\
TOR: ${color1}\
${if_match "${exec service tor status | grep 'Active:' | cut -c 12-18}"==""}no\
${else}${color green}\
${exec service tor status | grep 'Active:' | cut -c 12-18}${endif} \
${color2}\
FireWall: ${color1}\
${if_match "${exec ufw status | grep 'Status:' | cut -c 9-}"==""}no\
${else}${color green}\
${exec ufw status | grep 'Status:' | cut -c 9-}${endif} \
${color2}\
VPN: ${color1}\
${if_empty ${exec cat /proc/net/route | grep tun}}no\
${else}${color green}Yes\
${endif}
${color2}All (L+R) ports: ${color1}${tcp_portmon 1 65535 count}${color2}${alignr}Local ports: ${color1}${tcp_portmon 1 1024 count}${color2} Remote ports: ${color1}${tcp_portmon 1025 65535 count}
#
${color2}Local ports connections (max 10):
\
${if_match  "\
${tcp_portmon 1 65535 lip 0}\
"!=""}\
${voffset -12}${else}\
${color2}Local port 0: ${color1}${tcp_portmon 1 65535 lip 0}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 0}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 1}\
"!=""}\
${voffset -12}${else}\
${color2}Local port 1: ${color1}${tcp_portmon 1 65535 lip 1}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 1}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 2}\
"!=""}\
${voffset -12}${else}\
${color2}Local port 2: ${color1}${tcp_portmon 1 65535 lip 2}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 2}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 3}\
"==""}\
${voffset -12}${else}\
${color2}Local port 3: ${color1}${tcp_portmon 1 65535 lip 3}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 3}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 4}\
"==""}\
${voffset -13}${else}\
${color2}Local port 4: ${color1}${tcp_portmon 1 65535 lip 4}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 4}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 5}\
"==""}\
${voffset -13}${else}\
${color2}Local port 5: ${color1}${tcp_portmon 1 65535 lip 5}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 5}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 6}\
"==""}\
${voffset -13}${else}\
${color2}Local port 6: ${color1}${tcp_portmon 1 65535 lip 6}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 6}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 7}\
"==""}\
${voffset -13}${else}\
${color2}Local port 7: ${color1}${tcp_portmon 1 65535 lip 7}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 7}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 8}\
"==""}\
${voffset -13}${else}\
${color2}Local port 8: ${color1}${tcp_portmon 1 65535 lip 8}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 8}\
${endif}
#
${if_match  "\
${tcp_portmon 1 65535 lip 9}\
"==""}\
${voffset -13}${else}\
${color2}Local port 9: ${color1}${tcp_portmon 1 65535 lip 9}${alignr}${color2} Local host: ${color1}${tcp_portmon 1 65535 lhost 9}\
${endif}
#
${color2}Remote ports connections (max 10):
${color2}Port nr ${alignc}| service name |	ip ${alignr}| host name (www)${color1}
\
${if_match  "${tcp_portmon 1 65535 rport 0}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 0}	${alignc}|${tcp_portmon 1 65535 rservice 0}	| ${tcp_portmon 1 65535 rip 0} |${alignr}${tcp_portmon 1 65535 rhost 0}${endif}
${if_match  "${tcp_portmon 1 65535 rport 1}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 1}	${alignc}|${tcp_portmon 1 65535 rservice 1}	| ${tcp_portmon 1 65535 rip 1} |${alignr}${tcp_portmon 1 65535 rhost 1}${endif}
${if_match  "${tcp_portmon 1 65535 rport 2}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 2}	${alignc}|${tcp_portmon 1 65535 rservice 2}	| ${tcp_portmon 1 65535 rip 2} |${alignr}${tcp_portmon 1 65535 rhost 2}${endif}
${if_match  "${tcp_portmon 1 65535 rport 3}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 3}	${alignc}|${tcp_portmon 1 65535 rservice 3}	| ${tcp_portmon 1 65535 rip 3} |${alignr}${tcp_portmon 1 65535 rhost 3}${endif}
${if_match  "${tcp_portmon 1 65535 rport 4}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 4}	${alignc}|${tcp_portmon 1 65535 rservice 4}	| ${tcp_portmon 1 65535 rip 4} |${alignr}${tcp_portmon 1 65535 rhost 4}${endif}
${if_match  "${tcp_portmon 1 65535 rport 5}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 5}	${alignc}|${tcp_portmon 1 65535 rservice 5}	| ${tcp_portmon 1 65535 rip 5} |${alignr}${tcp_portmon 1 65535 rhost 5}${endif}
${if_match  "${tcp_portmon 1 65535 rport 6}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 6}	${alignc}|${tcp_portmon 1 65535 rservice 6}	| ${tcp_portmon 1 65535 rip 6} |${alignr}${tcp_portmon 1 65535 rhost 6}${endif}
${if_match  "${tcp_portmon 1 65535 rport 7}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 7}	${alignc}|${tcp_portmon 1 65535 rservice 7}	| ${tcp_portmon 1 65535 rip 7} |${alignr}${tcp_portmon 1 65535 rhost 7}${endif}
${if_match  "${tcp_portmon 1 65535 rport 8}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 8}	${alignc}|${tcp_portmon 1 65535 rservice 8}	| ${tcp_portmon 1 65535 rip 8} |${alignr}${tcp_portmon 1 65535 rhost 8}${endif}
${if_match  "${tcp_portmon 1 65535 rport 9}"==""}${voffset -12}${else}${tcp_portmon 1 65535 rport 9}	${alignc}|${tcp_portmon 1 65535 rservice 9}	| ${tcp_portmon 1 65535 rip 9} |${alignr}${tcp_portmon 1 65535 rhost 9}${endif}
${voffset -10}\
${color3}${stippled_hr}
#
#
#


.

Last edited by grzegorzdabrowka (2023-01-30 14:48:48)

Offline

#1755 2023-01-27 12:03:02

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

loutch wrote:

Hello

@ S11 tanks , like ceeslans , in  your line i must change

sed '8d'

to

sed '6d' 

in conkyrc  to have the 30 & 31 days.

@+

I didn't notice that.
It is 'probably' because of using "ncal" vs "cal"

You tossed a 2 new flags in there the -j (Julian days) and the -M (Monday start)
But it's the -M flag that requires the use of ncal
July 2023 will look like this:

 27 Jan 23 @ 08:55:56 ~
   $ cal -j 07 2023
         July 2023           
 Su  Mo  Tu  We  Th  Fr  Sa  
                        182  
183 184 185 186 187 188 189  
190 191 192 193 194 195 196  
197 198 199 200 201 202 203  
204 205 206 207 208 209 210  
211 212                      
 
 27 Jan 23 @ 08:59:46 ~
   $ ncal -bjM 07 2023
         July 2023           
 Mo  Tu  We  Th  Fr  Sa  Su  
                    182 183  
184 185 186 187 188 189 190  
191 192 193 194 195 196 197  
198 199 200 201 202 203 204  
205 206 207 208 209 210 211  
212                          
 
 27 Jan 23 @ 09:00:12 ~
   $ 

@loutch - you have been an inspiration for a long time.  It's nice to help you for a change.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1756 2023-01-27 12:44:14

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

grzegorzdabrowka wrote:

Hello World

Hello grzegorzdabrowka.

Already have your conky.  Text is way to small for my eyes.
00-S11-2023-01-27-092132.jpg

/media/5/conky/grzegorzdabrowka.conky
/media/5/conky/grzegorzdabrowka_tweaked.conky

- needed to tweak it to match my system

If you did not change it it still works.
Dystrybution = Distribution or Distro for short  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1757 2023-01-27 13:01:46

grzegorzdabrowka
Member
Registered: 2016-01-03
Posts: 20
Website

Re: Show us your conky

#
#
#
${color3}\
${if_match "${execp cat /etc/default/locale | grep LANG= | sed 's#LANG=##' | cut -c 4-5}"=="PL"}\
${if_match ${time %u}==1}${color2}Po ${color1}${else}Po ${endif}\
${if_match ${time %u}==2}${color2}Wt ${color1}${else}Wt ${endif}\
${if_match ${time %u}==3}${color2}Śr ${color1}${else}Śr ${endif}\
${if_match ${time %u}==4}${color2}Cz ${color1}${else}Cz ${endif}\
${if_match ${time %u}==5}${color2}Pi ${color1}${else}Pi ${endif}\
${if_match ${time %u}==6}${color2}So ${color1}${else}So ${endif}\
${if_match ${time %u}==7}${color2}Ni ${color1}${else}Ni ${endif}\
${else}\
${if_match "${execp cat /etc/default/locale | grep LANG= | sed 's#LANG=##' | cut -c 4-5}"=="FR"}\
${if_match ${time %u}==1}${color2}Lu ${color1}${else}Lu ${endif}\
${if_match ${time %u}==2}${color2}Ma ${color1}${else}Ma ${endif}\
${if_match ${time %u}==3}${color2}Me ${color1}${else}Me ${endif}\
${if_match ${time %u}==4}${color2}Je ${color1}${else}Je ${endif}\
${if_match ${time %u}==5}${color2}Ve ${color1}${else}Ve ${endif}\
${if_match ${time %u}==6}${color2}Sa ${color1}${else}Sa ${endif}\
${if_match ${time %u}==7}${color2}Di ${color1}${else}Di ${endif}\
${else}\
${if_match ${time %u}==1}${color2}Mo ${color1}${else}Mo ${endif}\
${if_match ${time %u}==2}${color2}Tu ${color1}${else}Tu ${endif}\
${if_match ${time %u}==3}${color2}We ${color1}${else}We ${endif}\
${if_match ${time %u}==4}${color2}Th ${color1}${else}Th ${endif}\
${if_match ${time %u}==5}${color2}Fr ${color1}${else}Fr ${endif}\
${if_match ${time %u}==6}${color2}Sa ${color1}${else}Sa ${endif}\
${if_match ${time %u}==7}${color2}Su ${color1}${else}Su ${endif}\
${endif}${endif}
#
#
#

Last edited by grzegorzdabrowka (2023-01-29 17:56:24)

Offline

#1758 2023-01-27 13:11:32

grzegorzdabrowka
Member
Registered: 2016-01-03
Posts: 20
Website

Re: Show us your conky

Sector11 wrote:
grzegorzdabrowka wrote:

Hello World

Hello grzegorzdabrowka.

Already have your conky.  Text is way to small for my eyes.
https://i.ibb.co/hHZJKWT/00-S11-2023-01-27-092132.jpg

/media/5/conky/grzegorzdabrowka.conky
/media/5/conky/grzegorzdabrowka_tweaked.conky

- needed to tweak it to match my system

If you did not change it it still works.
Dystrybution = Distribution or Distro for short  smile

I changed everythinks... Screan is from code from old version... Copy new code to /media/5/conky/grzegorzdabrowka.conky smile

Offline

#1759 2023-01-27 14:17:30

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,010

Re: Show us your conky

grzegorzdabrowka wrote:

I changed everythinks... Screan is from code from old version... Copy new code to /media/5/conky/grzegorzdabrowka.conky smile

Aaaaa well, already did that

/media/5/conky/grzegorzdabrowka3.conky

now to make a:

/media/5/conky/grzegorzdabrowka3.tweaked.conky

to match my system.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1760 2023-01-29 17:35:52

grzegorzdabrowka
Member
Registered: 2016-01-03
Posts: 20
Website

Re: Show us your conky

#
#
#
Challenger for this week "Wind Rose Conky" do your icon
#
#
#

Wind Rose Conky

#
#
#
Wind Rose Conky
#
#
# ↑↓↖↗↘↙→←↔↕►◄▲▼<>Vv^×●○
#
#
##############################
${font DejaVu Sans Mono:size=8}\
XXXXXXXXXXXXX
X     N     X
X           X
X W   ×   E X
X           X
X     S     X
XXXXXXXXXXXXX
${font}\
#
${font DejaVu Sans Mono:size=8}${voffset -78}\
  NW  N  NE
      ▲      
  W ◄   ► E  
      ▼      
  SW  S  SE${font}\
#
${voffset -42}${offset -37}\
${font DejaVu Sans Mono:size=25}○${font}\
\
${voffset -24}${offset -22}\
${font DejaVu Sans Mono:size=30}×${font}\
\
${voffset -28}${offset -24}\
${font DejaVu Sans Mono:size=30}+${font}\
\
${font DejaVu Sans Mono:size=8}\
${voffset 30}${offset 21}${color red}${font}X${color1}
##############################

##############################
${font DejaVu Sans Mono:size=8}\
XXXXXXXXXXXXX
X NW  N  NE X
X           X
X W   ×   E X
X           X
X SW  S  SE X
XXXXXXXXXXXXX
${font}\
#
${font DejaVu Sans Mono:size=8}${voffset -78}\
  NW  N  NE
           
  W <   > E
      V    
  SW  S  SE${font}
#
${voffset -56}${offset 29}\
      ${font Liberation Mono:size=12}${voffset 6}${offset -12}^${font}${voffset -6}${offset 3}${font DejaVu Sans Mono:size=8}    X
    <   >    
      V      
\
${voffset -41}${offset 29}${font}\
${font DejaVu Sans Mono:size=25}○${font}\
\
${voffset -24}${offset -22}\
${font DejaVu Sans Mono:size=30}×${font}\
\
${voffset -28}${offset -24}\
${font DejaVu Sans Mono:size=30}+${font}\
\
${font DejaVu Sans Mono:size=8}\
${voffset 29}${offset 21}${color red}${font}X${color1}
###############################
#

#
###############################
${font DejaVu Sans Mono:size=8}\
XXXXXXXXX
X       X
X   ×   X
X       X
XXXXXXXXX
${font}\
#
${font DejaVu Sans Mono:size=8}${voffset -52}\
X   N   X
  W × E  
X   S   X
${font}\
${voffset -26}${offset 24}\
\
\
${font}\
${voffset -1}${offset -3}\
${font DejaVu Sans Mono:size=8}◄►\
${voffset 3}${offset -9}▼\
${offset -6}${voffset -6}▲${font}\
${offset -10}${voffset -1}\
${font xftfont ubuntu condensed Mono:size=13}×${font}\
${offset -5}${voffset -2}\
\
\
${font DejaVu Sans Mono:size=8}\
${voffset 26}${offset 18}${color red}X${font}${color1}
###############################
#

#
###############################
${font DejaVu Sans Mono:size=8}\
XXXXXXXXX
X       X
X   ×   X
X       X
XXXXXXXXX
${font}\
#
${font DejaVu Sans Mono:size=8}${voffset -78}
X       X
    N    
  W × E  
    S    
X       X
${font}\
${voffset -39}${offset 25}\
\
\
${font DejaVu Sans Mono:size=8}\
${voffset 0}${offset -4}\
<>\
${font}\
${font DejaVu Sans Mono:size=8}\
${voffset 2}${offset -9}V\
${font}\
${font Liberation Mono:size=10}\
${voffset -4}${offset -7}^\
${font}\
${offset -11}${voffset -5}${font xftfont ubuntu condensed Mono:size=13}×${font}\
${font DejaVu Sans Mono:size=8}\
${offset -5}${voffset -2}\
${font}\
\
\
${font DejaVu Sans Mono:size=8}\
${voffset 26}${offset 18}${color red}${font}X${color1}
##############################
#

Last edited by grzegorzdabrowka (2023-01-30 11:06:04)

Offline

Board footer

Powered by FluxBB