Conky-Spielerei

Dieses Forum ist für allgemeine Diskussionen der Mitglieder über Mageia vorgesehen.

Technische Fragen sollten im Support-Forum gestellt werden, nicht hier!

Re: Conky-Spielerei

Beitragvon unklar » Dez 15th, '15, 12:34

Gestern hat @sector11 ein aktualisiertes Phyton-Script online gestellt, was einen Tagesanzeigefehler im Kalender behebt.
Dies war ihm auf Grund der freundlichen Unterstützung von @xaos52 möglich.
Vielen Dank! :D

Das aktualisierte Script:
Code: Alles auswählen
#!/usr/bin/env python
# by Crinos512
#regex tweaks by xaos52
#https://forums.bunsenlabs.org/viewtopic.php?pid=11683#p11683
import time, calendar, re

localtime = time.localtime(time.time())
calendar.setfirstweekday(calendar.SUNDAY)
#calendar.setfirstweekday(calendar.MONDAY)
cal = calendar.month(localtime[0], localtime[1])

parts = cal.split('\n')
cal = '${color0}${goto 51}' + '\n${goto 51}'.join(parts)
regex = '(?<=\})%s(?= )|(?<= )%s(?= )|(?<=\n)%s(?= )|(?<= )%s(?=\n)|(?<=\})%s(?=\n)' % (localtime[2], localtime[2], localtime[2], localtime[2], localtime[2])
replace = '${color8}%s${color0}' % localtime[2]
newCal = re.sub(regex, replace, cal)
print newCal

Bitte austauschen. ;)
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon unklar » Dez 15th, '15, 12:55

Nr. 7
>>>> Conky-Version 1.10 <<<<


Für alle Freunde der genannten neuen Version des Conky, habe ich hier Teo's Wetter-Script 1b2 mit 5 Konfigurationen
(4 Conky's + 1 Companion) von sector11 "umgewandelt". :D
conky10_1b2.png

Edit: das Paket wurde entfernt

Es war faßt nicht möglich, das alles auf einen "Schirm" zu kriegen. :lol:
Bitte conky10_ vorher entfernen.

Wünsch Euch was!
Zuletzt geändert von unklar am Sep 15th, '16, 12:07, insgesamt 1-mal geändert.
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon unklar » Dez 17th, '15, 22:19

>>>> Conky-Version 1.10 <<<<

Das sind dann alle 6 Conky's (5 + 1 Companion von Sector11, der nicht mehr 'drauf ging) mit deutscher Textausgabe auf der Grundlage von Teo's Wetter-Script 1a.

1aTeo.jpg

Edit: das Paket wurde entfernt
Im Paket ist alles notwendige enthalten und auf Plasma5.5 von KaOS getestet.
Sucht Euch aus, was gefällt, :D weil bald Weihnachten ist. ;)

Wünsch Euch was!
Zuletzt geändert von unklar am Sep 15th, '16, 12:08, insgesamt 1-mal geändert.
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon unklar » Jan 15th, '16, 22:09

>>>> Conky-Version 1.10 <<<<

Salve!

Hier eine Kombination von @Teo's Wetter-Scripte
1b1_accuweather_images und 1c_accuweather_images_hourly
Die Idee hatte @Sector11 mit der Conky-Version1.9 und meine Wenigkeit hat das auf die Vers1.10 umgestellt. ;)

1b1_image_1c_hourly.jpeg

Links die 1b1 mit den folgenden 8 Tagen und rechts die 1c mit einer 14 Stunden-Vorschau.

Inhalt meiner LIESMICH:
Code: Alles auswählen
im Januar 2016

Nach dem entpacken müssen diese 4 Verzeichnisse/Dateien im eigenen /home liegen:

- $HOME/1_pixel_images
- $HOME/1b1_images
- $HOME/1c_hourly
- $HOME/.1b1_images_1c_hourlyconkyrc

Das Verzeichnis font beinhaltet die Schrift monofur.
Wenn man im eigenen $HOME kein verstecktes Verzeichnis .fonts hat, dann kann man das gleich entsprechend umbenennen.
Wenn das versteckte VZ vorhanden ist, dann die Schriftart dort hinein kopieren (manche Distris benutzen auch
$HOME/.locale/share/fonts  ,dann dahin kopieren).
Danach wird man in einer Konsole/Terminal root und setzt den Befehl

code:
# fc-cache -v -f

ab, damit das System mit der Schrift bekannt wird.


Als nächsten Schritt ist ein Browser zu öffnen und auf   www.accuweather.com   der eigene Adress-Code zu ermitteln.
Die Browserzeile ist für die eigene Stadt zu kopieren und in den Scripten 1b1 und 1c einzufügen. Die Alte auskommentieren (#).
Es ist selbsterklärend, wie das aussehen muß.


Dann kann es losgehen.
Ihr öffnet ein erstes Terminal und gebt den Kill-Befehl

code:
pkill -xf "conky -c /home/BENUTZER/.1b1_images_1c_hourlyconkyrc" &

ein (wer keine Conky's auf seinem System laufen hat, kann auch
code:
killall conky
benutzen).

Ihr öffnet ein zweites Terminal (oder teilt das Erste) und gebt dort den Befehl

code:
conky -c ~/.1b1_images_1c_hourlyconkyrc &

ein und führt ihn mit Enter aus.

Gebt den Scripten etwas Zeit zum "einsammeln" und "verteilen" der Daten. In der Regel muß mindestens noch einmal
gekillt und wieder aufgerufen werden, bis die Daten korrekt erscheinen.


Wünsch Euch was.
Enjoy!
@unklar

und schließlich das Paket
Edit: das Paket wurde entfernt

Wie immer, Wünsch Euch was! :D
Zuletzt geändert von unklar am Sep 15th, '16, 12:09, insgesamt 1-mal geändert.
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon unklar » Jan 17th, '16, 17:50

Das ist mit der Kombination 1b1_images_1c_hourly in der conkyV1.10 nicht in Ordnung.
Mir gefällt das nicht, das frißt ständig 15 - 20% CPU.

Schuld daran ist das voreingestellte
Code: Alles auswählen
update_interval = 0.5,
des Conky.
Ich habe das seit gestern mit einer Conky_Version1.9 gegengetestet und halte eine Erhöhung auf 2 Sec. für machbar. Beide Conky-Vs.
zeigen bei mir dann eine cpu-Last im Bereich 3 - 5%.

Weiterhin habe ich eine Update-Zeit der angeforderten Daten eingefügt, was so aussieht
1b1_image_1c_hourly1.jpg
1b1_image_1c_hourly1.jpg (7.92 KiB) 8291-mal betrachtet

und mit einer Ergänzung der Zeile 79 erfolgt.
Code: Alles auswählen
 ${color9}${execi 90 sed -n '29p' $HOME/1b1_images/curr_cond}°${color5}${goto 95}${execi 90 sed -n '1p' $HOME/1c_hourly/aktualisiert}${color}


Das hier ist dann die >>>Conky-Version1.9<<< der .1b1_images_1c_hourlyconkyrc ;)
Code: Alles auswählen
# pkill -xf "conky -c $HOME/1b1_images/1b1_images_1c_hourlyrc" &
# Works perfect: Thu 29 Oct 2015 Sector11 modify unklar 15.01.2016

###  Begin Window Settings  ###
own_window yes
own_window_type normal
own_window_transparent no
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Teo's Accuweather
### ARGB can be used for real transparency - requires composite manager
### Plays hell on conky with images.
own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
own_window_argb_value 125

minimum_size 160 00   # w|h
maximum_width 160

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

alignment tl
###  End Window Settings  ###
###  Font Settings  ###
use_xft yes
xftfont monofur:bold:size=9
xftalpha 1.0
override_utf8_locale yes
###  End Font Settings  ###
###  Color Settings  ###
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #Gainsboro
color0 A9A9A9 #DarkGray
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 FFA07A #LightSalmon
###  End Color Settings  ###
###  Borders Section  ###
# border margins
border_inner_margin 5
border_outer_margin 0
###  End Borders Secton  ###
###  Miscellaneous Section  ###
background yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes
###  End Miscellaneous Section  ###

#${image $HOME/images/red+x.png
#${texeci 1200 bash $HOME/1b1_images/1b1}\
#${texeci 1200 bash $HOME/1c_hourly/1c}\

update_interval 2

TEXT
${texeci 1200 bash $HOME/1b1_images/1b1}\
${texeci 1200 bash $HOME/1c_hourly/1c}\
${image $HOME/1_pixel_images/bk_30.png -p 0,0 -s 160x748}\
 ${color5}Aktuell${color}${image $HOME/1_pixel_images/cyan_1.png -p 75,0 -s 1x748}\
  ${goto 85}Next 14 Std.
 ${color9}${execi 90 sed -n '29p' $HOME/1b1_images/curr_cond}°${color5}${goto 95}${execi 90 sed -n '1p' $HOME/1c_hourly/aktualisiert}${color}
  ${goto 85}${execi 90 sed -n '2p' $HOME/1c_hourly/hourly_raw1}\
${image $HOME/1b1_images/cc.png -p 2,15 -s 70x42}
${image $HOME/1c_hourly/20.png -p 105,37 -s 50x30}\
  ${goto 85}${execi 90 sed -n '52p' $HOME/1c_hourly/hourly_raw1}
      ${color8}±${execi 90 sed -n '30p' $HOME/1b1_images/curr_cond}°${color}\
  ${goto 85}±${execi 90 sed -n '61p' $HOME/1c_hourly/hourly_raw1}
 ${execi 90 sed -n '33p' $HOME/1b1_images/curr_cond}\
  ${goto 82}${membar 0}
 UVI ${execi 90 sed -n '34p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '3p' $HOME/1c_hourly/hourly_raw1}
 HUM ${execi 90 sed -n '32p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '53p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/23.png -p 105,89 -s 50x30}\
 DP  ${execi 90 sed -n '35p' $HOME/1b1_images/curr_cond}°\
  ${goto 85}±${execi 90 sed -n '62p' $HOME/1c_hourly/hourly_raw1}
 Wnd ${execi 90 sed -n '31p' $HOME/1b1_images/curr_cond}\
  ${goto 82}${membar 0}20
 @ ${execi 90 sed -n '38p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '4p' $HOME/1c_hourly/hourly_raw1}
 Vis ${execi 90 sed -n '37p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '54p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/26.png -p 105,141 -s 50x30}\
 Cld ${execi 90 sed -n '36p' $HOME/1b1_images/curr_cond}\
  ${goto 85}±${execi 90 sed -n '63p' $HOME/1c_hourly/hourly_raw1}
 ${color8}S ${execi 90 sed -n '39p' $HOME/1b1_images/curr_cond}${color}\
  ${goto 82}${membar 0}
 ${color8}↓ ${execi 90 sed -n '40p' $HOME/1b1_images/curr_cond}${color}\
  ${goto 85}${execi 90 sed -n '5p' $HOME/1c_hourly/hourly_raw1}
 M ${execi 90 sed -n '41p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 90 sed -n '55p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/29.png -p 105,193 -s 50x30}\
 ↓ ${execi 90 sed -n '42p' $HOME/1b1_images/curr_cond}\
  ${goto 85}±${execi 90 sed -n '64p' $HOME/1c_hourly/hourly_raw1}
 ${color5}${time %a %e %b}${color}\
  ${goto 82}${membar 0}
 ${color9}${execi 90 sed -n '26p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '6p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/tod.png -p 25,232 -s 50x30}\
${image $HOME/1c_hourly/32.png -p 105,245 -s 50x30}\
 ${color8}± ${execi 90 sed -n '27p' $HOME/1b1_images/first_days}${color}\
  ${goto 85}${execi 90 sed -n '56p' $HOME/1c_hourly/hourly_raw1}
 CoP  ${execi 90 sed -n '28p' $HOME/1b1_images/first_days}\
  ${goto 85}±${execi 90 sed -n '65p' $HOME/1c_hourly/hourly_raw1}
 ${color5}Heute Abend${color}  ${goto 82}${membar 0}
 ${color9}${execi 90 sed -n '31p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '7p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/ton.png -p 25,287 -s 50x30}\
${image $HOME/1c_hourly/35.png -p 105,297 -s 50x30}\
 ${color8}± ${execi 90 sed -n '32p' $HOME/1b1_images/first_days}${color}\
  ${goto 85}${execi 90 sed -n '57p' $HOME/1c_hourly/hourly_raw1}
 CoP  ${color}${execi 90 sed -n '33p' $HOME/1b1_images/first_days}\
  ${goto 85}±${execi 90 sed -n '66p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '8p' $HOME/1c_hourly/hourly_raw1}
 ${color9}${execi 90 sed -n '4p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 90 sed -n '58p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/6.png -p 25,350 -s 50x30}\
${image $HOME/1c_hourly/38.png -p 105,349 -s 50x30}\
 ${color7}${execi 90 sed -n '5p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '67p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '9p' $HOME/1c_hourly/hourly_raw1}
 ${color9}${execi 90 sed -n '8p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '59p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/11.png -p 25,400 -s 50x30}\
${image $HOME/1c_hourly/41.png -p 105,401 -s 50x30}\
 ${color7}${execi 90 sed -n '9p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '68p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${color5}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '2p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '13p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '52p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/16.png -p 25,453 -s 50x30}\
${image $HOME/1c_hourly/120.png -p 105,453 -s 50x30}\
 ${color7}${execi 90 sed -n '14p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 90 sed -n '61p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '3p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '9p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '53p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/21.png -p 25,507 -s 50x30}\
${image $HOME/1c_hourly/123.png -p 105,505 -s 50x30}\
 ${color7}${execi 90 sed -n '10p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '62p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '4p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '18p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '54p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_2.png -p 25,560 -s 50x30}\
${image $HOME/1c_hourly/126.png -p 105,557 -s 50x30}\
 ${color7}${execi 90 sed -n '19p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 90 sed -n '64p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '5p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '23p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 90 sed -n '55p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_7.png -p 25,612 -s 50x30}\
${image $HOME/1c_hourly/129.png -p 105,609 -s 50x30}\
 ${color7}${execi 90 sed -n '24p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 90 sed -n '65p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '6p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '14p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 90 sed -n '56p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_12.png -p 25,663 -s 50x30}\
${image $HOME/1c_hourly/132.png -p 105,661 -s 50x30}\
 ${color7}${execi 90 sed -n '15p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '66p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 90 sed -n '7p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 90 sed -n '19p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 90 sed -n '57p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_17.png -p 25,715 -s 50x30}\
${image $HOME/1c_hourly/135.png -p 105,713 -s 50x30}\
 ${color7}${execi 90 sed -n '20p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 90 sed -n '67p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon unklar » Jan 20th, '16, 20:20

Es geht schon noch besser mit der CPU-Last. :D

@Sector11 hat in der vergangenen Nacht in Version1.9 den Conky 1b1_image_1c_hourly wieder in zwei aufgeteilt und mit einem Trick den imlib_cache_size der Conky für die darzustellenden Bilder benutzt.
Mit diesen zwei und weiteren 13 Conky's, Iceweasel und medit auf seinem System, kommt er zu einer Auslastung von
Code: Alles auswählen
0 | 0 | 1 | 0
:shock:

Da ich von Natur aus faul bin, das Verhalten des Conky wollte ich auf Plasma5 sehen, habe ich die Conky nicht getrennt.
In den Verzeichnissen
Code: Alles auswählen
~/1b1_images/Forecast_Images und
~/1c_hourly/Forecast_Images
habe ich die jeweils 40 Bilder mit
Code: Alles auswählen
mogrify -resize 50x30 *.png
ebenfalls auf die 50x30 Größe geschrumpft.

Danach in der Version 1.10 von .1b1_images_1c_hourlyconkyrc das in der "Miscellaneous Section" so umgesetzt
Code: Alles auswählen
--##  Miscellaneous Section  ###
   background = true,
   use_spacer = 'none',
   no_buffers = true,
--imlib_cache_size = 0,
   imlib_cache_flush_interval = 900,
   double_buffer = true,
--##  End Miscellaneous Section  ###

(das Original von Sector11)
Code: Alles auswählen
## ---------- Miscellaneous Section
background yes
use_spacer none
no_buffers yes
# 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  ## <-- here
# Interval (in seconds) to flush Imlib2 cache.
imlib_cache_flush_interval 900  ## <--- and here
double_buffer yes
## ---------- End Miscellaneous Section  ###
und die sed-Aufrufe der execi-Befehle auf 900 Sekunden erhöht.

Jetzt habe ich eine CPU-Last von 0,5 - 1,4 hier: 1 | 1 | 0 | 1 und bin beim
Code: Alles auswählen
update_interval = 2,
geblieben.
test10_2.jpeg


die geänderte .1b1_images_1c_hourlyconkyrc
Code: Alles auswählen
conky.config = {
-- pkill -xf "conky -c /home/unklar/.1b1_images_1c_hourlyconkyrc" &
-- Works perfect: Thu 29 Oct 2015 Sector11 modify unklar 15.01.2016

--##  Begin Window Settings  ###
   own_window = true,
   own_window_type = 'normal',
   own_window_transparent = false,
   own_window_hints = 'undecorated,below,skip_taskbar,skip_pager',
   own_window_colour = '#000000',
   own_window_class = 'Conky',
   own_window_title = 'Teo Accuweather',

--## ARGB can be used for real transparency - requires composite manager
--## Plays hell on conky with images.
        own_window_argb_visual = true,-- Options: yes or no
--## Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
        own_window_argb_value = 95,

   minimum_width = 160, minimum_height = 00,-- w|h
   maximum_width = 160,

   gap_x = 10,-- l|r
   gap_y = 45,-- u|d

   alignment = 'top_left',
--##  End Window Settings  ###

--##  Font Settings  ###
   use_xft = true,
   font = 'monofur:bold:size=9',
   xftalpha = 1.0,
   override_utf8_locale = true,
--##  End Font Settings  ###

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

   default_color = '#DCDCDC',--Gainsboro
   color0 = '#A9A9A9',--DarkGray
   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 = '#FFA07A',--LightSalmon
--##  End Color Settings  ###

--##  Borders Section  ###
-- border margins
   border_inner_margin = 5,
   border_outer_margin = 0,
--##  End Borders Secton  ###

--##  Miscellaneous Section  ###
   background = true,
   use_spacer = 'none',
   no_buffers = true,
--imlib_cache_size = 0,
   imlib_cache_flush_interval = 900,
   double_buffer = true,
--##  End Miscellaneous Section  ###

--${image $HOME/images/red+x.png
--${texeci 1200 bash $HOME/1b1_images/1b1}\
--${texeci 1200 bash $HOME/1c_hourly/1c}\

   update_interval = 2,

};

conky.text = [[
${texeci 1200 bash $HOME/1b1_images/1b1}\
${texeci 1200 bash $HOME/1c_hourly/1c}\
${image $HOME/1_pixel_images/bk_30.png -p 0,0 -s 160x748}\
 ${color5}Aktuell${color}${image $HOME/1_pixel_images/cyan_1.png -p 75,0 -s 1x748}\
  ${goto 85}Next 14 Std.
 ${color9}${execi 900 sed -n '29p' $HOME/1b1_images/curr_cond}°${color5}${goto 95}${execi 900 sed -n '1p' $HOME/1c_hourly/aktualisiert}${color}
  ${goto 85}${execi 900 sed -n '2p' $HOME/1c_hourly/hourly_raw1}\
${image $HOME/1b1_images/cc.png -p 2,15 -s 70x42}
${image $HOME/1c_hourly/20.png -p 105,37 -s 50x30}\
  ${goto 85}${execi 900 sed -n '52p' $HOME/1c_hourly/hourly_raw1}
      ${color8}±${execi 900 sed -n '30p' $HOME/1b1_images/curr_cond}°${color}\
  ${goto 85}±${execi 900 sed -n '61p' $HOME/1c_hourly/hourly_raw1}
 ${execi 900 sed -n '33p' $HOME/1b1_images/curr_cond}\
  ${goto 82}${membar 0}
 UVI ${execi 900 sed -n '34p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '3p' $HOME/1c_hourly/hourly_raw1}
 HUM ${execi 900 sed -n '32p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '53p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/23.png -p 105,89 -s 50x30}\
 DP  ${execi 900 sed -n '35p' $HOME/1b1_images/curr_cond}°\
  ${goto 85}±${execi 900 sed -n '62p' $HOME/1c_hourly/hourly_raw1}
 Wnd ${execi 900 sed -n '31p' $HOME/1b1_images/curr_cond}\
  ${goto 82}${membar 0}20
 @ ${execi 900 sed -n '38p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '4p' $HOME/1c_hourly/hourly_raw1}
 Vis ${execi 900 sed -n '37p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '54p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/26.png -p 105,141 -s 50x30}\
 Cld ${execi 900 sed -n '36p' $HOME/1b1_images/curr_cond}\
  ${goto 85}±${execi 900 sed -n '63p' $HOME/1c_hourly/hourly_raw1}
 ${color8}S ${execi 900 sed -n '39p' $HOME/1b1_images/curr_cond}${color}\
  ${goto 82}${membar 0}
 ${color8}↓ ${execi 900 sed -n '40p' $HOME/1b1_images/curr_cond}${color}\
  ${goto 85}${execi 900 sed -n '5p' $HOME/1c_hourly/hourly_raw1}
 M ${execi 900 sed -n '41p' $HOME/1b1_images/curr_cond}\
  ${goto 85}${execi 900 sed -n '55p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1c_hourly/29.png -p 105,193 -s 50x30}\
 ↓ ${execi 900 sed -n '42p' $HOME/1b1_images/curr_cond}\
  ${goto 85}±${execi 900 sed -n '64p' $HOME/1c_hourly/hourly_raw1}
 ${color5}${time %a %e %b}${color}\
  ${goto 82}${membar 0}
 ${color9}${execi 900 sed -n '26p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '6p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/tod.png -p 25,232 -s 50x30}\
${image $HOME/1c_hourly/32.png -p 105,245 -s 50x30}\
 ${color8}± ${execi 900 sed -n '27p' $HOME/1b1_images/first_days}${color}\
  ${goto 85}${execi 900 sed -n '56p' $HOME/1c_hourly/hourly_raw1}
 CoP  ${execi 900 sed -n '28p' $HOME/1b1_images/first_days}\
  ${goto 85}±${execi 900 sed -n '65p' $HOME/1c_hourly/hourly_raw1}
 ${color5}Heute Abend${color}  ${goto 82}${membar 0}
 ${color9}${execi 900 sed -n '31p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '7p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/ton.png -p 25,287 -s 50x30}\
${image $HOME/1c_hourly/35.png -p 105,297 -s 50x30}\
 ${color8}± ${execi 900 sed -n '32p' $HOME/1b1_images/first_days}${color}\
  ${goto 85}${execi 900 sed -n '57p' $HOME/1c_hourly/hourly_raw1}
 CoP  ${color}${execi 900 sed -n '33p' $HOME/1b1_images/first_days}\
  ${goto 85}±${execi 900 sed -n '66p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '8p' $HOME/1c_hourly/hourly_raw1}
 ${color9}${execi 900 sed -n '4p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 900 sed -n '58p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/6.png -p 25,350 -s 50x30}\
${image $HOME/1c_hourly/38.png -p 105,349 -s 50x30}\
 ${color7}${execi 900 sed -n '5p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '67p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '9p' $HOME/1c_hourly/hourly_raw1}
 ${color9}${execi 900 sed -n '8p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '59p' $HOME/1c_hourly/hourly_raw1}
${image $HOME/1b1_images/11.png -p 25,400 -s 50x30}\
${image $HOME/1c_hourly/41.png -p 105,401 -s 50x30}\
 ${color7}${execi 900 sed -n '9p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '68p' $HOME/1c_hourly/hourly_raw1}
${membar 0}
 ${color5}${color5}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '2p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '13p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '52p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/16.png -p 25,453 -s 50x30}\
${image $HOME/1c_hourly/120.png -p 105,453 -s 50x30}\
 ${color7}${execi 900 sed -n '14p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 900 sed -n '61p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '3p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '9p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '53p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/21.png -p 25,507 -s 50x30}\
${image $HOME/1c_hourly/123.png -p 105,505 -s 50x30}\
 ${color7}${execi 900 sed -n '10p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '62p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '4p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '18p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '54p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_2.png -p 25,560 -s 50x30}\
${image $HOME/1c_hourly/126.png -p 105,557 -s 50x30}\
 ${color7}${execi 900 sed -n '19p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 900 sed -n '64p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '5p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '23p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}${execi 900 sed -n '55p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_7.png -p 25,612 -s 50x30}\
${image $HOME/1c_hourly/129.png -p 105,609 -s 50x30}\
 ${color7}${execi 900 sed -n '24p' $HOME/1b1_images/first_days}°${color}\
  ${goto 85}±${execi 900 sed -n '65p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '6p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '14p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 900 sed -n '56p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_12.png -p 25,663 -s 50x30}\
${image $HOME/1c_hourly/132.png -p 105,661 -s 50x30}\
 ${color7}${execi 900 sed -n '15p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '66p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
 ${color5}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$2" "$3}'`}${color}\
  ${goto 85}${execi 900 sed -n '7p' $HOME/1c_hourly/hourly_raw2}
 ${color9}${execi 900 sed -n '19p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}${execi 900 sed -n '57p' $HOME/1c_hourly/hourly_raw2}
${image $HOME/1b1_images/last_17.png -p 25,715 -s 50x30}\
${image $HOME/1c_hourly/135.png -p 105,713 -s 50x30}\
 ${color7}${execi 900 sed -n '20p' $HOME/1b1_images/last_days}°${color}\
  ${goto 85}±${execi 900 sed -n '67p' $HOME/1c_hourly/hourly_raw2}
${membar 0}
${alignc}${cpu cpu0} | ${cpu cpu1} | ${cpu cpu2} | ${cpu cpu3}
]];

Wie immer, Spaß haben! :D
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon doktor5000 » Jan 20th, '16, 21:38

unklar hat geschrieben:Mit diesen zwei und weiteren 13 Conky's, Iceweasel und medit auf seinem System, kommt er zu einer Auslastung von
Code: Alles auswählen
0 | 0 | 1 | 0
:shock:

Die 4 Zahlen stehen für was genau?

unklar hat geschrieben:Jetzt habe ich eine CPU-Last von 0,5 - 1,4 hier: 1 | 1 | 0 | 1

Auf dem Screenshot ist eine Load average von 0,05 für die letzen 15 Minuten zu sehen, was äußerst niedrig ist. Wie misst du die CPU-Last ?
Ich bin nicht böse, sondern nur ehrlich. Und wer lesen kann, ist klar im Vorteil.
----
Mageia - the magic continues
Benutzeravatar
doktor5000
 
Beiträge: 5940
Registriert: Jun 2nd, '11, 09:39

Re: Conky-Spielerei

Beitragvon unklar » Jan 21st, '16, 11:21

doktor5000 hat geschrieben:Die 4 Zahlen stehen für was genau?

In diesem Fall für 4 Kerne.
Das kann man im Conky darstellen
Code: Alles auswählen
${cpu cpu0} | ${cpu cpu1} | ${cpu cpu2} | ${cpu cpu3}


Auf dem Screenshot ist eine Load average von 0,05 für die letzen 15 Minuten zu sehen, was äußerst niedrig ist. Wie misst du die CPU-Last ?

Habe ich ehrlich gar nicht so gesehen. ;)
Ist rein subjektiv durch beobachten des entsprechenden Pfades in htop.
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon jkowalzik » Jan 24th, '16, 20:45

Hallo!
Würde auch gerne mitspielen, dabei würde mir so etwas vollkommen ausreichen:
Bildschirmfoto.png

Die oberen Zeilen sind natürlich obsolet, nur um zu zeigen woher ich meine Anregung habe.
Gruß
J.
...Luxus ist alles was sich reparieren läßt
Benutzeravatar
jkowalzik
 
Beiträge: 3264
Registriert: Okt 2nd, '11, 12:34
Wohnort: Plettenberg

Re: Conky-Spielerei

Beitragvon alf » Jan 24th, '16, 21:57

Wozu gleich conky, unter KDE gibt's doch ganz hübsche Widgets. Z.B. das hier:
monitor.png
Das Gehirn ist nicht wie Seife, es wird nicht weniger wenn es benutzt wird. -- Lisa Fitz
Benutzeravatar
alf
 
Beiträge: 2427
Registriert: Jun 1st, '11, 13:39
Wohnort: Paderborn

Re: Conky-Spielerei

Beitragvon spice1001 » Jan 25th, '16, 18:41

@alf
und wie nennt sich dieses KDE-Widget?

Gruß
harald
Gib Gates keine Chance!
Benutzeravatar
spice1001
 
Beiträge: 381
Registriert: Jun 4th, '11, 21:00

Re: Conky-Spielerei

Beitragvon alf » Jan 25th, '16, 19:06

"Simple Monitor"

Gruß
Alf
Das Gehirn ist nicht wie Seife, es wird nicht weniger wenn es benutzt wird. -- Lisa Fitz
Benutzeravatar
alf
 
Beiträge: 2427
Registriert: Jun 1st, '11, 13:39
Wohnort: Paderborn

Re: Conky-Spielerei

Beitragvon unklar » Jan 25th, '16, 22:21

jkowalzik hat geschrieben:Würde auch gerne mitspielen, dabei würde mir so etwas vollkommen ausreichen:

Tut mir Leid, nachdem nach Weihnachten bei mir ein Netzteil abgeraucht ist und als "Nachwehen" jetzt noch zwei HDD, die in "Drive Xpert" (Asus Sprachgebrauch) zusammengeschalten waren, stehe ich etwas nackig da. :cry:

Quasi kann ich dir auf die Schnelle nur meine beiden "Arbeits-Conky's_V1.9" anbieten, die aber "nach deinem System" zu konfigurieren wären...
diBar3.jpg

Ist ursprünglich von @agamatrix
BarLua.tar.gz
(152.4 KiB) 218-mal heruntergeladen
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon unklar » Jan 25th, '16, 22:34

oder mein Plasma5-Conky, ursprünglich von @zephyr. ;)
zephyr2.png

Code: Alles auswählen
# http://crunchbanglinux.org/forums/topic/59/my-conky-config/

background yes
use_xft yes
xftfont sans:size=8
xftalpha 1
update_interval 1.0
total_run_times 0
own_window yes
own_window_transparent no
own_window_type normal
own_window_colour 000000
own_window_class Conky
own_window_argb_visual yes
own_window_argb_value 180
own_window_hints below,sticky,skip_taskbar,skip_pager
own_window_title zephyr_conky
double_buffer yes
minimum_size 350 900  # w|h
maximum_width 380
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color 2160b5
default_shade_color black
default_outline_color 2160b5
#alignment top_right
alignment tl
gap_x 20   
gap_y 50

color0 ffffff  #white
color1 144556  #dunkelblue
color2 33b0dc  #hellblue
color3 ff8c00  #dark orange
color4 00ffff  #cain
color5 c0c0c0  #silver
color6 808080  #gray
color7 e6e6fa  #lavender
color8 ff7f50  #coral
color9 b0e0e6  #powderblue

no_buffers yes
uppercase no
cpu_avg_samples 1
net_avg_samples 1
override_utf8_locale yes

TEXT
${color4}${font sans:normal:size=11}cauldron kf5
${color5}Plasma 5.5.3
${color7}$kernel $machine ${image /home/unklar/Bilder/sud.png -p 155,38 -s 50x70}
${color6}${font sans:normal:size=8}Host:${color9}$alignr$nodename
${color6}${font sans:normal:size=8}Uptime:${color9}$alignr$uptime
${color6}${font sans:normal:size=8}File System:${color9}$alignr${fs_type}
${color6}${font sans:normal:size=8}load:${color9}$alignr$loadavg

${color6}${font sans:normal:size=7}CPU1: ${cpu cpu0}%
${color6}${cpubar cpu0}
${color6}${font sans:normal:size=7}CPU2: ${cpu cpu1}%
${color6}${cpubar cpu1}
${color6}${font sans:normal:size=7}CPU3: ${cpu cpu2}%
${color6}${cpubar cpu2}
${color6}${font sans:normal:size=7}CPU4: ${cpu cpu3}%
${color6}${cpubar cpu3}
${font sans:normal:size=7}${color0}${cpugraph cpu0 ffffff ff8c00}
${color5}${font sans:normal:size=8}Cpu-Frequenzy Total:${color9} $alignr${freq cpu0} MHz
${font sans:normal:size=8}${color6}CPU TEMP: $alignr${color0}${execi 60 sensors | grep 'CPU Temperature' | cut -c23-28}
${font sans:normal:size=8}${color2}GPU Temp: $alignr${execi 60 sensors | grep 'temp1' | cut -c16-21}
${font sans:normal:size=8}${color6}MB Temp: $alignr${color0}${execi 600 sensors | grep 'MB Temperature' | cut -c23-28}
${font sans:normal:size=8}${color6}CPU Fan: $alignr${color0}${execi 10 sensors | grep 'CPU FAN Speed' | cut -c21-28}
${font sans:normal:size=8}${color6}POWER Fan: $alignr${color0}${execi 10 sensors | grep 'POWER FAN Speed' | cut -c20-28}
${font sans:normal:size=8}${color6}Chassis Fan1: $alignr${color0}${execi 10 sensors | grep 'CHASSIS1 FAN Speed' | cut -c21-28}
${font sans:normal:size=8}${color6}Chassis Fan2:  $alignr${color0}${execi 10 sensors | grep 'CHASSIS2 FAN Speed' | cut -c21-28}

${color5}${font sans:normal:size=8}MEMORY
${color6}${font sans:normal:size=7}RAM $alignc $mem / $memmax ${color0}$alignr $memperc %
${color6}${font sans:normal:size=7}$membar

${color5}${font sans:normal:size=8}DISKS ${color0}${hr 2}
${font sans:normal:size=7}${color6}sdb: $alignr${color0}${execi 600 /usr/bin/hddtemp /dev/sda | cut -c 24-27}
${font sans:normal:size=8}${color6}sda9: $alignr${color0}${execi 600 /usr/bin/hddtemp /dev/sdb | cut -c34-37}
#${font sans:normal:size=7}${color6}sdc: $alignr${color5}${execi 600 /usr/bin/hddtemp /dev/sdc | cut -c34-37}

${color5}${font sans:normal:size=8}/ $alignc ${fs_used /} / ${fs_size /} $alignr ${fs_used_perc /}%
${color6}${fs_bar /}
${color5}${font sans:normal:size=8}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_used_perc /home}%
${color6}${fs_bar /home}
${color5}${font sans:normal:size=8}DATA $alignc ${fs_used /media/DATEN} / ${fs_size /media/DATEN} $alignr ${fs_used_perc /media/DATEN}%
${color6}${fs_bar /media/DATEN}

${color5}${font sans:normal:size=8}TOP PROCESSES
${color6}${font sans:normal:size=7}${top_mem name 1}${color9}${alignr}${top mem 1} %
${color6}${font sans:normal:size=7}${top_mem name 2}${color9}${alignr}${top mem 2} %
${color6}${font sans:normal:size=7}${top_mem name 3}${color9}${alignr}${top mem 3} %
${color6}${font sans:normal:size=7}${top_mem name 4}${color9}${alignr}${top mem 4} %
${color6}${font sans:normal:size=7}${top_mem name 5}${color9}${alignr}${top mem 5} %

${color5}${font sans:normal:size=8}NETWORK
${color4}${font sans:normal:size=7}${downspeedgraph enp2s0}
${color6}${font sans:normal:size=7}DLS:${downspeed enp2s0} kB/s ${color9}$alignr total: ${totaldown enp2s0}
${color2}${font sans:normal:size=7}${upspeedgraph enp2s0}
${color6}${font sans:normal:size=7}ULS:${upspeed enp2s0} kB/s ${color9}$alignr total: ${totalup enp2s0}

${color6}LAN: $alignr${color1}${addrs enp2s0}
${color6}UID: $alignr${color5}${exec id | cut -c5-8}

${color5}Heise.de
${color4}${rss http://www.heise.de/newsticker/heise.rdf/ 15 item_titles 3 2}
${color8}RTdeutsch.com
${color5}${rss https://deutsch.rt.com/feeds/news 15 item_titles 3 2}


Was ist deine Meinung?
Natürlich halte ich auch Ausschau nach etwas "einfachen", mit Sicherheit kommt da auch was 'rein. :D
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon unklar » Jan 26th, '16, 11:16

Warum denn in die Ferne schweifen...

antix und bunsenlabs bringen im Auslieferungszustand einen Conky mit, beide von mir nur wenig manipuliert. :)
anti14.jpg

Code: Alles auswählen
# set to yes if you want Conky to be forked in the background
background no

short_units yes

cpu_avg_samples 1
net_avg_samples 1

out_to_console no

# X font when Xft is disabled, you can pick one with program xfontsel
#font 7x12
#font 6x10
#font 7x13
 font 8x12
#font 7x12
#font *mintsmild.se*
#font -*-*-*-*-*-*-34-*-*-*-*-*-*-*
#font -artwiz-snap-normal-r-normal-*-*-100-*-*-p-*-iso8859-1

# Use Xft?
use_xft yes

# Xft font when Xft is enabled
#xftfont gentium:size=12
#ftfont DejaVu Sans:size=10
xftfont DejaVu Sans:bold:size=9
#xftfont DejaVu Sans:size=9

# Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
own_window yes
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

# Text alpha when using Xft
xftalpha 1.0

#on_bottom no

# mail spool
#mail_spool $MAIL

# Update interval in seconds
update_interval 1

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 25 25
maximum_width 200

# Draw shades?
draw_shades no

# Draw outlines?
draw_outline no

# Draw borders around text
draw_borders no

# Stippled borders?
stippled_borders 0

# border margins
#border_margin 10

# border width
border_width 2

# Default colors and also border colors
default_color black
default_shade_color white
default_outline_color white

color2 ffffff
color3 ffffff
color4 yellow
color8 77ccff
color9 5599cc

# Text alignment, other possible values are commented
# alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text

gap_x 10
gap_y 20

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer right

# Subtract file system buffers from used memory?
no_buffers yes

# if_up_strictness link:  up | link | address
if_up_strictness address

# set to yes if you want all text to be in uppercase
uppercase no

# boinc (seti) dir
# seti_dir /opt/seti

# Possible variables to be used:
#
#      Variable         Arguments                  Description               
#  acpiacadapter                     ACPI ac adapter state.                   
#  acpifan                           ACPI fan state                           
#  acpitemp                          ACPI temperature.                       
#  adt746xcpu                        CPU temperature from therm_adt746x       
#  adt746xfan                        Fan speed from therm_adt746x             
#  battery           (num)           Remaining capasity in ACPI or APM       
#                                    battery. ACPI battery number can be     
#                                    given as argument (default is BAT0).     
#  buffers                           Amount of memory buffered               
#  cached                            Amount of memory cached                 
#  color             (color)         Change drawing color to color           
#  cpu                               CPU usage in percents                   
#  cpubar            (height)        Bar that shows CPU usage, height is     
#                                    bar's height in pixels                   
#  downspeed         net             Download speed in kilobytes             
#  downspeedf        net             Download speed in kilobytes with one     
#                                    decimal                                 
#  exec              shell command   Executes a shell command and displays   
#                                    the output in torsmo. warning: this     
#                                    takes a lot more resources than other   
#                                    variables. I'd recommend coding wanted   
#                                    behaviour in C and posting a patch :-). 
#  execi             interval, shell Same as exec but with specific interval.
#                    command         Interval can't be less than             
#                                    update_interval in configuration.       
#  fs_bar            (height), (fs)  Bar that shows how much space is used on
#                                    a file system. height is the height in   
#                                    pixels. fs is any file on that file     
#                                    system.                                 
#  fs_free           (fs)            Free space on a file system available   
#                                    for users.                               
#  fs_free_perc      (fs)            Free percentage of space on a file       
#                                    system available for users.             
#  fs_size           (fs)            File system size                         
#  fs_used           (fs)            File system used space                   
#  hr                (height)        Horizontal line, height is the height in
#                                    pixels                                   
#  i2c               (dev), type, n  I2C sensor from sysfs (Linux 2.6). dev   
#                                    may be omitted if you have only one I2C 
#                                    device. type is either in (or vol)       
#                                    meaning voltage, fan meaning fan or temp
#                                    meaning temperature. n is number of the 
#                                    sensor. See /sys/bus/i2c/devices/ on     
#                                    your local computer.                     
#  kernel                            Kernel version                           
#  loadavg           (1), (2), (3)   System load average, 1 is for past 1     
#                                    minute, 2 for past 5 minutes and 3 for   
#                                    past 15 minutes.                         
#  machine                           Machine, i686 for example               
#  mails                             Mail count in mail spool. You can use   
#                                    program like fetchmail to get mails from
#                                    some server using your favourite         
#                                    protocol. See also new_mails.           
#  mem                               Amount of memory in use                 
#  membar            (height)        Bar that shows amount of memory in use   
#  memmax                            Total amount of memory                   
#  memperc                           Percentage of memory in use             
#  new_mails                         Unread mail count in mail spool.         
#  nodename                          Hostname                                 
#  outlinecolor      (color)         Change outline color                     
#  pre_exec          shell command   Executes a shell command one time before
#                                    torsmo displays anything and puts output
#                                    as text.                                 
#  processes                         Total processes (sleeping and running)   
#  running_processes                 Running processes (not sleeping),       
#                                    requires Linux 2.6                       
#  shadecolor        (color)         Change shading color                     
#  stippled_hr       (space),        Stippled (dashed) horizontal line       
#                    (height)       
#  swapbar           (height)        Bar that shows amount of swap in use     
#  swap                              Amount of swap in use                   
#  swapmax                           Total amount of swap                     
#  swapperc                          Percentage of swap in use               
#  sysname                           System name, Linux for example           
#  time              (format)        Local time, see man strftime to get more
#                                    information about format                 
#  totaldown         net             Total download, overflows at 4 GB on     
#                                    Linux with 32-bit arch and there doesn't
#                                    seem to be a way to know how many times 
#                                    it has already done that before torsmo   
#                                    has started.                             
#  totalup           net             Total upload, this one too, may overflow
#  updates                           Number of updates (for debugging)       
#  upspeed           net             Upload speed in kilobytes               
#  upspeedf          net             Upload speed in kilobytes with one       
#                                    decimal                                 
#  uptime                            Uptime                                   
#  uptime_short                      Uptime in a shorter format               
#
#  seti_prog                         Seti@home current progress
#  seti_progbar      (height)        Seti@home current progress bar
#  seti_credit                       Seti@hoome total user credit


## antiX additives examples. Add below Text##
##Battery examples##
##${color}battery: ${color}$acpiacadapter, ${battery_percent BAT1}%
##${color}battery:${color} ${battery}
#${color}ACPI Battery: ${color}$battery
#${battery_bar 11,0}
##Wireless example##
#${color}Wireless:
#${color}essid: ${wireless_essid wlan0}
#${color}IP:${color} ${addr wlan0}
#${color}speed: ${color} ${wireless_bitrate wlan0}
#${color}link strength: ${color} ${wireless_link_bar 7,50 wlan0}

# stuff after 'TEXT' will be formatted on screen

TEXT
${color3}${alignc}antiX 14 systemd
${color8}$alignc${font DejaVu Sans:size=12}${tztime Europe/Berlin +%a.%d.%b %Y} $font
#${color}${alignc}${time %a. %d. %b}
${color3}${alignc}${exec disp=${DISPLAY#:}; disp=${disp%.[0-9]}; cat $HOME/.desktop-session/desktop-code.$disp 2>/dev/null}
${color3}${alignc}${exec xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
${color3}${alignc}$kernel
${color3}${alignc}Uptime: $uptime

${color3}CPU: ${acpitemp}° Fan: ${execi 2 sensors | grep fan1 | cut -c 14-18} ${alignr}${color3}${cpu}${color2}%
${color2}$alignr${cpugraph cpu0 30, 180 5599cc ffffff }
${color3}Disk:${alignr}${color3}${diskio}
${color2}${alignr}${diskiograph 30,180 5599cc ffffff }
${if_up eth1}${color3}eth1 up: $alignr${color3} ${upspeed eth1}
${color2}$alignr${upspeedgraph   eth1 30,180 5599cc ffffff 1000 -l}
${color3}eth1 down: $alignr${color3} ${downspeed eth1}
${color2}$alignr${downspeedgraph eth1 30,180  5599cc ffffff 1000 -l}${endif}
${if_up eth0}${color3}eth0 up: $alignr${color3} ${upspeed eth0}
${color2}$alignr${upspeedgraph   eth0 30,180 5599cc ffffff 1000 -l}
${color3}eth0 down: $alignr${color3} ${downspeed eth0}
${color2}$alignr${downspeedgraph eth0 30,180 5599cc ffffff 1000 -l}${endif}
${color4}${font DejaVu Sans:bold:size=8}ThinkPad X40 ${font DejaVu Sans:bold:size=7}MXSSD1MNANO-60G ${font}
${color}${alignr}${color3}Used / Total
${color}RAM${alignr}$mem ${color3} /${color} $memmax
${color}Swap${alignr}$swap ${color3} /${color} $swapmax
${color}root${alignr}${fs_used /} ${color3} /${color} ${fs_size /}
${color}DATA${alignr}${fs_used /media/DATEN/} ${color3} /${color} ${fs_size /media/DATEN/}
${color3}${alignc}${execi 1000 persist-enabled}
${color green}${alignr}${execi 1000 acpi 2>/dev/null | grep -q . && echo "Batt: "}${execi 10 acpi -b 2>/dev/null | cut -d" " -f3,4 | sed 's/,$//'}${color}


fertigBunsen.png

Code: Alles auswählen
# For commands above TEXT check:
# http://conky.sourceforge.net/config_settings.html
#
# For commands available below TEXT check:
# http://conky.sourceforge.net/variables.html

# Bunsen Labs Conky help threads
# http://crunchbang.org/forums/viewtopic.php?pid=371424#p371424

# beta tested by: smacz
# Enjoy! :)

# pkill -xf "conky -q -c $HOME/.config/conky/BL-Default.conkyrc" &
###  Begin Window Settings  #####################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager,sticky
own_window_colour 000000
own_window_class Conky
own_window_title Bunsen Labs Default Conky

### 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 # Options: yes or no

### 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 50

minimum_size 200 0  ### width | height
maximum_width 200

gap_x 220   ### left | right
gap_y 45   ### up | down

alignment tr
#######################  End Window Settings  ###
###  Font Settings  #############################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Liberation Mono:bold:size=9
#ftfont Liberation Sans:size=9

# 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  ###
###  Colour Settings  ###########################
draw_shades no #yes
default_shade_color 000000

draw_outline no # amplifies text if yes
default_outline_color 000000

#default_color 656667 # Waldorf original colour
#default_color 7a7a7a # Flame  & Bunsen Grey
#default_color 929292 # Labs Grey
default_color C0C0C0 # Silver
color0 B0E0E6 # PowderBlue
color1 778899 # LightSlateGray
color2 D8BFD8 # Thistle
color3 9ACD32 # YellowGreen
color4 FFA07A # LightSalmon
color5 FFDEAD # NavajoWhite
color6 00BFFF # DeepSkyBlue
color7 5F9EA0 # CadetBlue
color8 BDB76B # DarkKhaki
color9 CD5C5C # IndianRed
#######################  End Colour Settings  ###
###  Borders Section  ###########################
draw_borders no
# Stippled borders?
stippled_borders 5
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 2
# graph borders
draw_graph_borders yes #no
#default_graph_size 15 40
#######################  End Borders Section  ###
###  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 6144

# 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

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

# 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

#   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

#################  End Miscellaneous Section  ###
#### ${font Liberation Mono:bold:size=10}${alignc}${execpi 600 $HOME/.config/conky/scripts/bunsenweather.sh}
update_interval 1

TEXT
${color}${alignc}S Y S T E M    I N F O
${hr}
Buenos Aires (RA)${alignr}${tztime America/Argentina/Buenos_Aires %H:%M}
${font Liberation Mono:bold:size=11}${color6}UTC:${color}${alignr}${utime %H:%M}${font}
Lichtenstein (D)${alignr}${tztime Europe/Berlin %H:%M}
Kastoria (GR)${alignr}${tztime Europe/Athens %H:%M}

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

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

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

${alignc}S H O R T C U T    K E Y S
${hr}
[Alt] + F2${alignr}Run Dialog
[Alt] + F3${alignr}Alt Menu
[S] + Space${alignr}Main Menu
[S] + Tab${alignr}Client Menu
[S] + t${alignr}Terminal
[S] + f${alignr}File Manager
[S] + e${alignr}Editor
[S] + m${alignr}Media Player
[S] + w${alignr}Web Browser
[S] + h${alignr}Task Manager
[S] + l${alignr}Lock Screen
[S] + v${alignr}Volume Control
[S] + x${alignr}Logout
[PrtSc]${alignr}Screenshot
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon sector11 » Jan 27th, '16, 00:25

unklar hat geschrieben:Es geht schon noch besser mit der CPU-Last. :D

@Sector11 hat in der vergangenen Nacht in Version1.9 den Conky 1b1_image_1c_hourly wieder in zwei aufgeteilt und mit einem Trick den imlib_cache_size der Conky für die darzustellenden Bilder benutzt.
Mit diesen zwei und weiteren 13 Conky's, Iceweasel und medit auf seinem System, kommt er zu einer Auslastung von
Code: Alles auswählen
0 | 0 | 1 | 0
:shock:


Not entirely true, this is just the two conkys.
Nicht ganz richtig, das ist nur für zwei conkys.
Code: Alles auswählen
0 | 0 | 0 | 1

Bild

Mit diesen zwei und weiteren 13 Conky's, Iceweasel und medit auf seinem System, kommt er zu einer Auslastung von:
Code: Alles auswählen
5 | 3 | 7 | 7

Bild
Immer noch sehr respektabel. - Still very respectable. :)

Ich entschuldige mich für jede Missverständnis.
I apologize for any misunderstanding.

Das Original ist hier: auf Englisch

S11 ;)
sector11
 
Beiträge: 17
Registriert: Dez 4th, '15, 15:57

Re: Conky-Spielerei

Beitragvon unklar » Jan 27th, '16, 13:38

S11 is a very correct man. ;)
Since everyone sees his Conky configurations, where he never the original author forgets.

Thanks for the correction.
This value I can confirm with the "non-differentiated" Conky in version 1.9 here.

S11 ist ein sehr korrekter Mensch.
Da sieht jeder auch an seinen Conky-Konfigurationen, wo er nie
den ursprünglichen Autor vergisst.

Danke für die Richtigstellung.
Diesen Wert kann ich hier mit den "nicht getrennten" Conky in Version 1.9 bestätigen.

Edit: Mußte erst mal ein Bild machen. :D
2a.jpg
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon sector11 » Jan 30th, '16, 21:36

Die Uhr: 1b1 - Accuweather - Images - 1b1_29-10-15
Bild Bild Bild

Bilder gezeigt, sind in Englisch, der Code für deutsche geändert:
Code: Alles auswählen
${font monofur:bold:size=14}${color}${alignc}${if_match ${time %H}>=18}Guten Abend${else}\
${if_match ${time %H}<12}Guten Morgen${else}\
${if_match ${time %H}<18}Guten Tag\
${endif}${endif}${endif}${font}


TheClock.conky (DieUhr.conky)
Code: Alles auswählen
#-- conky -q -c /media/5/Conky/The_Clock.conky &
#-- pkill -xf "conky -q -c /media/5/Conky/The_Clock.conky" &

#---  Begin Window Settings
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_class Conky
own_window_title The 1b1 Clock
#-- ARGB can be used for real transparency
#--own_window_argb_visual yes
#--own_window_argb_value 0 #-- 0 - clear | 255 - solid

double_buffer yes

minimum_size 300 667  #-- w|h
maximum_width 300

gap_x 10  #-- l|r
gap_y 10  #-- u|d

alignment tr
#---  End Window Settings
#---  Font Settings
use_xft yes
xftfont monofur:bold:size=10
xftalpha 1

#--  Force UTF8? requires XFT
override_utf8_locale yes

uppercase no
#---  End Font Settings
#---  Color Settings
draw_shades no #-- amplifies text if yes
default_shade_color black

draw_outline no #-- amplifies text if yes
default_outline_color black

default_color DCDCDC #--220 220 220   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 FFA07A #--LightSalmon
#---  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

#-- change GiB to G and MiB to M
short_units yes

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

#---  End Miscellaneous Section
#---  LUA Settings
#-- CLOCK LUA
lua_load /media/5/Conky/LUA/12-24_DOTS.lua
lua_draw_hook_pre main
#---  End LUA Settings

#--${lua conky_draw_bg 100 060 090 200 200 0x000000 0.4}\

#--${texeci 600 bash /media/5/Conky/1b1_accuweather_images/1b1}\
update_interval 1
TEXT
${texeci 600 bash /media/5/Conky/1b1_accuweather_images/1b1}\
${image /media/5/Conky/images/The_Clock_3sm.png -p 0,0}\
${font monofur:bold:size=14}${color5}${alignc}${uptime_short}
${alignc}${time %x}${font}
${image /media/5/Conky/1b1_accuweather_images/cc.png -p 65,136 -s 170x102}
${alignc}${color8}s↑ ${execi 600 sed -n '39p' /media/5/Conky/1b1_accuweather_images/curr_cond}
${alignc}${color1}m↑ ${execi 600 sed -n '41p' /media/5/Conky/1b1_accuweather_images/curr_cond}

${font monofur:bold:size=14}${color}${alignc}${if_match ${time %H}>=18}Guten Abend${else}\
${if_match ${time %H}<12}Guten Morgen${else}\
${if_match ${time %H}<18}Guten Tag\
${endif}${endif}${endif}${font}
${alignc}${color7}${execi 600 sed -n '33p' /media/5/Conky/1b1_accuweather_images/curr_cond}${color5}
          ${font monofur:bold:size=14}${color8}±${execi 600 sed -n '30p' /media/5/Conky/1b1_accuweather_images/curr_cond}°\
${alignr 65}${color}${execi 600 sed -n '29p' /media/5/Conky/1b1_accuweather_images/curr_cond}°${font}






          ${font monofur:bold:size=14}${color9}↑${execi 600 sed -n '26p' /media/5/Conky/1b1_accuweather_images/first_days}°\
${alignr 65}${color5}↓${execi 600 sed -n '31p' /media/5/Conky/1b1_accuweather_images/first_days}°${color}${font}
${alignc}UVI ${execi 600 sed -n '34p' /media/5/Conky/1b1_accuweather_images/curr_cond}
${alignc}Hum ${execi 600 sed -n '32p' /media/5/Conky/1b1_accuweather_images/curr_cond}

${alignc}${color8}s↓ ${execi 600 sed -n '40p' /media/5/Conky/1b1_accuweather_images/curr_cond}
${alignc}${color1}m↓ ${execi 600 sed -n '42p' /media/5/Conky/1b1_accuweather_images/curr_cond}

${alignc}${color5}${time %b %Y}${color}
${font monofur:bold:size=9}${alignc}${if_match ${time %w}==0}${color5}Su${color1} Mo Tu We Th Fr Sa${else}\
${if_match ${time %w}==1}${color1}Su ${color5}Mo${color1} Tu We Th Fi Sa${else}\
${if_match ${time %w}==2}${color1}Su Mo ${color5}Tu${color1} We Th Fr Sa${else}\
${if_match ${time %w}==3}${color1}Su Mo Tu ${color5}We${color1} Th Fr Sa${else}\
${if_match ${time %w}==4}${color1}Su Mo Tu We ${color5}Th${color1} Fr Sa${else}\
${if_match ${time %w}==5}${color1}Su Mo Tu We Th ${color5}Fr${color1} Sa${else}\
${color1}Su Mo Tu We Th Fr ${color5}Sa${color}${endif}${endif}${endif}${endif}${endif}${endif}
${alignc}  ${color1}${execp LAR=`date +%-d`; ncal -bh | sed '2d' | sed -e '1d' -e 's/\<'$LAR'\>/${color5}&${color1}/' | sed ':a;N;$!ba;s/\n/\n${alignc}  /g'}${font}${color}
${alignc}${pre_exec lsb_release -sc}
${alignc}${color7}${membar 0,10} ${execi 3600 uname -r|cut -c 1-13} ${membar 0,10}${color}
${alignc}μm ${color5}${freq_g}${color}
${alignc}Avg ${if_match ${cpu cpu0}<10}${color1}00${color5}${cpu cpu0}\
${else}${if_match ${cpu cpu0}<100}${color1}0${color5}${cpu cpu0}\
${else}${color9}${cpu cpu0}${endif}${endif}${color5} %${color}
${alignc} ${color5}1${color7}  |  ${color5}2${color7}  |  ${color5}3 ${color}
${alignc}${if_match ${cpu cpu1}<10}${color1}00${color5}${cpu cpu1}\
${else}${if_match ${cpu cpu1}<100}${color1}0${color5}${cpu cpu1}\
${else}${color9}${cpu cpu1}${endif}${endif}${color}\
 ${color7}| ${if_match ${cpu cpu2}<10}${color1}00${color5}${cpu cpu2}\
${else}${if_match ${cpu cpu2}<100}${color1}0${color5}${cpu cpu2}\
${else}${color9}${cpu cpu2}${endif}${endif}${color}\
 ${color7}| ${if_match ${cpu cpu3}<10}${color1}00${color5}${cpu cpu3}\
${else}${if_match ${cpu cpu3}<100}${color1}0${color5}${cpu cpu3}\
${else}${color9}${cpu cpu3}${endif}${endif}${color}
${goto 90}${color5}${platform f71882fg.2560 temp 1}${color}°\
${goto 128}CPU ${color7}|${color} MB\
${alignr 85}${color5}${platform f71882fg.2560 temp 2}${color}°
${goto 90}${color5}${nvidia temp}${color}°\
${goto 128}GPU ${color7}|${color} HD\
${alignr 85}${color5}${hddtemp /dev/sda}${color}°
${goto 90}/Root${alignr 85}${color5}${fs_size /}${color}
${goto 90}F: ${color5}${fs_free /}${color}\
${alignr 85}${color5}${fs_used_perc /}%${color} :U
${goto 90}/Home${alignr 85}${color5}${fs_size /home}${color}
${goto 90}F: ${color5}${fs_free /home}${color}\
${alignr 85}${color5}${fs_used_perc /home}%${color} :U
${goto 90}/media/5${alignr 85}${color5}${fs_size /media/5}${color}
${goto 90}F: ${color5}${fs_free /media/5}${color}\
${alignr 85}${color5}${fs_used_perc /media/5}%${color} :U

${goto 90}${upspeed eth0}\
${goto 139}↑ ${color7}|${color} ↓\
${alignr 85}${downspeed eth0}${color}


lua_load /media/5/Conky/LUA/12-24_DOTS.lua
Code: Alles auswählen
--[[drawing a clock in conkyrc
by mrpeachy - 12 March 2010
Edited by Sector11 for personal use - 12 Mar 2012

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
--##############################################################################
-- image
-- how do I add images.
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image /media/5/Conky/images/red_1.png -p 0,0 -s 35x35}")


--12 OR 24
local clock_type=12

--CLOCK SETTINGS
local clock_radius=140
local clock_centerx=156
local clock_centery=189

-- SET MARKS
--how many marks around edge
local number_marks=60  --24
--set mark length
local m_length=0.5
--set mark line width
local m_width=1.0
--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
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=130 --110
--set hand width
local sh_width=1 --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

--MINUTE HAND SETUP
--set length of minutes hand
local mh_length=125 --90
--set hand width
local mh_width=1.5 --1.5
--set hand line cap
local mh_cap=CAIRO_LINE_CAP_ROUND
--set minute hand color
local mhr,mhg,mhb,mha=0.5,0.6,0.9,1,1  --fully opaque bluish

--HOUR HAND SETUP
--set length of hour hand
local hh_length=110 --60
--set hand width
local hh_width=3.0 --2
--set hand line cap
local hh_cap=CAIRO_LINE_CAP_ROUND
--set hour hand color
local hhr,hhg,hhb,hha=0.5,0.6,0.9,1  --fully opaque bluish
--##############################################################################
--   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


Und natürlich die Uhr image: /media/5/Conky/images/The_Clock_3sm.png
Bild

Ja, funktioniert die Uhr 12 oder 24 Stunden:
Code: Alles auswählen
--12 OR 24
local clock_type=12
Im 24-Stunden-Modus "Mittag" ist in der 6 Uhr Position
Zuletzt geändert von sector11 am Jan 30th, '16, 23:59, insgesamt 1-mal geändert.
sector11
 
Beiträge: 17
Registriert: Dez 4th, '15, 15:57

Re: Conky-Spielerei

Beitragvon unklar » Jan 30th, '16, 23:25

Das ist conky_V1.9

Der Junge ist unschlagbar schnell. Bild
derVer.jpg


Es sind noch ein paar Kleinigkeiten
- die Uhr geht eine Stunde vor
- das Auslesen der Temperaturen ist auch noch nicht perfekt (ich habe keine nvidia)

Was aber funktioniert, das Python-Script ganz oben von dieser Seite für den Kalender passt. ;)

Danke an @Sector11 ! :D
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon sector11 » Jan 31st, '16, 00:08

unklar hat geschrieben:Das ist conky_V1.9

Der Junge ist unschlagbar schnell.

Mein Chef nie gesagt. :)
- die Uhr geht eine Stunde vor

Ich habe keine Ahnung, warum sollte es die Zeit von Ihrem System zu lesen.
unklar hat geschrieben:Danke an @Sector11 ! :D

Bitte. ;)


FeelsLike - Current Temp

Today High - Tonight Low
sector11
 
Beiträge: 17
Registriert: Dez 4th, '15, 15:57

Re: Conky-Spielerei

Beitragvon man-draker » Jan 31st, '16, 15:08

unklar hat geschrieben:Es sind noch ein paar Kleinigkeiten
- die Uhr geht eine Stunde vor

Du möchtest deine Zeiteinstellungen überprüfen.
Stimmen deine Einstellungen mit der Annahme von Conky überein?
Wenn Conky UTC annimmt und du MEZ hast, kann es zu Abweichungen kommen.
Beispiel: https://forum.ubuntuusers.de/topic/weltzeit-uhr-gmt-utc-im-panel-oder-als-vorder/
"Die letzte Stimme, die man hört, bevor die Welt explodiert, wird die Stimme eines Experten sein, der sagt: 'Das ist technisch unmöglich.'"
(Peter Ustinov)
Benutzeravatar
man-draker
 
Beiträge: 4992
Registriert: Jun 1st, '11, 12:56

Re: Conky-Spielerei

Beitragvon unklar » Feb 2nd, '16, 10:15

man-draker hat geschrieben:Du möchtest deine Zeiteinstellungen überprüfen.

Nun, wie du sehen kannst, stimmt schon die Zeit des System. Der Fehler lag, wie üblich, die berühmten 50cm vor dem Schirm. :D

Noch bevor ich den Conky das erste Mal aufrief, hatte ich
Code: Alles auswählen
local clock_type=24
im lua.Script eingestellt, was natürlich falsch war, weil ich ja keine 24Stunden-Uhr haben wollte.
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon sector11 » Feb 2nd, '16, 12:30

unklar hat geschrieben:Nun, wie du sehen kannst, stimmt schon die Zeit des System. Der Fehler lag, wie üblich, die berühmten 50cm vor dem Schirm. :D

:lol: :lol: Ich sollte nicht lachen. Das ist genau wie ich.

unklar hat geschrieben:Noch bevor ich den Conky das erste Mal aufrief, hatte ich
Code: Alles auswählen
local clock_type=24
im lua.Script eingestellt, was natürlich falsch war, weil ich ja keine 24Stunden-Uhr haben wollte.

Ich mag 24 Stunden Uhren
Bild Bild
The_Clock_2.conky
Code: Alles auswählen
#-- conky -q -c /media/5/Conky/The_Clock_2.conky &
#-- pkill -xf "conky -q -c /media/5/Conky/The_Clock_2.conky" &

## ---------- Begin Window Settings

own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints skip_taskbar,skip_pager,undecorated,below #,sticky
own_window_colour 000000
own_window_class Conky
own_window_title The Clock 2
# ARGB can be used for real transparency
#  own_window_argb_visual yes ## Options: yes or no
# Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#  own_window_argb_value 70

minimum_size 200 200
maximum_width 200

gap_x 10   ## l|r
gap_y 10   ## u|d
alignment tr
## ---------- End Window Settings
## ---------- Font Settings
## Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Liberation Mono:bold:size=11
xftfont Fantasque Sans Mono:bold:size=10
#xftfont DejaVu Sans Mono:bold:size=10


## 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

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

default_color DCDCDC ## Gainsboro
## default_color D3D3D3 ## LightGrey
## default_color C0C0C0 ## Silver
## default_color A9A9A9 ## DarkGray
## default_color 808080 ## Gray
## default_color 696969 ## DimGray
## default_color 778899 ## LightSlateGray
## default_color 708090 ## SlateGray
## default_color 2F4F4F ## DarkSlateGray
## default_color 000000 ## Black
## default_color 666666 ## BunsenFlame Grey
#color0 8FBC8F ## DarkSeaGreen
## color1 C0C0C0 ## Silver
## color1 D3D3D3 ## LightGrey
color1 778899 ## LightSlateGray
color2 FFA07A ## LightSalmon
color3 87CEFA ## LightSkyBlue
## color3 87CEFA ## E0FFFF ## LightCyan
color4 48D1CC ## MediumTurquoise
color5 FFDEAD ## NavajoWhite
color6 00BFFF ## DeepSkyBlue
color7 B0E0E6 ## PowderBlue
## color7 5F9EA0 ## CadetBlue
## color8 FFFFE0 ## LightYellow
color8 FFD700 ## Gold
## color8 F0E68C ## Khaki
## color9 FFA07A ## LightSalmon
color9 CD5C5C ## IndianRed
## color9 FF0000 ## Red
## color9 DC143C ## Crimson
## ---------- End Color Settings
## ---------- Begin Borders Section
draw_borders no
## Stippled borders?
stippled_borders 5
## border margins
border_inner_margin 5
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
## Boolean value, if true, Conky will be forked to background when started.
background no ## 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 3072

## Subtract (file slystem) 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

# 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

# Interval (in seconds) to flush Imlib2 cache.
#imlib_cache_flush_interval 900

## default_bar_size 0 10

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

## 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

top_name_width 12
## ---------- End Miscellaneous Section
#---  LUA Settings
#-- CLOCK LUA
lua_load /media/5/Conky/LUA/12-24_DOTS_TC_2.lua
lua_draw_hook_pre main
#---  End LUA Settings

update_interval 1
TEXT
${image /media/5/Conky/images/24_ds.png -p 0,0}



${alignc}${uptime_short}
${font Fantasque Sans Mono:bold:size=14}${alignc}${time %F}

${alignc 2}${if_match ${time %H}<12}Good Morning${else}\
${if_match ${time %H}<18}Good Day${else}Good Evening\
${endif}${endif}${font}

12-24_DOTS_TC_2.lua
Code: Alles auswählen
--[[drawing a clock in conkyrc
by mrpeachy - 12 March 2010

Edited by Sector11 for TheClock-2 - 30 Jan 2016

lua_load /path/12-24_DOTS_TC_2.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
--##############################################################################
-- image
-- how do I add images.
-- local cpu=conky_parse("${cpu}")
-- local red-1=conky_parse("${image /media/5/Conky/images/red_1.png -p 0,0 -s 35x35}")


--12 OR 24
local clock_type=24

--CLOCK SETTINGS
-- for the DOTS around the clock
local clock_radius=100  --140
local clock_centerx=106 --156
local clock_centery=106 --189

-- SET MARKS
--how many marks around edge
local number_marks=0 --24
--set mark length
local m_length=0.5
--set mark line width
local m_width=1.0
--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
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=75 --110
--set hand width
local sh_width=1 --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

--MINUTE HAND SETUP
--set length of minutes hand
local mh_length=80 --90
--set hand width
local mh_width=1.5 --1.5
--set hand line cap
local mh_cap=CAIRO_LINE_CAP_ROUND
--set minute hand color
local mhr,mhg,mhb,mha=0.1,0.8,0.9,1,1  --fully opaque blue

--HOUR HAND SETUP
--set length of hour hand
local hh_length=55 --60
--set hand width
local hh_width=4.0 --2
--set hand line cap
local hh_cap=CAIRO_LINE_CAP_ROUND
--set hour hand color
local hhr,hhg,hhb,hha=0.1,0.6,0.9,1,1  --fully opaque blue
--##############################################################################
--   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

und die Bild - 24_ds.png Bild
Genießen
sector11
 
Beiträge: 17
Registriert: Dez 4th, '15, 15:57

Re: Conky-Spielerei

Beitragvon unklar » Feb 2nd, '16, 13:30

Sector11 hat geschrieben:Ich mag 24 Stunden Uhren

Gorgeous!
Laughter I ran back the tears from his face ... Bild

Herrlich!
Vor lachen liefen mir wieder die Tränen vom Gesicht...
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

Re: Conky-Spielerei

Beitragvon unklar » Feb 2nd, '16, 15:16

Ich hatte es an anderer Stelle schon einmal geschrieben, die Conky-Konfigurationen von @Sector11 funktionieren einfach... :D
cony_v1.9
Als Gegenstück das hier:
Beide1.jpg
Beide3.jpg

Live_and_rock.tar.gz
(5.6 MiB) 174-mal heruntergeladen

Das Paket beinhaltet alles, außer der Schrift monofur ;)
Entschuldigung, jetzt ist es komplett!

Zur 9 Tage Wetteranzeige später mehr...
Zuletzt geändert von unklar am Feb 6th, '16, 23:49, insgesamt 1-mal geändert.
El Conkystador (el conquistador = der Sieger) ein Markenzeichen für @Sector11 8-)
unklar
 
Beiträge: 1468
Registriert: Jun 1st, '11, 15:06

VorherigeNächste

Zurück zu Allgemeine Diskussionen über Mageia

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast

cron