Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU
Nice!
I love to watch the Nurburgring Race Track Live Webcam
Wish I was running around the (14 mile / 22.8 kilometer) course in my CiViC... LoL!
Last edited by VinDSL; February 20th, 2011 at 02:43 PM.
Intel ® P4 Extreme Edition 3.4 (Gallatin) || DFI ® LanParty PRO875B rev B1
Crucial ® Ballistix Tracer PC4000 1GB || Mountain Mods U2-UFO Opti-1203
XFX 7600GT 560M AGP (PV-T73A-UDF3) || Corsair HX520W Modular PSU
Time manipulation is easy since you already using AWK - though, you need to use GAWK specifically for this.
Insead of using that
you should use thisCode:ls -l tetonwebcam.gif | awk '{print $6, $7}'
Code:ls -l tetonwebcam.gif |gawk 'END{print $6,$7,"local time"; gsub(/-/," ",$6); gsub(/:/," ",$7); print strftime("%Y-%m-%d %H:%M",mktime($6" "$7" 0")-(8*60*60)),"MST time (UTC-7)"}'
Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | My Conky Pitstop corner | One4All project
My interest was triggered, and I think I can add a little bonus for all of us who are not really familiar with imperial units and calendars starting on Sunday.
If you replace your "cal -h" calls with "ncal -hbM", you get the continental calendar with the week starting on Monday.
Yes, but ncal place week days horizontally.
And if you are not familiar with imperial system than that means you are live in a country with metric system and as such your system had been set by you during installation to your national locale. And cal is giving you result according to that locale settings, like for me, where weeks starts with Monday according to my locale. If I would like to make it imperial Sunday start then I need to start it with, say US locale (GB locale is imperial with Monday start), like
since my local locale is set toCode:env LANG=en_US.UTF-8 cal
which works in metric system, Monday start.Code:LANG=pl_PL.UTF-8
So... what’s about? What problem do you have with CAL?
Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | My Conky Pitstop corner | One4All project
The -b option makes ncal behave like cal, so it looks like cal with the week starting Monday. It's probably due to my Natty install that the locale is screwed up at the moment...
But that means, if everything is fixed in the final release with the correct locale, my "fix" is not needed...
Sigh... And I was so proud that I found something...
Nope:
Code:13:54 ~ $ ncal -hbM ncal: invalid option -- 'b' usage: cal [-hjy] [[month] year] cal [-hj] [-m month] [year] ncal [-hJjpwy3MS] [-s country_code] [[month] year] ncal [-hJeo] [year] 13:54 ~ $ ncal February 2011 Su 6 13 20 27 Mo 7 14 21 28 Tu 1 8 15 22 We 2 9 16 23 Th 3 10 17 24 Fr 4 11 18 25 Sa 5 12 19 26 13:55 ~ $
Linux Debian Sid (Minted) x86_64/3.12.10, Conky 2.0_pre, Xorg 7.7/1.15.0, KDE 4.11.5, Lenovo T61, Intel X3100, HITACHI HTS722010K9SA00 100GB, WDC_WD5000BEVT 500GB
Linux user No.: 483055 | My Conky Pitstop corner | One4All project
I have 2 different conky's running on either side of the screen, the one on the right hasand the one on the left's is for bottom left, and yet in the photo u can see they aren't starting at the bottom, I would like them as low down in the screen as I can get them, so any idea's on what's causing them to start further up?Code:## Text alignment. # alignment bottom_right
here's the full codeCode:################################## ## VinDSL | rev. 11-02-17 01:46 ## ################################## ## Screen res: 1280x1024x24 ## ################################## #### ## Prerequisites (required). ## conky-all 1.8.0 or 1.8.1 ## conkyForecast 2.16 ## weather.com XML Data Feed (XOAP) # #### ## Use XFT? Required to Force UTF8 (see below). # use_xft yes xftfont DroidSans:size=8.75 xftalpha 0.1 text_buffer_size 2048 #### ## Force UTF8? Requires XFT (see above). ## Displays degree symbol, instead of °, etc. # override_utf8_locale yes #### ## Daemonize Conky, aka 'fork to background'. # background yes #### ## Update interval in seconds. # update_interval 1.5 #### ## This is the number of times Conky will update before quitting. ## Set to zero to run forever. # total_run_times 0 #### ## Create own window instead of using desktop (required in nautilus)? # own_window yes own_window_type override own_window_transparent yes #### ## Force images to redraw when they change. # imlib_cache_size 0 #### ## Use double buffering? Reduces flicker. # double_buffer yes #### ## Draw shades? # draw_shades no #### ## Draw outlines? # draw_outline no #### ## Draw borders around text? # draw_borders no #### ## Draw borders around graphs? # draw_graph_borders no #### ## Print text to stdout? ## Print text in console? # out_to_ncurses no out_to_console no #### ## Text alignment. # alignment bottom_right #### ## Minimum size of text area. # minimum_size 330 798 #### ## Gap between text and screen borders. # gap_x 8 gap_y 33 #### ## Shorten MiB/GiB to M/G in stats. # short_units yes #### ## Pad % symbol spacing after numbers. # pad_percents 0 #### ## Pad spacing between text and borders. # border_inner_margin 4 #### ## Limit the length of names in "Top Processes". # top_name_width 10 #### ## Subtract file system -/+buffers/cache from used memory? ## Set to yes, to produce meaningful physical memory stats. # no_buffers yes #### ## Set to yes, if you want all text to be in UPPERCASE. # uppercase no #### ## Number of cpu samples to average. ## Set to 1 to disable averaging. # cpu_avg_samples 2 #### ## Number of net samples to average. ## Set to 1 to disable averaging. # net_avg_samples 2 #### ## Add spaces to keep things from moving around? ## Only affects certain objects. # use_spacer right #### ## My colors (suit yourself). # color0 White color1 Ivory color2 Ivory2 color3 Ivory3 color4 Tan1 color5 Tan2 color6 Gray color7 AntiqueWhite4 color8 DarkSlateGray color9 Black #### ## Load Lua for bargraphs (required). ## Set the path to your script here. # lua_load ~/.conky/bargraph_small.lua lua_draw_hook_post main_bars #### ## Installed fonts (required). # # ConkyWeather (Stanko Metodiev) # ConkyWindNESW (Stanko Metodiev) # Cut Outs for 3D FX (Fonts & Things) # Droid Font Family (Google Android SDK) # Moon Phases (Curtis Clark) # OpenLogos (Icoma) # PizzaDude Bullets (Jakob Fischer) # Radio Space (Iconian Fonts) # StyleBats (Vinterstille) # Ubuntu (Canonical Ltd) # Ubuntu Title Bold (Paulo Silva) # Weather (Jonathan Macagba) TEXT ################## ## PROCESSORS ## ################## ${font DroidSans:bold:size=8}${color4}PROCESSORS${offset 8}${color8}${voffset -2}${hr 2}${font} ${font DroidSans:size=8.65}${color royal blue}${offset 5}Intel Core 2 Duo${alignr}${font DroidSans:size=8.3}${freq_g cpu0}${offset 1}GHz${font} ${font DroidSansFallback:size=8.39}${offset 2}${freq}MHz Load: ${loadavg} ${font DroidSansFallback:size=8.39}${offset 2}CPU1${offset 5}${font DroidSans:size=8.3}${cpu cpu1}%${font} ${font DroidSansFallback:size=8.39}${offset 2}CPU2${offset 5}${font DroidSans:size=8.3}${cpu cpu2}%${font} ${cpugraph 555753 eeeeec} NAME${alignr 9}PID CPU% MEM% ${top name 1}${alignr 9}${top pid 1} ${top cpu 1} ${top mem 1} ${top name 2}${alignr 9}${top pid 2} ${top cpu 2} ${top mem 2} ${top name 3}${alignr 9}${top pid 3} ${top cpu 3} ${top mem 3} ${top name 4}${alignr 9}${top pid 4} ${top cpu 4} ${top mem 4} ################## ## MEMORY ## ################## ${voffset 6}${font DroidSans:bold:size=8}${color4}MEMORY${offset 8}${color8}${voffset -2}${hr 2}${font} ${voffset 4}${font DroidSansFallback:size=8.3}${color3}${offset 3}RAM ${memperc}%${goto 61}${font DroidSans:size=8.3} - ${mem}${goto 133}${offset 5}${font} ################## ## HDD ## ################## ${voffset 16}${font DroidSans:bold:size=8}${color4}HDD${offset 8}${color8}${voffset -2}${hr 2}${font} ${voffset 5}${color light blue}${voffset -2}${font DroidSansFallback:size=8.3}${offset 4}ROOT: ${fs_used_perc /}% ${goto 71}${font DroidSans:size=8.3}${fs_used /}${goto 95} / ${offset 0}${fs_size /}${alignr}${font} ${voffset 5}${voffset -2}${font DroidSansFallback:size=8.3}${offset 4}Ext Videos: ${fs_used_perc /media/Ext Videos}% ${goto 95}${font DroidSans:size=8.3}${fs_used /media/Ext Videos}${goto 127}/ ${offset 0}${fs_size /media/Ext Videos}${alignr}${font} ${voffset 5}${voffset -2}${font DroidSansFallback:size=8.3}${offset 4}Ext VID1.5: ${fs_used_perc /media/Ext VID1.5}% ${goto 95}${font DroidSans:size=8.3}${fs_used /media/Ext VID1.5}${goto 127}/ ${offset 0}${fs_size /media/Ext VID1.5}${alignr}${font} ${voffset 5}${voffset -2}${font DroidSansFallback:size=8.3}${offset 4}Internal Video: ${fs_used_perc /media/INTERNAL VI}% ${font DroidSans:size=8.3} ${fs_used /media/INTERNAL VI}/ ${fs_size /media/INTERNAL VI}${alignr}${font} ${voffset 5}${voffset -2}${font DroidSansFallback:size=8.3}${offset 4}Ext Backup1: ${fs_used_perc /media/Ext Backup1}% ${font DroidSans:size=8.3} ${fs_used /media/Ext Backup1}/ ${fs_size /media/Ext Backup1}${alignr}${font} ${voffset 5}${voffset -2}${font DroidSansFallback:size=8.3}${offset 4}HTC Legend: ${fs_used_perc /media/900E-A67B}% ${font DroidSans:size=8.3} ${fs_used /media/900E-A67B}/ ${fs_size /media/900E-A67B}${alignr}${font} ${diskiograph 555753 eeeeec} ################## ## WEATHER ## ################## ${voffset 6}${font DroidSans:bold:size=8}${color4}WEATHER${offset 8}${color8}${voffset -2}${hr 2}${font} ${voffset 0}${goto 59}${font Weather:size=38}${color2}y${font}${voffset -33}${offset 14}${font RadioSpace:size=32}${color3}${execi 1800 conkyForecast -d HT -u}C${font} ${voffset 0}${font Ubuntu:size=24}${color4}${alignc}${execi 1800 conkyForecast -d CT}${font} ${voffset 10}${goto 20}${font ConkyWindNESW:size=41}${color3}${execi 1800 conkyForecast -d BS}${font}${voffset -40}${goto 98}${font ConkyWeather:size=45}${execi 1800 conkyForecast -d WF}${font}${voffset -39}${goto 188}${font MoonPhases:size=32}${execi 1800 conkyForecast -d MF}${font} ${voffset 6}${goto 28}${font DroidSansFallback:bold:size=8.45}${color4}${execpi 1800 conkyForecast -d WS -i| sed -e 's/calm'/'\$\{offset 2}Calm/g' -e 's/mph'/'\$\{offset 2}mph/g'}${goto 88}Feels like ${execi 1800 conkyForecast -d LT -u}${execpi 1800 conkyForecast -d MP| sed -e 's/First.*'/'\$\{goto 182}First Qtr/g' -e 's/Last.*'/'\$\{goto 184}Last Qtr/g' -e 's/New.*'/'\$\{goto 195}New/g' -e 's/Full.*'/'\$\{goto 195}Full/g' -e 's/Waning.*'/'\$\{goto 187}Waning/g' -e 's/Waxing.*'/'\$\{goto 187}Waxing/g'}${font} ${voffset 9}${goto 36}${font DroidSansMono:bold:size=8.35}${color3}${execi 1800 conkyForecast -d DW -s 1 -w}${goto 89}${execi 1800 conkyForecast -d DW -s 2 -w}${goto 143}${execi 1800 conkyForecast -d DW -s 3 -w}${goto 197}${execi 1800 conkyForecast -d DW -s 4 -w}${font} ${voffset 2}${goto 25}${font ConkyWeather:size=32}${color2}${execi 1800 conkyForecast -d WF -s 1 -e 4 -S 1}${font} ${voffset 0}${goto 25}${font DroidSans:bold:size=8.5}${color4}${execi 1800 conkyForecast -d HT -s 1 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 1 -u}${goto 79}${execi 1800 conkyForecast -d HT -s 2 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 2 -u}${goto 133}${execi 1800 conkyForecast -d HT -s 3 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 3 -u}${goto 187}${execi 1800 conkyForecast -d HT -s 4 -u}${offset 2}/${offset 2}${execi 1800 conkyForecast -d LT -s 4 -u}${font}
Must be a difference in Natty. For me, it looks like:
while my cal gives results like:Code:ncal -hbM Februar 2011 Mo Di Mi Do Fr Sa So 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
But again, I'm running Natty alpha 2, obviously there are differences even with basic programs like cal / ncal...Code:cal -h Februar 2011 So Mo Di Mi Do Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
Bookmarks