You are not logged in.
ty
Offline
Hi All,
I'm quite new to BunsenLabs but come from a heavy Arch background.
Still setting everything up but thought I'd share this conky so far.
https://cdn.scrot.moe/images/2019/03/17/2019-03-17--1552826098_1366x768_scrot.th.png
noice.
are those icons (spotify, dropbox etc.) clickable?
Offline
noice.
are those icons (spotify, dropbox etc.) clickable?
Quite curious. Wanna know this.
Last edited by linux_user (2019-04-06 19:49:25)
"Blind faith to authority is the greatest enemy of truth."
Offline
Hello
It's rain again & i modify my tech-conky in conky 1.10 (with this version no conky-clic ]:D )
Some image change every 0.1 s & it look good (not like my old version at mageia5)
Have anyone some informations when conky 1.10 read lua-scripts as well as the 1.90 version ???????
Last edited by loutch (2019-04-09 18:30:43)
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
1 ${curl ifconfig.co/ip}| ip
2 ${curl ifconfig.co/country}| country
3 ${curl ifconfig.co/country-iso}| country-iso
4 ${curl ifconfig.co/city}| city
${if_existing /usr/bin/fping}\
${color2}fping: ${color1}\
# ping by 'robson75'
${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}\
# fping by 'kodachi linux'
${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}\
#
# from forum linux mint
${execi 10 ping 8.8.8.8 -c 1 | grep "64 bytes" | cut -f4 -d\=}
Offline
I have here the py-Script of a friend. It shows the US Baseball Championship in the Conky.
lea.py
#!/usr/bin/env python
import os, sys
filename = "http://www.espn.com/mlb/standings | egrep -A19 'American League'"
cmd = os.popen("lynx -nonumbers -dump %s" % filename)
output = cmd.read()
cmd.close()
print output
Unfortunately the edition of the teams is always double behind each other.
Is there a Python expert here who can "hide" the double information ?
Thanks a lot!
Offline
i have no clue why your friend wrapped this in python.
it's really a shell oneliner:
lynx -nonumbers -dump http://www.espn.com/mlb/standings | grep -A19 'American League'
so fixing it is not a python issue.
fwiw, i wouldn't be using lynx but __xmllint__ instead.
I fiddled with this for a while and came up with this:
xmllint --html --xpath "//div[text()='American League']/following::table[2]//text()" http://www.espn.com/mlb/standings 2>/dev/null
does this return the data you need?
Offline
Thanks, ohnonot.
I have no idea.
You're right, I can write the line in the Conky with the same effect.
${execpi 3600 lynx -nonumbers -dump http://www.espn.com/mlb/standings | grep -A19 'American League'}
Nevertheless, I don't know how to cut it out. Teo will tell me that...
Offline
Does anyone have any links to the exchange rate of the dollar, euro, bitcoin, peso, yen, yuan, gold, oil?
And maybe somebody has idea how to make easy chart?
Pleeeeaaase
Last edited by grzegorzdabrowka (2019-04-27 10:23:20)
Offline
this works very well (Bitcoin)
Offline
Question, can the actual thread be searched?
I was searching for a conky which will display the standings of the MLB, NHL, NBA or NFL. I had a conky which did work. It was a Python script which was called. The script pull the information from the ESPN standings sites and did a good job. I wondering if there has been a change in their API.
Does anyone know of a script that will work in a conky. I wasn't getting much from searches on the Google.
Thanks
MX-Linux 18
Offline
It was a Python script which was called. The script pull the information from the ESPN standings sites and did a good job. I wondering if there has been a change in their API.
It should be this change in the Python script in question:
of
filename = "http://scores.espn.go.com/mlb/standings | egrep -A20 'American League'"
to
filename = "http://www.espn.com/mlb/standings | egrep -A20 'American League'"
As ohnonot correctly noticed, no Python script is needed for this.
In the Conky itself this line is enough to get the same result.
${execpi 3600 lynx -nonumbers -dump http://www.espn.com/mlb/standings | grep -A20 'American League'}
The problem is the double display of the results, once the State (?) and once the team.
I don't have a solution yet. Also I do not know myself with the American leagues :8
Offline
Powderjockey wrote:It was a Python script which was called. The script pull the information from the ESPN standings sites and did a good job. I wondering if there has been a change in their API.
It should be this change in the Python script in question:
offilename = "http://scores.espn.go.com/mlb/standings | egrep -A20 'American League'"
to
filename = "http://www.espn.com/mlb/standings | egrep -A20 'American League'"
As ohnonot correctly noticed, no Python script is needed for this.
In the Conky itself this line is enough to get the same result.${execpi 3600 lynx -nonumbers -dump http://www.espn.com/mlb/standings | grep -A20 'American League'}
The problem is the double display of the results, once the State (?) and once the team.
I don't have a solution yet. Also I do not know myself with the American leagues :8
Thanks for the help. Tried all of the changes.
Yes the display is doubled and columns headings are on the wrong end of the chart.
Last edited by Powderjockey (2019-05-02 02:36:20)
MX-Linux 18
Offline
this works very well (Bitcoin)
![]()
thx
EUR/USD ${execpi 300 curl usd.rate.sx/1eur?TFq -s | cut -c 1-5}
BTC/USD ${execi 300 curl usd.rate.sx/1btc?T | cut -c 1-13}
Offline
Here is mine. I had a pretty bloated conky but realized I didn't use most of the info on here, so I decided to purge it and go back to something simple, I added a color condition in the process for the updates and emails lines to turn it red when it is > 0:
Hi Dord,
I'm trying to set up a conky and I like that colored email idea a lot. Could you show me how you do it, please?
Thanks in advance.
Offline
S11-greyclock24.conky
Start/Stop Conky script: ssc-greyclock24.sh
#!/bin/bash
## Original idea by: GrouchyGaijin
## Tweaks by: Stinkeye, arclance & Sector11
## click to start, click to stop
## ssc = Start|Stop|Conky
## does not like ~/ --> USE full path
if
pgrep -f "conky -c /media/5/Conky/S11-greyclock24.conky"
then
pkill -xf "conky -c /media/5/Conky/S11-greyclock24.conky"
else
conky -c /media/5/Conky/S11-greyclock24.conky
fi
/media/5/Conky/S11-greyclock24.conky
## pkill -xf "conky -c /media/5/Conky/S11-greyclock24.conky" &
## 2017-06-25
## ---------- Begin Window Settings
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,below,undecorated
own_window_colour 000000
own_window_class Conky
own_window_title Grey Clock 24 Hrs
gap_x 100
gap_y 100
minimum_size 350 260
maximum_width 0
alignment bl
## ---------- End Window Settings
## ---------- Font Settings
override_utf8_locale yes
use_xft yes
xftfont Roboto Condensed:size=12
xftalpha 1.0
## --------- End Font Settings
## --------- Color Settings
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000
default_color DCDCDC #Gainsboro
color0 C0C0C0 #Silver
color1 778899 #LightSlateGray
color2 FAEBD7 #AntiqueWhite
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 CD5C5C #IndianRed
## ---------- End Color Settings
## ---------- Begin Borders Section
draw_borders no
## Stippled borders?
stippled_borders 5
## border margins
border_inner_margin 0
border_outer_margin 0
## border width
border_width 2
## graph borders
draw_graph_borders yes # no
## default_graph_size 15 40
## ---------- End Borders Secton
## ---------- Begin Miscellaneous Section
background no #yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes
## ---------- End Miscellaneous Section
## ---------- Begin LUA
# lua_load /media/5/Conky/LUA/Grey-clock.lua
# lua_load /media/5/Conky/LUA/greyclock12.lua
lua_load /media/5/Conky/LUA/greyclock24.lua
lua_draw_hook_pre main
## ---------- End LUA
update_interval 1
TEXT
${image /media/5/Conky/images/24HR.png -p 10,10 -s 250x250}
${goto 200}${time %A}
${goto 220}the \
${if_match ${time %d} == 01}${time %dst} ${else}\
${if_match ${time %d} == 21}${time %dst} ${else}\
${if_match ${time %d} == 31}${time %dst} ${else}\
${if_match ${time %d} == 02}${time %dnd} ${else}\
${if_match ${time %d} == 22}${time %dnd} ${else}\
${if_match ${time %d} == 03}${time %drd} ${else}\
${if_match ${time %d} == 23}${time %drd} ${else}${time %dth} \
${endif}${endif}${endif}${endif}${endif}${endif}${endif} day
${goto 235}${time of %B}
${goto 250}${time %Y}
${goto 245}ZULU
${goto 235}${utime %T}
${goto 220}Flight time:
${goto 200}${uptime_short}
/media/5/Conky/LUA/greyclock24.lua
--[[drawing a clock in conkyrc
by mrpeachy - 12 March 2010
tweaked by Sector11 - 2017-06-26
lua_load /path/clock.lua
lua_draw_hook_pre main
TEXT
]]
require 'cairo'
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)
--##############################################################################
-- SETTINGS AREA
--##############################################################################
--12 OR 24
local clock_type=24
--CLOCK SETTINGS
local clock_radius=110
local clock_centerx=136
local clock_centery=137
-- SET MARKS ### NOT BEING USED
--how many marks around edge
local number_marks=0 -- 0 for none, 60 for seconds 12 = am/pm or 24
--set mark length
local m_length=10
--set mark line width
local m_width=1
--set mark line cap type
local m_cap=CAIRO_LINE_CAP_ROUND
--set mark color and alpha,red blue green alpha
local mr,mg,mb,ma=1,1,1,1 --opaque white
--SET BORDER OPTIONS ### NOT BEING USED
local clock_border_width=0 --2
--set color and alpha for clock border
local cbr,cbg,cbb,cba=1,1,1,1 --full opaque white
--gap from clock border to hour marks
local b_to_m=5
--SECONDS HAND SETUP
--set length of seconds hand
local sh_length=90
--set hand width
local sh_width=1
--set hand line cap
local sh_cap=CAIRO_LINE_CAP_ROUND
--set seconds hand color
local shr,shg,shb,sha=1,0,0,1 --fully opaque red
--local shr,shg,shb,sha=1,1,0,1 --fully opaque yellow
--MINUTE HAND SETUP
--set length of minutes hand
local mh_length=80
--set hand width
local mh_width=2
--set hand line cap
local mh_cap=CAIRO_LINE_CAP_ROUND
--set minute hand color
local mhr,mhg,mhb,mha=0.6,0.6,0.6,1 --fully opaque grey
--HOUR HAND SETUP
--set length of hour hand
local hh_length=70
--set hand width
local hh_width=4
--set hand line cap
local hh_cap=CAIRO_LINE_CAP_ROUND
--set hour hand color
local hhr,hhg,hhb,hha=0.6,0.6,0.6,1 --fully opaque grey
--##############################################################################
-- END SETTINGS AREA
--##############################################################################
--DRAWING CODE
--draw border
cairo_set_source_rgba (cr,cbr,cbg,cbb,cba)
cairo_set_line_width (cr,clock_border_width)
cairo_arc (cr,clock_centerx,clock_centery,clock_radius,0,2*math.pi)
cairo_stroke (cr)
--DRAW MARKS
--stuff that can be moved outside of the loop, needs only be set once
--calculate end and start radius for marks
m_end_rad=clock_radius-b_to_m
m_start_rad=m_end_rad-m_length
--set line cap type
cairo_set_line_cap (cr, m_cap)
--set line width
cairo_set_line_width (cr,m_width)
--set color and alpha for marks
cairo_set_source_rgba (cr,mr,mg,mb,ma)
--start for loop
for i=1,number_marks do
--drawing code using the value of i to calculate degrees
--calculate start point for 12 oclock mark
radius=m_start_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set start point for line
cairo_move_to (cr,clock_centerx+x,clock_centery+y)
--calculate end point for 12 oclock mark
radius=m_end_rad
point=(math.pi/180)*((i-1)*(360/number_marks))
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--set path for line
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--draw the line
cairo_stroke (cr)
end--of for loop
--TIME CALCULATIONS ###########################
if clock_type==12 then
hours=tonumber(os.date("%I")) --12 hour clock
--convert hours to seconds
h_to_s=hours*60*60
elseif clock_type==24 then
hours=tonumber(os.date("%H")) --24 hour clock
--convert hours to seconds
h_to_s=hours*60*60
end
minutes=tonumber(os.date("%M"))
--convert minutes to seconds
m_to_s=minutes*60
--get current seconds
seconds=tonumber(os.date("%S"))
--DRAW HOUR HAND ############################
--convert hours, minutes & seconds to seconds
hsecs=h_to_s+m_to_s+seconds
--calculate number of degrees for each hand per second
hsec_degs=hsecs*(360/(60*60*clock_type)) -- USING AN EQUATION INSTEAD OF TYPING THE CALCULATION IN BECAUSE THE RESULT OF 360/43200 HAS DECIMAL PLACES
--set radius we will use to calculate hand points
radius=hh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*hsec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,hh_width)
cairo_set_source_rgba (cr,hhr,hhg,hhb,hha)
cairo_set_line_cap (cr, hh_cap)
cairo_stroke (cr)
--DRAW MINUTES HAND ############################
--convert minutes & seconds to seconds
msecs=m_to_s+seconds
--calculate degrees for the hand each second
msec_degs=msecs*0.1
--set radius we will use to calculate hand points
radius=mh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of minutes hand
point=(math.pi/180)*msec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,mh_width)
cairo_set_source_rgba (cr,mhr,mhg,mhb,mha)
cairo_set_line_cap (cr, mh_cap)
cairo_stroke (cr)
--DRAW SECOND HAND #############################
--calculate degrees for each second the hand moves
sec_degs=seconds*6
--set radius we will use to calculate hand points
radius=sh_length
--set our starting line coordinates, the center of the circle
cairo_move_to (cr,clock_centerx,clock_centery)
--calculate coordinates for end of second hand
point=(math.pi/180)*sec_degs
x=0+radius*(math.sin(point))
y=0-radius*(math.cos(point))
--describe the line we will draw
cairo_line_to (cr,clock_centerx+x,clock_centery+y)
--set up line attributes and draw line
cairo_set_line_width (cr,sh_width)
cairo_set_source_rgba (cr,shr,shg,shb,sha)
cairo_set_line_cap (cr, sh_cap)
cairo_stroke (cr)
--##############################################################################
cairo_destroy(cr)
cairo_surface_destroy(cs)
cr=nil
end-- end main function
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
^ Nice -
Tweaks by - Stinkeye, arclance .... mrpeachy
Now there's a blast from the past.
You must unlearn what you have learned.
-- yoda
Offline
Hi PackRat, yea, some of that stuff has been around a long time.
You remember any of these guys: mobilediesel, dk75, Crinos512 ?
Debian 12 Beardog, SoxDog and still a Conky 1.9er
Offline
Hi PackRat, yea, some of that stuff has been around a long time.
You remember any of these guys: mobilediesel, dk75, Crinos512 ?
All of them.
dk75 wrote some of the best scripts/code; some amazing stuff.
Last edited by PackRat (2019-06-20 02:23:13)
You must unlearn what you have learned.
-- yoda
Offline
Nostalgia, I don't know what he/she contributed to conky configs. but I miss awebb in particular.
r.i.p. pvsage, xaos52. Rock me Dr. Zaius.
No, he can't sleep on the floor. What do you think I'm yelling for?!!!
Offline