Author Topic: Simple conky clock and network interface  (Read 60 times)

PackRat

  • Posts: 2181
    • View Profile
    • PackRat configs on github
Simple conky clock and network interface
« on: March 29, 2019, 01:07:22 AM »
Simple conky to show time, date and which network interface has ip address:



Code: [Select]
conky.config = {
--#############################################
-- Settings
--#############################################
background = true,
use_xft = true,
font = 'Ubuntu:regular:size=12',
xftalpha = 1.0,
update_interval = 1.0,
-- update_interval_on_battery = 30.0,
total_run_times = 0,

own_window = true,
own_window_colour = '#141414',
own_window_transparent = true,
-- own_window_type = 'dock',
own_window_type = 'desktop' ,
own_window_hints = 'undecorated,below,sticky,skip_taskbar,skip_pager',
own_window_class = 'Conkytzdata',
own_window_title = 'Conkytzdata',
--#############################################
-- Compositing tips:
-- Conky can play strangely when used with
-- different compositors. I have found the
-- following to work well, but your mileage
-- may vary. Comment/uncomment to suit.
--#############################################
--#
-- own_window_argb_visual = true,
-- own_window_argb_value = 2,

--# xcompmgr
-- own_window_argb_visual yes
-- own_window_argb_value 120

--# cairo-compmgr
--own_window_type desktop
--own_window_argb_visual yes
--#############################################

no_buffers = true,
uppercase = false,
cpu_avg_samples = 2,
override_utf8_locale = true,
short_units = true,
imlib_cache_size = 0,
pad_percents = 1,
max_user_text = 3200,
text_buffer_size = 1024,
if_up_strictness = 'address',
-- if_up_strictness = 'up',
double_buffer = true,
draw_shades = false,
draw_outline = false,
draw_borders = false,
draw_graph_borders = false,
border_inner_margin = 1,
border_outer_margin = 1,

-- default_color = '#DAC79C',
default_color = '#010101',
default_shade_color = '#000000',
default_outline_color = '#828282',
color0 = '#FFFFFF',
color1 = '#000000',
color2 = '#FF0000',-- - red
color3 = '#FFFF00',-- - yellow
color4 = '#0000FF',-- - blue
color5 = '#00FF00',-- - green
color6 = '#FFA500',-- - orange
color7 = '#00CDCD',-- - cyan3
color8 = '#FFD700',-- - gold
color9 = '#F00F16',-- - reddish

minimum_width = 400, minimum_height = 0,
maximum_width = 400,
alignment = 'tr',
gap_x = 16,
gap_y = 64,

};

conky.text = [[
${font Inconsolata LGC Markup:regular:size=32}${time %R}${font}
${font Inconsolata LGC Markup:regular:size=16}${time %A %e %B}${font}
${if_up enp2s0}ETH0:${offset 10}${upspeedf}${offset 10}${downspeedf}${endif}
${if_up wlp1s0}Wifi:${offset 10}${wireless_bitrate wlp1s0}${offset 10}${wireless_link_qual_perc wlp1s0}%${endif}
]];
I am tired of talk that comes to nothing.
-- Chief Joseph

...the sun, the darkness, the winds are all listening to what we have to say.
-- Geronimo

VastOne

  •      v-ger
  • Posts: 4181
    • View Profile
    • VSIDO Community
Re: Simple conky clock and network interface
« Reply #1 on: March 29, 2019, 02:32:33 AM »
That is really awesome RatMan.. The following is all I add to the standard VSIDO conky.. I add it because I have multiple machines with the same desktop and sometimes need to know exactly and instantly what machine I am on

Code: [Select]
${color lime green} IP = ${execi 99999 hostname -I}

 



 
VSIDO      VSIDO Twitter     VSIDO FB     VSIDO Google+   

I dev VSIDO

jedi

  • DEFCON 1
  • Posts: 1625
  • Not all those who wander are lost.
    • View Profile
    • NixNut.com
Re: Simple conky clock and network interface
« Reply #2 on: April 01, 2019, 11:14:22 PM »
Action in the Conky thread!  I love it... :)

@PackRat, thanks for the link.  He's got some pretty awesome work!  I might switch back to the lighter side...
Forum Netiquette

"No matter how smart you are you can never convince someone stupid that they are stupid."  Anonymous