You are not logged in.

#121 2016-12-05 08:36:13

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

Re: Conky - Calendars / Clocks / Time

rwyarbrough wrote:

I think I have to look for stuff I can't find when I need it the most (thinking I put it somewhere where I couldn't possibly lose it) at least once a week... I'm seriously looking into some type of disk cataloging program/database where I can make sure all of my drives over all the different systems and external drives I have are included where I can search that database to find stuff...

^ My solution to this problem is, for several years, all my machines have a /DATA partition. This has the vfat file system and is usually about 100GB large.
For new installations this DATA always gets an entry in the fstab in each OS.

If I find new or important things for me by the example of the Conky, then that is stored there in the DATA in the respective directory.
Synchronously keep I  it all with unison, resulting in the same version on the four machines my family
exists.

my 2Cent   wink

Offline

#122 2016-12-05 15:21:19

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

Re: Conky - Calendars / Clocks / Time

rwyarbrough wrote:

Yup, that's the place.  I have the same problem.  In the location bar to the right of the URL I click on the [x] to stop the page from loading for a few seconds, then click on the circular arrow to get it to load.  That works well for me.

I have to do the same with "videos" as well.  Not sure why but not going to complain as it's FREE. 

Sector11 wrote:

I WILL FIND THEM ... I WILL FIND THEM ... I WILL FIND THEM ... I WILL FIND THEM ...
I WILL ... I WILL ... !!!  big_smile

I have all the confidence in the world that you will find them and as awesome as they are - I can wait until you do.

Sector11 wrote:

This is the first time I've not been able to find something.

I think I have to look for stuff I can't find when I need it the most (thinking I put it somewhere where I couldn't possibly lose it) at least once a week... I'm seriously looking into some type of disk cataloging program/database where I can make sure all of my drives over all the different systems and external drives I have are included where I can search that database to find stuff...

hahahahah yea, I will find them they are here someplace.  I don't delete conky stuff.

I've finally given up looking manually for them and doing a search in the terminal:

 05 Dec 16 @ 12:16:01 ~
  $ ftxt crono /media/5>>chronograph.txt
find text in files ie ftxt filepattern path
 
 05 Dec 16 @ 12:17:56 ~
  $ ftxt crono /media/10>>chronograph.txt
find text in files ie ftxt filepattern path
 
 05 Dec 16 @ 12:18:19 ~
  $ ftxt cronog /media/5>>chronograph.txt
find text in files ie ftxt filepattern path
 
 05 Dec 16 @ 12:19:13 ~
  $ ftxt cronog /media/10>>chronograph.txt
find text in files ie ftxt filepattern path
 
 05 Dec 16 @ 12:20:07 ~
  $ 

Now to vet chronograph.txt

You have a PM.  smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#123 2016-12-05 15:38:54

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

Re: Conky - Calendars / Clocks / Time

unklar wrote:

my 2Cent   wink

Great minds think alike.  I have three installs there
sda1 & 2 = #! following Wheezy
sda3 = SWAP - never used
sda5 = a 200GB data partition - all personal stuff (ie: Conky)
sda6 & 7 = a test BL install
sda8 & 9 = this working BL install (stated as the Alpha install)
sda10 = 150GB data partition - general storage area

Every install uses /media/5 and /media/10 - and like you my same conkys are seen by all installs.

That's why I have the first line in my conkys like this:

pkill -xf "conky -c /media/5/Conky/test.conky" &

run them or kill them from anywhere!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#124 2016-12-05 16:11:42

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Conky - Calendars / Clocks / Time

unklar wrote:

My solution to this problem is, for several years, all my machines have a /DATA partition. This has the vfat file system and is usually about 100GB large.
For new installations this DATA always gets an entry in the fstab in each OS.

If I find new or important things for me by the example of the Conky, then that is stored there in the DATA in the respective directory.
Synchronously keep I  it all with unison, resulting in the same version on the four machines my family
exists.

Good idea. I do something similar with my systems - although they still are independent of each other. I create a var/local/data directory on all my systems where I store stuff. I should take that to the next level and create a symbolic link to each system's /var/local/data directory for using the find and grep tools on the system I use as my desktop.

I also have a library/repository of tons of stuff on my main linux file server that I keep splices of code, system elements ( fonts. icons, etc) and of course videos, multimedia, pictures, documents, etc. My problem is that I have many backups from older systems where I've not moved those files from the backup directory to the library/repository. I also have stuff on external USB drives that get added when I'm on the road working that most of the time don't get moved/added to the library.

Speaking to myself "It's called discipline Robert!"

unklar wrote:

my 2Cent   wink

Worth much more than 2 cents! Thank you

Offline

#125 2016-12-05 21:15:29

ohnonot
...again
Registered: 2015-09-29
Posts: 5,592

Re: Conky - Calendars / Clocks / Time

unklar wrote:

all my machines have a /DATA partition. This has the vfat file system and is usually about 100GB large.

a vfat partition that large???
yikes
even usb sticks are factory formatted with ntfs these days...
if you need windows compatibility i'd rather use ntfs.
otherwise, what's keeping you from using ext4.

man filesystems

my 2ct.

Offline

#126 2016-12-05 21:50:57

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

Re: Conky - Calendars / Clocks / Time

^ thank you, ohnonot!

I know that you belong here to the clever masters of the (Finnish) nation. wink

Offline

#127 2016-12-07 01:21:51

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

Re: Conky - Calendars / Clocks / Time

A modified easysid mechanical clock ... I know he's here,  easysid - you do great stuff Thank you!
cupXqC7Y.jpg - Conky_AI.jpg wallpaper if anyone is interested (1920x1080)
Now that's a steampunk clock!!

MechClock.tar.gz - 7.54 MB Has all my 'test' images as well

conkyrc_clock

# killall conky && conky -q -c /media/5/Conky/easysid/MechClock/conkyrc_clock &
# pkill -xf "conky -q -c /media/5/Conky/easysid/MechClock/conkyrc_clock" &
# clock
# written by easysid
# Sun, 20 Oct 2013 10:44:04 IST

###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal
own_window_transparent yes
own_window_colour gray
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_class Conky
own_window_title easysid Mech Clock

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

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

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

#minimum_size 320 320	### w|h
#maximum_width 320		### w
minimum_size 350 260	### w|h
maximum_width 350		### w

gap_x 45	### l|r
gap_y 26	### u|d

# Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
alignment mm #tr
##################################left#################  End Window Settings  ###
###  Font Settings  #########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Liberation Sans:size=15
xftfont monofur:bold:size=10

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

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

uppercase no

######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes #no # amplifies text if yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

#default_color DCDCDC #220 220 220	Gainsboro
#default_color C0C0C0 #192 192 192 Silver
default_color B0E0E6 #176 224 230 PowderBlue
color0 8FBC8F #143 188 143	DarkSeaGreen
color1 778899 #119 136 153	LightSlateGray
color2 D8BFD8 #216 191 216	Thistle
color3 9ACD32 #154 205  50	YellowGreen
color4 FFA07A #255 160 122	LightSalmon
color5 FFDEAD #255 222 173	NavajoWhite
color6 00BFFF #  0 191 255	DeepSkyBlue
color7 5F9EA0 # 95 158 160	CadetBlue
color8 BDB76B #189 183 107	DarkKhaki
color9 CD5C5C #205  92  92	IndianRed
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 0
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

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

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
#text_buffer_size 1028 ## only use if required - uses resources

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

# change GiB to G and MiB to M
short_units yes

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

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

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

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

#top_name_width 15
##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or it blinks.
##
# lua_load ~/wea_conky/draw_bg.lua
## TEXT
## ${lua conky_draw_bg 10 0 0 0 0 0x000000 0.2}
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
##
## OR Both above TEXT (No composite manager required - no blinking!)
##
# lua_load /media/5/Conky/LUA/draw-bg.lua
# lua_draw_hook_pre draw_bg 50 0 0 0 0 0x000000 0.3
#
# TEXT
#

update_interval 1

# -- Lua load -- #
lua_load /media/5/Conky/easysid/MechClock/fancyclock.lua
lua_draw_hook_pre main

TEXT






${goto 233}${uptime_short}

fancyclock.lua

--[[ fancyclock.lua
lua script for the mechanical clock
Sunday, 20 October 2013 13:55
written by easysid

This program is free software. You are free, infact encouraged, to modify it as you deem fit, and freely distribute.

=====================================
Documentation: fancyclock.lua (Also see README)
=====================================

======= Functions =======

run_gear(t) : Draws the gear using the given file.
draw_clock_hands(t) : Draws the hour and minute hands
draw_seconds(t) : Draws the seconds hand. Does not use images.
put_image(t) : Used to draw static images like clock body. Also, with rotate=true, used by other functions to draw rotated image.

*See the individual functions for params.

======== Images =========
The only important point is use of square images, as it allows for easier manipulation while rotating. See the README for a list of included resources.

Set the IMAGEPATH variable to point to the images used in the script.

]]--

require 'cairo'

-- Set the path to images below.
IMAGEPATH = "/media/5/Conky/easysid/MechClock/images/"


function conky_main()
    if conky_window == nil then return end
    local cs = cairo_xlib_surface_create(conky_window.display,
        conky_window.drawable, conky_window.visual,
            conky_window.width, conky_window.height)
    cr = cairo_create(cs)

    UPDATE_INT = conky_info["update_interval"]
    MAX = math.floor(60/UPDATE_INT)

    -- put gears

--    run_gear({x=220, y=130, scale=1.00, file='gear-9.png', max=400, dir=-1}) --Outer Silver medalion
    run_gear({x=225, y=58, dir=1, max=100, scale=0.5}) -- small left gear
    run_gear({x=195, y=85, file='gear2_50.png', dir=-1, max=150}) -- small gear to the right of above
    run_gear({x=250, y=185, file='gear2_75.png', dir=-1, max=60}) -- 5:30
    run_gear({x=220, y=130, scale=0.80, max=300}) -- centre gear
    run_gear({x=171, y=150, scale=0.60, max=100, dir=-1}) --- little at 8:50 ??
--    run_gear({x=220, y=185, scale=1, max=50, dir=1}) --the big one at 6
    -- clock body
--    put_image({x=220, y=130, file='clockbody2.png', scale=0.5})
    -- clock hands
    draw_clock_hands({x=220, y=130, m_file='5-min_t.png',
    h_file='Hour_Wheel_Hand-2.png'})
    --another gear
    run_gear({x=220, y=130, file='gear21_30.png'})  --little centre gear at second hand
-- The Hour Circle Gear
    run_gear({x=220, y=21, file='Hour_Circle_Gear.png', max=150, dir=-1}) -- Hour Circle
    --seconds hand
    draw_seconds({x=220, y=130, length=97})  --130
    cairo_destroy(cr)
    cairo_surface_destroy(cs)
    cr=nil
end --end main()

function draw_clock_hands(t)
    --[[
This function puts the minute and hour hands.
Parameters: 6
<mandatory>
x, y : coordinates for the images
m_file : image file to use for the minute hand
h_file : image file to use for the hour hand

<optional>
m_scale : scaling factor for minute hand image (default 0.5)
h_scale : scaling factor for hour hand image (default 0.5)
]]--

--    local m_scale = t.m_scale or 1.0
--    local h_scale = t.h_scale or 1.0
    local secs = tonumber(os.date("%S"))
    local minutes = tonumber(os.date("%M"))
    local hours = tonumber(os.date("%I"))
    --calculate the seconds for each
    local msecs = minutes*60 + secs
    local hsecs = hours*60*60 + msecs
    local m_theta = msecs*2*math.pi/3600 - math.pi/2
    local h_theta = hsecs*2*math.pi/43200 - math.pi/2
    -- draw the images
    put_image({x=t.x, y=t.y, file=t.m_file, scale=m_scale, theta=m_theta, rotate=true})
    put_image({x=t.x, y=t.y, file=t.h_file, scale=h_scale, theta=h_theta, rotate=true})
end


function draw_seconds(t)
    --[[
This function draws the seconds hand. It does not use any images. Intead it draws using cairo line and arc.
Paramters: 3 <all mamdatory>
x, y : coordinates of seconds hand
length : length of seconds hand.

In addition to these, the parameter 'r', which is the radius of the circle at the base of seconds hand can be configured in the function itself.
]]--

    local R = t.length
    local r = 1 -- the radius of the small circle of seconds hand

    local updates = tonumber(conky_parse("${updates}"))
    local time = os.date('*t')
    if not up then up = updates- math.floor(time.sec/UPDATE_INT) end
    local value = (updates-up)%MAX
    local theta = value*2*math.pi/MAX - math.pi/2
    local x = t.x + R*math.cos(theta)
    local y = t.y + R*math.sin(theta)
    cairo_set_line_width(cr, 2)
    cairo_set_source_rgba (cr, rgba_to_r_g_b_a({0xbb0408, 1}))
    cairo_arc(cr, t.x, t.y, r, 0, 2*math.pi)
    cairo_fill(cr)
    cairo_move_to(cr, t.x, t.y)
    cairo_line_to(cr, x,y)
    cairo_stroke(cr)
end --end draw_rolex


function run_gear(t)
    --[[
Function to draw the gears.
Parameters: 7
<mandatory>
x, y : image coords.
<optional>
file : image file to use (default 'gear1.png')
max : maximum value for rotation. Note that higher values result in slower rotation. A good value is 300. (default MAX)
dir : Direction of rotation. 1-clockwise, -1 anti. (default 1)
scale : scaling factor. (default 1)
tick (boolean): whether to mimic a tick or go smooth. Do not pass this arg if you want the smooth sweep.
]]--

    local file = t.file or 'gear1.png'
    local max = t.max or MAX
    local dir = t.dir or 1
    local scale = t.scale or 1
    local tick = t.tick or false
    if tick then
        local arg = t.arg or "${time %S}"
        value = tonumber(conky_parse(arg))
    else
        local updates = tonumber(conky_parse("${updates}"))
        value = updates%max
    end
    local theta = dir*value*2*math.pi/max - math.pi/2
    put_image({x=t.x, y=t.y, file=file, theta=theta, scale=scale, rotate=true})
end


function put_image(t)
    --[[
function to put the images and rotate them.
Params:
<mandatory>
x,y : coords
file : image file
<optional>
scale : scaling factor (default 1)
rotate (boolean): when set to true, rotates the image by angle theta
theta : angle to rotate the image by. Required if rotate is true
]]--

    local scale = t.scale or 1
    local image = cairo_image_surface_create_from_png (IMAGEPATH..t.file);
    local w = cairo_image_surface_get_width (image);
    local h = cairo_image_surface_get_height (image);
    cairo_save(cr)
    cairo_translate (cr, t.x, t.y);
    if t.rotate then cairo_rotate(cr, t.theta) end
    cairo_scale (cr, scale, scale);
    cairo_translate (cr, -0.5*w, -0.5*h);
    cairo_set_source_surface (cr, image, 0, 0);
    cairo_paint (cr);
    cairo_surface_destroy (image);
    cairo_restore(cr)
end


function rgba_to_r_g_b_a(tcolor)
    local color,alpha=tcolor[1],tcolor[2]
    return ((color / 0x10000) % 0x100) / 255.,
        ((color / 0x100) % 0x100) / 255., (color % 0x100) / 255., alpha
end --end rgba

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#128 2016-12-07 01:44:07

rwyarbrough
Member
From: Mesquite, Texas
Registered: 2016-11-26
Posts: 56

Re: Conky - Calendars / Clocks / Time

Sector11 wrote:

Has all my 'test' images as well

Some nice gears in there!

Last edited by rwyarbrough (2016-12-07 01:45:59)

Offline

#129 2016-12-07 02:51:05

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

Re: Conky - Calendars / Clocks / Time

Yea, thank easysid most are his ... I only added a few.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#130 2016-12-18 17:10:03

jamesrleimer
Member
Registered: 2016-12-18
Posts: 6

Re: Conky - Calendars / Clocks / Time

Thank you unklar for your calendar code that actually worked for me. I borrowed

${execp cal | sed s/`echo "\x5f\x08\(.\)\x5f\x08\(.\)"`/'${color red}\1\2${color cyan}'/}

from your Imbcilconkyrc and only changed the color code..
i only wanted one month..but I want to figure out how to do three months..previous month current month and then next month...

Mod Edit: Please use code tags

sorry about that wont happen again

Last edited by jamesrleimer (2016-12-18 19:00:01)

Offline

#131 2016-12-19 20:21:12

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

Re: Conky - Calendars / Clocks / Time

cool  @jamesrleimer

The code is from iMBeCil .

Look at a three-month calendar here. This number 1 should still work.

Offline

#132 2016-12-19 20:38:50

jamesrleimer
Member
Registered: 2016-12-18
Posts: 6

Re: Conky - Calendars / Clocks / Time

ok thanks

Offline

#133 2016-12-19 21:56:02

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

Re: Conky - Calendars / Clocks / Time

@ unklar - I didn't get your "Number 1" working.

@ jamesrleimer - I should have said this earlier:  Welcome to the forums.

I tweaked the 9 month calendar in the first post of this thread and have 2 versions:
2016-12-19_185041_Scrot11.th.jpg

3 months - horizontal

# pkill -xf "conky -c /media/5/Conky/S11_H-3_month_cal.conky" &
# Original by CrunchBang user: iMBeCil
# http://crunchbang.org/forums/viewtopic.php?pid=368592#p368592

###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent no #yes
own_window_hints skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title 3 Month Calendar

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

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

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

minimum_size 480 0  # w|h
maximum_width 480

gap_x 00 	# l|r
gap_y 60 	# u|d

alignment tm
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont monofur:bold:size=11
xftfont fira mono:size=9
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes ##yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color 778899 #LightSlateGray
color0 8FBC8F #DarkSeaGreen
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 DC143C #Crimson
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

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

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

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

update_interval 1
TEXT
${font LED_mono:size=90}${goto 15}${color1}88:88:88${goto 15}${color5}${time %T}${color}${font}
${hr}
${goto 10}${execpi 900 ncal -bh -m `date +%m` -A-1 -B1 | sed ':a;N;$!ba;s/\n/\n${goto 10}/g'}
${voffset -120}${goto 170}      ${color5}${time %b %Y}${color}
${goto 175}${if_match "${time %a}" == "Sun"}${color5}Su${color} Mo Tu We Th Fr Sa${else}\
${if_match "${time %a}" == "Mon"}Su ${color5}Mo${color} Tu We Th Fr Sa${else}\
${if_match "${time %a}" == "Tue"}Su Mo ${color5}Tu${color} We Th Fr Sa${else}\
${if_match "${time %a}" == "Wed"}Su Mo Tu ${color5}We${color} Th Fr Sa${else}\
${if_match "${time %a}" == "Thu"}Su Mo Tu We ${color5}Th${color} Fr Sa${else}\
${if_match "${time %a}" == "Fri"}Su Mo Tu We Th ${color5}Fr${color} Sa${else}\
Su Mo Tu We Th Fr ${color5}Sa${color}${endif}${endif}${endif}${endif}${endif}${endif}
${goto 175}${execpi 900 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color5}&${color}/' | sed ':a;N;$!ba;s/\n/\n${goto 175}/g'}${color}
${voffset -120}${goto 335}${execpi 900 ncal -bh -m `date +%m` -A1 -B-1 | sed ':a;N;$!ba;s/\n/\n${goto 335}/g'}

3 months - vertical

# pkill -xf "conky -c /media/5/Conky/S11_V-3_month_cal.conky" &
# Original by CrunchBang user: iMBeCil
# http://crunchbang.org/forums/viewtopic.php?pid=368592#p368592

###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent no #yes
own_window_hints skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title 3 Months

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

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

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

minimum_size 150 0  # w|h
maximum_width 150

gap_x 00 	# l|r
gap_y 60 	# u|d

alignment tm
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont monofur:bold:size=11
xftfont fira mono:size=9
# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 1.0

# Force UTF8? requires XFT ###
override_utf8_locale yes

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes ##yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

#default_color 778899 #LightSlateGray
default_color FFDEAD #NavajoWhite
#default_color DCDCDC #Gainsboro
color0 8FBC8F #DarkSeaGreen
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 DC143C #Crimson
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
# Boolean value, if true, Conky will be forked to background when started.
background yes

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

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

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

update_interval 1
TEXT
${font LED_mono:size=27}${goto 5}${color1}88:88:88${goto 5}${color5}${time %T}${color}${font}
${alignc}${swapbar 0,100}
${goto 10}${execpi 900 ncal -bh -m `date +%m` -A-1 -B1 | sed ':a;N;$!ba;s/\n/\n${goto 10}/g'}
${alignc}${swapbar 0,100}
${goto 52}${color6}${time %b %Y}${color}
${goto 10}${if_match "${time %a}" == "Sun"}${color6}Su${color} Mo Tu We Th Fr Sa${else}\
${if_match "${time %a}" == "Mon"}Su ${color6}Mo${color} Tu We Th Fr Sa${else}\
${if_match "${time %a}" == "Tue"}Su Mo ${color6}Tu${color} We Th Fr Sa${else}\
${if_match "${time %a}" == "Wed"}Su Mo Tu ${color6}We${color} Th Fr Sa${else}\
${if_match "${time %a}" == "Thu"}Su Mo Tu We ${color6}Th${color} Fr Sa${else}\
${if_match "${time %a}" == "Fri"}Su Mo Tu We Th ${color6}Fr${color} Sa${else}\
Su Mo Tu We Th Fr ${color6}Sa${color}${endif}${endif}${endif}${endif}${endif}${endif}
${goto 10}${execpi 900 LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color6}&${color}/' | sed ':a;N;$!ba;s/\n/\n${goto 10}/g'}${color}
${alignc}${swapbar 0,100}
${goto 10}${execpi 900 ncal -bh -m `date +%m` -A1 -B-1 | sed ':a;N;$!ba;s/\n/\n${goto 10}/g'}

Some OOPSIES! fixed thanks to jamesrleimer - see next post.  Thank you.

Last edited by Sector11 (2016-12-20 00:09:33)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#134 2016-12-19 23:58:22

jamesrleimer
Member
Registered: 2016-12-18
Posts: 6

Re: Conky - Calendars / Clocks / Time

thankyou for the welcome Sector11
in the codes above the horizontal code shows vertical calendar and the vertical code shows horizontal calendar...and the vertical calendar works great.

Offline

#135 2016-12-20 00:10:38

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

Re: Conky - Calendars / Clocks / Time

:8  UPS! :8   Fixed thank you.  Enjoy.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#136 2016-12-20 00:17:17

jamesrleimer
Member
Registered: 2016-12-18
Posts: 6

Re: Conky - Calendars / Clocks / Time

i would upload a screenshot but dont have a hosting site

Offline

#137 2016-12-20 00:23:18

jamesrleimer
Member
Registered: 2016-12-18
Posts: 6

Re: Conky - Calendars / Clocks / Time

here it is signed up for imgbox
http://imgbox.com/PxfoGu6D

Offline

#138 2016-12-20 01:58:37

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

Re: Conky - Calendars / Clocks / Time

One of Bunsen's own, mrneilypops has a free place for images:  https://scrot.moe/  but image box is good too.

Ohhhhh hard on my eyes.  I'm old and have three pair of glasses.  Reading, computer and distance. neutral
Looks like you have everything covered, no wait - missing weather.


We have two weather threads: ohnonot's and Teo's take your pick.
Of course there is the third option:  I'm done!  big_smile


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#139 2017-06-18 16:21:19

ututo
Member
Registered: 2015-09-29
Posts: 326

Re: Conky - Calendars / Clocks / Time

Grey Conky Clock

based on EtlesTeam's Conky Dawana, so all credits go for him. I just made my own clock with Inkscape.

conkyrc:

# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
################################################################################

background no
update_interval 0.5
update_run_times 0
total_run_times 0

cpu_avg_samples 2
net_avg_samples 2

double_buffer yes
no_buffers yes

text_buffer_size 1024
imlib_cache_size 0

own_window yes
own_window_class Conky
own_window_type normal #All options: conky,dock,desktop,normal,override,panel
own_window_transparent yes
own_window_argb_visual yes
own_window_argb_value 120 #Opacity color
own_window_colour ff0000 #Change color bg in this line
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

draw_shades no
draw_borders no
draw_graph_borders no

minimum_size 250 135
maximum_width 250

alignment bottom_right
gap_x 50
gap_y 80

use_xft yes
override_utf8_locale yes
xftfont Mono:size=8
xftalpha 1
uppercase no
use_spacer none

default_color ffffff #D8D8D8
color1 ff0000

lua_load ~/.conky/Grey/scripts/lua/imlib_clock.lua

TEXT
${voffset 24}${offset 150}${font Roboto Condensed:size=12}${color 616161}ARGENTINA${font}
${voffset 2}${offset 150}${font Roboto Condensed:size=12}${color 616161}${time %A}${font}
${voffset 2}${offset 150}${font Roboto Condensed:size=12}${color 616161}${time %e}.${time %m}.${time %Y}${font}
${voffset 2}${offset 150}${font Roboto Condensed:size=12}${color 8D8D8D}${time %I}:${time %M}:${time %S}  ${time %p}${font}
${lua imlib_clock grey 130 71 72}

##======================== Regards, Etles_Team =============================##

lua script:

--[[
Simple clock, written using imlib. Edited by Etles_Team (2016)
Make sure you've installed "imlib2" application in your system if this script doesn't work :) 

To use this script in Conky, Add this command in conkyrc file before (TEXT), Example :

lua_load ~/.conky/Conky-Name/imlib_clock.lua
lua_draw_hook_pre imlib_clock theme

OR you can add this other command to load script in conkyrc after (TEXT), Example :

${lua imlib_clock theme-name 120 100 100}

]]
---------------------------------------------------------------------------------------------------------

require 'imlib2'

image_path = os.getenv ('HOME')..'/.conky/Grey/images/'

function fFreeImage (image)
	imlib_context_set_image(image)
	imlib_free_image ()
end

function fRotateImage (image, arc)
	imlib_context_set_image(image)
	return imlib_create_rotated_image(arc)
end

function fGetImageSize(image)
	imlib_context_set_image(image)
	return imlib_image_get_width(), imlib_image_get_height()
end

function create_clock(theme, arc_s, arc_m, arc_h)

local imgFace =  imlib_load_image(image_path..theme..'/face.png')
local w_img, h_img = fGetImageSize(imgFace)

local imgH =  imlib_load_image(image_path..theme..'/h.png')
local imgHR = fRotateImage (imgH, arc_h)
local w_imgH, h_imgH = fGetImageSize(imgHR)

local imgM =  imlib_load_image(image_path..theme..'/m.png')
local imgMR = fRotateImage (imgM, arc_m)
local w_imgM, h_imgM = fGetImageSize(imgMR)

local imgS =  imlib_load_image(image_path..theme..'/s.png')
local imgSR = fRotateImage (imgS, arc_s)
local w_imgS, h_imgS = fGetImageSize(imgSR)

local imgGlass =  imlib_load_image(image_path..theme..'/glass.png')

local buffer = imlib_create_image(w_img, h_img)
	imlib_context_set_image(buffer)
	imlib_image_set_has_alpha(1)
	imlib_image_clear()

imlib_blend_image_onto_image(imgFace, 1, 0, 0, w_img, h_img, 0, 0, w_img, h_img )

imlib_blend_image_onto_image(imgHR, 1, 0, 0, w_imgH, h_imgH, w_img/2-w_imgH/2, h_img/2-h_imgH/2, w_imgH, h_imgH )

imlib_blend_image_onto_image(imgMR, 1, 0, 0, w_imgM, h_imgM, w_img/2-w_imgM/2, h_img/2-h_imgM/2, w_imgM, h_imgM )

imlib_blend_image_onto_image(imgSR, 1, 0, 0, w_imgS, h_imgS, w_img/2-w_imgS/2-1, h_img/2-h_imgS/2-1, w_imgS, h_imgS )

--imlib_blend_image_onto_image(imgGlass, 1, 70, 70, w_img, h_img, 0, 0, w_img, h_img )

	fFreeImage (imgFace)
	fFreeImage (imgH)
	fFreeImage (imgHR)
	fFreeImage (imgM)
	fFreeImage (imgMR)
	fFreeImage (imgS)
	fFreeImage (imgSR)
	fFreeImage (imgGlass)

	return buffer

end

function conky_imlib_clock(theme,w,x,y)

	if conky_window==nil then return ' ' end

	local w = w or 200
	local x = x or conky_window.width / 2
	local y = y or conky_window.height / 2

	local arc_s = (2 * math.pi / 60) * os.date("%S")
	local arc_m = (2 * math.pi / 60) * os.date("%M") + arc_s / 60
	local arc_h = (2 * math.pi / 12) * os.date("%I") + arc_m / 12

	local buffer = create_clock(theme, arc_s, arc_m, arc_h)
	imlib_context_set_image(buffer)

	imlib_render_image_on_drawable_at_size(
		x-w/2, y-w/2, w, w)

	fFreeImage (buffer)

	return ' '
end
--======================== Regards, Etles_Team ===========================--

Here you have the images: link

This is what you get:
preview.th.png2017-06-18-125819_1920x1080_scrot.th.png

Last edited by ututo (2017-06-18 19:41:00)


BunsenLabs on deviantArt
Don't touch my git!

Offline

#140 2017-06-18 18:46:31

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

Re: Conky - Calendars / Clocks / Time

ututo wrote:

Grey Conky Clock

based on EtlesTeam's Conky Dawana, so all credits go for him. I just made my own clock with Inkscape.

There's a clock in that image?  where?  lol lol
NICE! - the clock I mean ... {cough cough}  smile

Here you have the images: link

I get a blank page.  Dropbox has disabled publick links.

However right click "Copy link location" works with wget in a terminal:

wget https://www.dropbox.com/s/hhevxp58myqse14/GreyConkyClock.tar.gz

Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB