You are not logged in.
Looks great lwfitz, good use of your screen's realstate.
The music player on the bottom right, is that also Conky?
Offline
Looks great lwfitz, good use of your screen's realstate.
The music player on the bottom right, is that also Conky?
Thanks buddy, the music player is gmusic browser and if you interested in it vastone has a great howto and there you can get all the custom layouts. the link is in my signature.
Conky | SMXI HowTo | Super Grub | VastOnes GMB HowTo | VSIDO
Offline
Hello - I come in seek of advice.
I've been playing around with the conky script (a base one that I took from within this huge thread and can't re-find it) I may have touched something within he RAM section accidentally, as I do not recall doing so, but as it doesn't work properly anymore - I must have.
It states the total RAM and apparently the usage, which jumps at intervals of maybe 10 seconds, also what should be next to the graphics bar saying; RAM XX% now is next to total RAM and is just static (as can be seen in screenshot)
I have tried with different combinations from other scripts, but it no longer looks the same.
Can someone tell me what I have touched and why it has changed, not just to put it back to working fashion, but to learn.
This is the script I have in for RAM
${font sans-serif:bold:size=6}MEMORY ${hr 2}
${font sans-serif:normal:size=8}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
Thank you.
https://lh3.googleusercontent.com/-J4Fb … 4%3A59.png
Last edited by km00 (2013-02-26 20:36:53)
Under a Rock with a 6gb connection
Offline
Your code looks correct, in looking at your screenshot you have 1 GB of Memory and at the time of the snapshot you are utilizing 51% of your usable memory. If you are in fact running 1 GB of memory, you won't get 1024mb of usable memory as the computer takes some for itself. A minute amount so in your screen shot, it shows 999mb of usable memory.
${font san-serif:bold:size=6}MEMORY ${hr 2}
${font sans-serif:normal:size=8}${color1}RAM $alignc $mem / $memmax $alignr $memperc%
$membar
Your code matches mine. I am running 8 GB of memory so mine looks different but I don't see anything wrong with your code nor your screenshot. How much ram are you running?
Offline
ichase wrote:Looks great lwfitz, good use of your screen's realstate.
The music player on the bottom right, is that also Conky?Thanks buddy, the music player is gmusic browser and if you interested in it vastone has a great howto and there you can get all the custom layouts. the link is in my signature.
lwfitz - Thanks for the tip on the gmusic browser, will definitely be checking out vastone's fine work here shortly. 8o <-----sorry, I am quite fond of the monkey. LOL
Offline
@ichase
My RAM is correct, I have 1GB but what I mean, is if you look at the processors. it says CPU1: 18% and then the bar thing. and it updates every 1.0. the RAM used to be the same. Ah - fuck! I'm not sure if it used to be the same anymore. lol
Thanks for confirming it's at least functioning.
Under a Rock with a 6gb connection
Offline
So Sector11 suggested a bash script that might point me in the right direction it used pgrep. This seemed perfect as it would present the pid of any conky I wanted, but in conky this doesn't seem to work right. In conky this command gives me the pid and another number that is counting up.
The command is:
pgrep -f ./conky/test2.conkyrc
I have used both exec and execp in conky trying to get just the pid only to no success, oh and the number that counts up doesn't go away like the pid does if the conky isn't running. That makes my if nil switch nonfunctional in lua
Offline
↑ @ ansem_of_nexus
Oh well, it was a thought, I don't know enough about it to be of much help ... just tossing out ideas.
Last edited by Sector11 (2013-02-27 01:05:28)
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
So Sector11 suggested a bash script that might point me in the right direction it used pgrep. This seemed perfect as it would present the pid of any conky I wanted, but in conky this doesn't seem to work right. In conky this command gives me the pid and another number that is counting up.
The command is:pgrep -f ./conky/test2.conkyrc
I have used both exec and execp in conky trying to get just the pid only to no success, oh and the number that counts up doesn't go away like the pid does if the conky isn't running. That makes my if nil switch nonfunctional in lua
That pgrep command should be like this.
pgrep -f -x ".*/conky/test2.conkyrc"
Offline
@arclance perfect, thank you.
So now I have one more question, what does the "*" do in this case?
Offline
The ".*" is a multiple character wildcard so it will match any command that ends in "/conky/test2.conkyrc".
pgrep accepts a type of regular expression in its argument, you can look at "man pgrep" to see which one specifically.
Offline
Hey all!
still got my troubles with the $alignr
but using a very minimal version of Sektor11s lowph-weather-script and the wellknown clock_ring_lua (i "meterized" it)
i am very happy now:
# Conky settings #
background no
update_interval 1
cpu_avg_samples 2
net_avg_samples 2
override_utf8_locale yes
double_buffer yes
no_buffers yes
text_buffer_size 2048
#imlib_cache_size 0
# Window specifications #
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorate,sticky,skip_taskbar,skip_pager,below
border_inner_margin 0
border_outer_margin 0
minimum_size 415 700
maximum_width 415
alignment tr
gap_x 3
gap_y 13
# Graphics settings #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no
# Text settings #
use_xft yes
xftfont Play:size=7
xftalpha 0.9
uppercase no
default_shade_color cccccc
default_color 308280
# Lua Load #
lua_load ~/scripts/clock_rings.lua
lua_draw_hook_pre clock_rings
TEXT
${color cccccc}${font Play:size=20}${goto 23}${time %e} ${time %b}${color}${voffset -7}${goto 261}${font TakaoPMincho:size=10}一期一会${alignr}${color cccccc}${font Play:size=10}${time %A}${color}${font}
${voffset -6}${goto 123}${hr}
${font Play:size=7}${alignr}Akku: ${battery} ${battery_time}
${voffset 6}${alignr}Tomorrow:${offset 4}${execpi 600 sed -n '4p' $HOME/lowph/Accuweather_RSS/weather|cut -c1-20} ${execpi 600 sed -n '4p' $HOME/lowph/Accuweather_RSS/weather|cut -c21-60}${voffset -6} ${font conkyweather:size=13}${execpi 600 sed -n '8p' $HOME/lowph/Accuweather_RSS/weather}${font}
${goto 316}${voffset 70}${color 82C3E1}${downspeed wlan0}
${goto 323}${voffset 7}${color 82C3E1}${upspeed wlan0}
${goto 262}${voffset 60}${color 011C96}${cpu cpu0}%
${goto 252}${color 013596}${cpu cpu1}%
${goto 225}${voffset 107}${color 019694}${mem}${font}${color}
${voffset 76}
${if_match ${battery_percent} < 11}${exec ~/scripts/batlow.sh}${color FF0000}${font BaileysCar:pixelsize=43}${blink AKKU: ${battery}}${color}${font}${else}${exec bash -c 'if [ -e /run/lock/batlow ]; then rm -f /run/lock/batlow; fi'}${endif}
${if_match ${exec sensors | grep 'Core 0'|awk '{print $3}' | cut -c2-3} > 93}${exec ~/scripts/temp.sh}${color FF0000}${font BaileysCar:pixelsize=23}${alignr}${blink CPU-TEMP:${exec sensors | grep 'Core 0'|awk '{print $3}' | cut -c2-3}/${exec sensors | grep 'Core 1'|awk '{print $3}' | cut -c2-3}°C}${font}${color}${endif}${if_match ${exec sensors | grep 'Core 0'|awk '{print $3}' | cut -c2-3} < 75}${exec bash -c 'if [ -e /run/lock/temp ]; then rm -f /run/lock/temp; fi'}${endif}
${if_running mocp}${goto 152}MOC:${goto 185}${exec mocp -Q %state} - ${scroll 28 ${execi 300 ~/scripts/moc_conky.sh}}${endif}
${if_running vlc}${goto 152}VLC:${goto 185}${scroll 33 ${exec xlsclients -l | grep "VLC media player" | cut -c -9 --complement}}${endif}
greetz -naik
Last edited by Naik (2013-02-28 00:49:23)
*kaum macht man es richtig, funktioniert es sofort*
Offline
In my disk space portion of my Conky INFO on the right, I want to put the space for /mnt which is my file server mounted to /mnt. I mount the file server via CIFS in the command line, once mounted, Conky should recognize /mnt in theory correct?
I just need to know how to code it so that it looks for the disk space of the mounted server which is 500GB with approximately 300 GB in use.
Thanks,
Ian
Last edited by ichase (2013-02-28 01:41:53)
Offline
@Ichase: how about using if_existing?
${if_existing /mnt/whatever} ${fs_bar /mnt/whatever}${else} "Blue dots on Pink" ${endif}
You may change the values for your needs...
*kaum macht man es richtig, funktioniert es sofort*
Offline
Hi !
News from France about weather scripts.
A link of the work and vidéo from jpdipsy
I think you'll like it !
jpdipsy_video
My screen config:
screen
Last edited by ragamatrix (2013-02-28 09:41:57)
Offline
@ ichase
${if mounted}
ext${goto 40}${color5}${if_mounted /media/disk}\
${fs_size /media/disk}${goto 100}${color9}${fs_used /media/disk}\
${goto 160}${color6}${fs_free /media/disk}\
${image /media/5/Conky/images/4-blue.png -p 213,494}\
${else}${goto 90}Not Mounted${endif}${color}
usb${goto 40}${color5}${if_mounted /media/usb}\
${fs_size /media/usb}${goto 100}${color9}${fs_used /media/usb}\
${goto 160}${color6}25${fs_free /media/usb}\
${image /media/5/Conky/images/4-blue.png -p 212,534}\
${else}${goto 90}Not Mounted${endif}${color}
@ Naik
${if_existing}? Interesting, I'll have to try that. It should work as well.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
Hi !
News from France about weather scripts.
A link of the work and vidéo from jpdipsy
I think you'll like it !
jpdipsy_video
My screen config:
screen
I've seen jpdipsy's work before, he's good.
Where is the work though, all I see is the video which is amazing.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
ragamatrix wrote:Hi !
News from France about weather scripts.
A link of the work and vidéo from jpdipsy
I think you'll like it !
jpdipsy_video
My screen config:
screenI've seen jpdipsy's work before, he's good.
Where is the work though, all I see is the video which is amazing.
Sorry for my English. I wanted to say somethin like (the work done, and the result in video...)
It's not really conky, but displaying on image background differents scripts like weather; mails; xplanet ;barograph pressure (image, graph or text) in bash and convert.
I'll try to explain step by step...
here's the archive :
Accuweather v1.06 + recmeteo 1.15
now the weather script is in python3, and lib needed are python3; beautifulsoup notify2
There's a pdf readme in french in the archive. I can try to explain things you don't understand.
conky accuweather is also updated with lua script and python.
here the links of scripts :
archive page ubuntu_forum
edit:
The Accuweather folder must be in home directory ~/Accuweather
Last edited by ragamatrix (2013-02-28 11:53:59)
Offline
ragamatrix wrote:Hi !
My screen config:
screenHi! Cool tint2 config.
Can you show config tint2?
here it is:
tint2rc:
#---------------------------------------------
# TINT2 CONFIG FILE
#---------------------------------------------
# horizontal panel
# squared taskbars
# idirae config
# Background definitions
# ID 1
rounded = 0
border_width = 1
background_color = #808080 20
border_color = #ffffff 10
# ID 2 - task active
rounded = 0
border_width = 0
background_color = #feffff 0
border_color = #d8d8d8 0
# ID 3 - task
rounded = 0
border_width = 0
background_color = #F5F5DC 0
border_color = #000000 0
# ID 4
rounded = 0
border_width = 1
background_color = #888888 0
border_color = #ED2323 60
# ID 5 - taskbar
rounded = 0
border_width = 1
background_color = #feffff 10
border_color = #ffffff 10
# ID 6 - active taskbar
rounded = 0
border_width = 1
background_color = #feffff 30
border_color = #ffffff 30
# ID 7 - tooltip
rounded = 3
border_width = 0
background_color = #222222 90
border_color = #222222 90
# ID 8
rounded = 0
border_width = 1
background_color = #888888 20
border_color = #888888 20
# Panel
panel_monitor = all
panel_position = bottom left horizontal
panel_items = LTSC
panel_size = 100% 32
panel_margin = 0 1
panel_padding = 3 3
panel_dock = 0
wm_menu = 1
panel_layer = bottom
panel_background_id = 1
# Panel Autohide
autohide = 0
autohide_show_timeout = 0.3
autohide_hide_timeout = 1.5
autohide_height = 6
strut_policy = follow_size
# Taskbar
taskbar_mode = multi_desktop
taskbar_padding = 5 2
taskbar_background_id = 5
taskbar_active_background_id = 6
taskbar_name = 1
taskbar_name_background_id = 0
taskbar_name_active_background_id = 0
taskbar_name_font = White Rabbit 12
taskbar_name_font_color = #ffffff 30
taskbar_name_active_font_color = #ffffff 50
# Tasks
urgent_nb_of_blink = 20
task_icon = 1
task_text = 0
task_centered = 1
task_maximum_size = 20 20
task_padding = 0 0
task_background_id = 3
task_active_background_id = 2
task_urgent_background_id = 4
task_iconified_background_id = 3
# Task Icons
task_icon_asb = 80 0 0
task_active_icon_asb = 100 0 0
task_urgent_icon_asb = 100 0 0
task_iconified_icon_asb = 80 0 0
# Fonts
task_font = White Rabbit 10
task_font_color = #696969 60
task_active_font_color = #696969 100
task_urgent_font_color = #696969 100
task_iconified_font_color = #696969 60
font_shadow = 0
# Launcher
launcher_padding = 6
launcher_background_id = 5
launcher_icon_size = 20
# Specify icon theme names with launcher_icon_theme.
# if you have an XSETTINGS manager running (like xfsettingsd), tint2 will follow your current theme.
#launcher_icon_theme = AwOkenWhite
#---------------------------------------------
# LAUNCHERS
#---------------------------------------------
#launcher_apps_dir = /home/climatix/.tint2launchers
launcher_item_app = /usr/share/applications/Thunar.desktop
launcher_item_app = /usr/share/applications/pidgin.desktop
launcher_item_app = /usr/share/applications/google-chrome.desktop
launcher_item_app = /usr/share/applications/deadbeef.desktop
#launcher_item_app = /usr/share/applications/gcalctool.desktop
launcher_item_app = /usr/share/applications/gimp.desktop
launcher_item_app = /usr/share/applications/libreoffice-calc.desktop
launcher_item_app = /usr/share/applications/libreoffice-writer.desktop
launcher_item_app = /usr/share/applications/vlc.desktop
launcher_item_app = /usr/share/applications/tilda.desktop
launcher_item_app = /usr/share/applications/transmission-gtk.desktop
launcher_item_app = /usr/share/applications/radiotray.desktop
# Clock
time1_format = %H:%M
time1_font = Droid-Sans-Bold 8
time2_format = %A %d %B
time2_font = Droid-Sans-Bold 8
clock_font_color = #ffffff 80
clock_padding = 5 0
clock_background_id = 5
clock_rclick_command = osmo
#lock_rclick_command =
# System Tray
systray = 1
systray_padding = 2
systray_sort = right2left
systray_background_id = 5
systray_icon_size = 20
systray_icon_asb = 100 0 0
# Tooltips
tooltip = 0
tooltip_padding = 2 2
tooltip_show_timeout = 0.0
tooltip_hide_timeout = 0.0
tooltip_background_id = 7
tooltip_font_color = #ffffff 100
tooltip_font = Roboto-Thin normal 9.0
# Mouse
mouse_middle = none
mouse_right = toggle
mouse_scroll_up = toggle
mouse_scroll_down = iconify
# Battery
#battery = 0
#battery_low_status = 20
#battery_low_cmd = notify-send "battery low"
#battery_hide = 96
#bat1_font = Roboto-Thin 0
#bat2_font = Roboto-Thin 0
#battery_font_color = #ffffff 100
#battery_padding = 0 0
#battery_background_id = 0
# End of config
Offline
here it is:
Thank you!
Offline
Sorry for my English. I wanted to say somethin like (the work done, and the result in video...)
Don't apologize for your English it is far better than my French - which almost none at all.
I'll try it, if I have problems I'll ask. Thank you.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
is it possible to grab the first jpg-image within this rss-file: http://apod.nasa.gov/apod.rss
this is the content of the specific file:
<rss version="2.0">
<channel>
<title>APOD</title>
<link>http://antwrp.gsfc.nasa.gov/</link>
<description>Astronomy Picture of the Day</description>
<language>en-us</language>
<image>
<title>APOD</title>
<url>http://antwrp.gsfc.nasa.gov/favicon.ico</url>
<link>http://antwrp.gsfc.nasa.gov/</link>
</image>
<item>
<title>Snow Moon for a Snowy Planet</title>
<link>http://antwrp.gsfc.nasa.gov/apod/astropix.html</link>
<description><p><a href="http://antwrp.gsfc.nasa.gov/apod/astropix.html"><img src="http://antwrp.gsfc.nasa.gov/apod/calendar/S_130228.jpg" align="left" alt="Snow Moon for a Snowy Planet" border="0" /></a> Snow Moon for a Snowy Planet</p><br clear="all"/></description>
</item>
<item>
<title>Asperatus Clouds Over New Zealand </title>
<link>http://antwrp.gsfc.nasa.gov/apod/ap130227.html</link>
<description><p><a href="http://antwrp.gsfc.nasa.gov/apod/ap130227.html"><img src="http://antwrp.gsfc.nasa.gov/apod/calendar/S_130227.jpg" align="left" alt="What kind of clouds are these?" border="0" /></a> What kind of clouds are these?</p><br clear="all"/></description>
</item>
<item>
<title>Coronal Rain on the Sun </title>
<link>http://antwrp.gsfc.nasa.gov/apod/ap130226.html</link>
<description><p><a href="http://antwrp.gsfc.nasa.gov/apod/ap130226.html"><img src="http://antwrp.gsfc.nasa.gov/apod/calendar/S_130226.jpg" align="left" alt="Does it rain on the Sun?" border="0" /></a> Does it rain on the Sun?</p><br clear="all"/></description>
</item>
<item>
<title>Fly Me to the Moons </title>
<link>http://antwrp.gsfc.nasa.gov/apod/ap130225.html</link>
<description><p><a href="http://antwrp.gsfc.nasa.gov/apod/ap130225.html"><img src="http://antwrp.gsfc.nasa.gov/apod/calendar/S_130225.jpg" align="left" alt="Sometimes the Moon is a busy direction." border="0" /></a> Sometimes the Moon is a busy direction.</p><br clear="all"/></description>
</item>
<item>
<title>M51: The Whirlpool Galaxy in Dust and Stars </title>
<link>http://antwrp.gsfc.nasa.gov/apod/ap130224.html</link>
<description><p><a href="http://antwrp.gsfc.nasa.gov/apod/ap130224.html"><img src="http://antwrp.gsfc.nasa.gov/apod/calendar/S_130224.jpg" align="left" alt="The Whirlpool Galaxy is a classic spiral galaxy." border="0" /></a> The Whirlpool Galaxy is a classic spiral galaxy.</p><br clear="all"/></description>
</item>
<item>
<title>Chelyabinsk Meteor Flash</title>
<link>http://antwrp.gsfc.nasa.gov/apod/ap130223.html</link>
<description><p><a href="http://antwrp.gsfc.nasa.gov/apod/ap130223.html"><img src="http://antwrp.gsfc.nasa.gov/apod/calendar/S_130223.jpg" align="left" alt="A meteoroid" border="0" /></a> A meteoroid</p><br clear="all"/></description>
</item>
<item>
<title>Curiosity Self Portrait Panorama</title>
<link>http://antwrp.gsfc.nasa.gov/apod/ap130222.html</link>
<description><p><a href="http://antwrp.gsfc.nasa.gov/apod/ap130222.html"><img src="http://antwrp.gsfc.nasa.gov/apod/calendar/S_130222.jpg" align="left" alt="This remarkable" border="0" /></a> This remarkable</p><br clear="all"/></description>
</item>
<textInput>
<title>Search APOD</title>
<description>Search APOD</description>
<name>query</name>
<link>http://antwrp.gsfc.nasa.gov/cgi-bin/apod/apod_search
</link>
</textInput>
</channel>
</rss>
i tried this in lua:
local uri='http://apod.nasa.gov/apod.rss'
local f = assert(io.popen('curl -s '..uri, 'r'))
local s = assert(f:read('*a'))
f:close()
s, f = string.gsub(s, ".*image\/jpeg.*(http://.*\.jpg).*", "%1")
return s
but it will not work do u have an idea how to get the url of the actual image?
Last edited by lionhead (2013-02-28 16:01:21)
Offline
@Naik
Thanks for the tip, that worked like a champ. I changed it up quite a bit but the {if existing} worked great except for when I unmount the file server, the Server still shows but shows the size of /. In other words, it's a duplicate of what is above it. Once remounted, it reads great. Should it not either disapear all together if the server is unmounted or state "unmounted"?
${font Radio Space:bold:size=10}${color1}DISK SPACE ${hr 2}
${font sans-serif:normal:size=8}${color1}/ $alignc ${fs_used /} / ${fs_size /} $alignr${fs_used_perc /}%
${color}${fs_bar /}
${if_existing /mnt}${font sans-serif:normal:size=8}${color1}Server $alignc ${fs_used /mnt} / ${fs_size /mnt} $alignr${fs_used_perc /mnt}% ${endif}
${color}${fs_bar /mnt/}
@S11 Ok, that ooozes awesomeness and could I please have the code and scripts to create it. Thank you so much in advance.
I would only need one of them and not a side by side, but I love that way that shows the disks and gives you the options to display additionally mounted hardware such as external HDD, flashdrives, and SDCards.
Ian
Last edited by ichase (2013-03-01 11:03:19)
Offline
Sector11 wrote:@S11 Ok, that ooozes awesomeness and could I please have the code and scripts to create it. Thank you so much in advance.
I would only need one of them and not a side by side, but I love that way that shows the disks and gives you the options to display additionally mounted hardware such as external HDD, flashdrives, and SDCards.
Ian
Of course, I'll put it up later today ... had a bit of a crisis here - nothing too serious - a hard drive got (d)isk (d)estroyed by keyboard operator error. 8o I wonder who that could be!
All back to normal now though, but I gotta run ... back later.
· ↓ ↓ ↓ ↓ ↓ ↓ ·
BunsenLabs Forums now Open for Registration
· ↑ ↑ ↑ ↑ ↑ ↑ · BL ModSquad
Offline
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat