[Solved]Conky and word wrapping - Is there a way?

So I have a very limited area to work with, something like 176x360 (+/- a few pixels), and I want the ability to show an RSS feed. Well, the feed works of course, but due to the limited width, I'm in great need of word wrapping, and for that problem I have found no solution and going on for 2-3 hours straight, my head hurts
Anyway, here's my .conkyrc, not that it's needed of course.
# ~/.conkyrc
double_buffer yes
use_xft yes
xftfont Bitstream Vera Sans Mono:size=8
xftalpha 0.8
update_interval 1.0
total_run_times 0
own_window yes
own_window_type override
own_window_transparent yes
own_window_colour hotpink
own_window_hints undecorated,below,skip_taskbar,sticky,skip_pager
minimum_size 176 360
maximum_size 176 360
maximum_width 176
draw_shades no
draw_outline no
draw_borders no
stippled_borders 0
border_margin 0
border_width 0
default_color green
default_shade_color green
default_outline_color green
alignment bottom_right
gap_x 16
gap_y 16
no_buffers yes
uppercase no
TEXT
$alignc${nodename}
$alignc${sysname} ${kernel}
$hr
CPU:$alignr$cpu% ${cpubar 10,106}
RAM:$alignr$memperc% ${membar 10,106}
HDD:$alignr${fs_used_perc /}% ${fs_bar 10,106 /}
BAT:$alignr${battery_percent}% ${battery_bar 10,106}
$hr
Download: Upload:
eth0 ${downspeed eth0} $alignr${upspeed eth0}
wlan0 ${downspeed wlan0} $alignr${upspeed wlan0}
$hr
${alignc}ARCH NEWS
${rss http://www.archlinux.org/feeds/news/ 1 item_titles 10 }
I know this looks confusing and probably is full of critical error, but that simple because I'm a conky noob. I basically just downloaded a profile I liked and completely changed it over the course of a few hours.
Anyway, I'm rambling again, but if you've got any idea's, please do let me know.
Best regards.
Last edited by zacariaz (2012-08-27 17:19:35)

Okay, so I've found sort of a solution to part of the problem, so what I have so far look like this:
wget -quiet -O - archlinux.org/feeds/news/ | fmt -w 25 -g 25
It works as long as there are no words longer than 25 character, which I should think is rare, even including package names and such.
However there's still the issue parsing the xml so I get only what I want:
<item><title>$content</title><link>
This may be solved using some sort of terminal rss parser, but I would rather prefer not to.
Then there's the issue with reloading.
My current conky is set to reload every second, but of course one can't just pull the feed every second and I'm not convinced that conky has any built in solution for that problem. Of course I can always start a cronjob and save it all to a file, but portability would be nice.
anyway, I'll return later.

Similar Messages

  • After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    After hours of back-up, downloading and uploading...I am now updated with all the latest Mac software. However, I no longer have access to Excel and Word. Is there a way I can access my documents in either of those? Help, please.

    If you have older versions of excel and word that previously ran under the Rosetta emulator (allows PowerPC code to run on Intel system), they will no longer work with Lion.
    You can use the Apple programs Pages and Numbers to access the files. They can be bought and downloaded from the App store. NeoOffice is available at http://www.neooffice.org/neojava/en/index.php which has Lion support. OpenOffice doesn't talk to Lion support, it's at http://www.openoffice.org/

  • Microsoft EXEL and Word users, is there any way to make the program fill

    the whole screen? Like in Windows? i really dont like all these menus flying everywhere...
    any thoughts?
    thanx!!

    You can try using this.
    It doesn't keep the menus from "flying everywhere" (that's just the way things work on the Mac; actually, some Linux environments too), but at least it makes it possible to maximize the apps to full screen.

  • Read Only TextAreas with Carriage Return, Line Breaks and Word Wrapping

    Hi all,
    I know there are a few posts around this subject but I cannot find the answer to the exact problem I have.
    I have a page that has a 'TextArea with Character Counter' (4000 Chars) that is conditionally read only based on the users credentials (using the 'Read Only' attributes of the TextArea item).
    When the field is editable (not Read Only) everything works fine but when I make the field Read Only I start to have problems:
    The first problem is that the Carriage Return and Line Breaks are ignored and the text becomes one continuos block. I have managed to fix this by adding pre and post element text of pre and /pre tags. This has made the Carriage Return and Line Breaks word nicely and dispaly correctly.
    However, it has introduced a second problem. Long lines, with no Carriage Returns or Line Breaks, now extend to the far right of the page with no word wrapping, making my page potentially 4000+ characters wide.
    How can I get the field to be display only, with recognised Carriage Returns and Line Breaks, and Word Wrapping inside a fixed width of, say, 150 characters?
    Many thanks,
    Martin

    Hi,
    Just a cut and paste of yours with the field name changed:
    htp.p('<script>');
    htp.p('$x("P3_COMMENTS").readonly=true;');
    htp.p('</script>');I also have the following in the page HTML Header, could they be conflicting?
    <script type="text/javascript" language="JavaScript">
    function setReleaseToProd(wpTypeCode){
       //setReleaseToProd($v(this))
      var get = new htmldb_Get(null,$v('pFlowId'),'APPLICATION_PROCESS=set_release_to_prod',0);
      get.addParam('x01',wpTypeCode);
      gReturn = get.get();
      if(gReturn) {
         $s('P3_RELEASE_TO_PROD',gReturn);
      get = null;
    </script>I am a long way from knowing much about Javascript (this page code was written by someone else) so all help is much appreciated.
    Martin

  • Because the Firefox update today required me to update and install an update to an adobe application and then required me to restart my computer I "lost " the connection to my previous session and tabs. Is there any way to recover my tabs from yesterday?

    Because the Firefox update today required me to update and install an update to an adobe application and then required me to restart my computer I "lost " the connection to my previous session and tabs. Is there any way to recover my tabs from yesterday?

    Do you memeber the complete wording of the error message?
    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iPod fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - If still not successful that indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar

  • I had to restore my IPad and lost all my pics and videos. Is there any way I can get them back??

    I had to restore my IPad and lost all my pics and videos. Is there any way I can get them back?? They were all of my baby walking and his first words.   Please help!!!

    1. iTune Backup?
    2. iCloud Backup?
    3. PhotoStream?
    4. My Picture in your PC?
    5. Backup on Thumbdrive?

  • I own 3 ipods a g2 g5 and now g6 is there a way to use them all on one PC without losing anything

    I own 3 ipods a g2 g5 and now g6 is there a way to use Sync them all on one PC without losing anything

    iTunes will remember the settings for each device you connect using your account.

  • Me and my partner have just brought a new MacBook. We both have individual iTunes and iCloud accounts, is there any way we can access both accounts on one computer?

    Me and my partner have just brought a new MacBook. We both have individual iTunes and iCloud accounts, is there any way we can access both accounts on one computer?

    Set up 2 accounts one for each of you.

  • I just bought an new ipad mini with wifi and cellular. Is there any way to send text messages to people and contacts that do not have iphones such as friends with blackberrys or a samsung galaxy smartphone.

    I just bought an new ipad mini with wifi and cellular. Is there any way to send text messages to people and contacts that do not have iphones such as friends with blackberrys or a samsung galaxy smartphone from this ipad. Everytime I try to send a message to a person that does not have an Apple product ( Iphone or Ipad ) it comes up saying contact is not registered for iMessage and wont send it. I can only send them a message from my iPhone 4 instead. Do I have to install a new App from the App store to send these non iMessage cell users a message?

    FYI
    Complete guide to using iOS 6
    http://howto.cnet.com/ios-6-complete-guide/
    Guide to Built-In Apps on iOS
    https://sites.google.com/site/appleclubfhs/support/advice-and-articles/guide-to- built-in-apps-ios
    You can download a complete iOS 5 iPad User Guide and iOS 6 iPad User Guide here: http://support.apple.com/manuals/ipad/
    Also, Good Instructions http://www.tcgeeks.com/how-to-use-ipad-2/
    Apple - iPad - Guided Tours
    http://www.apple.com/ipad/videos/
    Apple iPad Guided Tours - Watch the videos see all the amazing iPad apps in action. Learn how to use FaceTime, Mail, Safari, Videos, Maps, iBooks, App Store, and more.
    http://www.youtube.com/watch?v=YT2bD0-OqBM
    http://www.youtube.com/watch?v=ROY4tLyNlsg&feature=relmfu
    http://www.youtube.com/watch?v=QSPXXhmwYf4&feature=relmfu
    How to - Articles & User Guides & Tutorials
    http://www.iphone-mac.com/index.php/Index/howto/id/4/type/select
    iPad How-Tos  http://ipod.about.com/lr/ipad_how-tos/903396/1/
    You can download this guide to your iPad.
    iPad User Guide for iOS 5
    http://itunes.apple.com/us/book/ipad-user-guide-for-ios-5/id470308101?mt=11
     Cheers, Tom

  • The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?

    I have recently switched from a PC to a MacBook Pro.
    I have a large number of documents and photographs on a multiterrabite external drive, backed up on a second multiterrabite external drive.
    Both external drives are formatted for MacIntosh. This has been verified by agents at an Apple store and also at Best Buy in two different cities.
    This is the problem:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    Thanks!
    Roderick Guerry
    [email protected]

    Roderick Guerry wrote:
    The MacBook Pro will not allow me to cut-and-paste to and from or to click-and-drag to the external drive. I can copy-and-paste, but then I must send the original to the trash, which doubles the time and effort. Is there any way to cut-and-paste?
    No, this is a philosophical difference between Apple and Microsoft. Apple believes that it's dangerous to cut a file in case the user never pastes it; in that case the file is lost. Microsoft seems to not have this problem (if I remember Windows correctly) because they don't delete the originating file if it's cut but never pasted.
    Even though Macs have a lot of keyboard shortcuts, philosophically Macs have traditionally been mouse-first. This applies to file copy operations. In your case, what a Mac user would do is open the source window, open the destination window (on your second drive), and then Command-drag the selected files from the source to destination window. This is because a normal drag would leave the originals behind, while adding the Command modifier key tells OS X that this is a Move, not a Copy, so don't leave the originals behind.
    (In addition there are different rules for drag-copying within the same volume or between different volumes. If you drag between two folders on the same volume, the files are moved. If you drag between different volumes, the files are copied unless you hold down Command to delete the copies on the source volume.)
    Roderick Guerry wrote:
    Also, the MacBook Pro will not allow me to rename multiple documents or photographs. I can click-and-rename a single one, but this is impossibly time consuming. I can batch-rename in iPhoto, but when I transfer the photographs to the external drive, the rename does not transfer.
    Two problems in this case. First, batch file renaming is not built into OS X unless you build something with Automator. However, there are many utilities that can do batch file renaming which you can find at macupdate.com or on the App Store. Since I work with media I often batch rename using one of the media managers I have lying around like Media Pro or Adobe Bridge (comes with Photoshop).
    iPhoto is a database front end designed to shield the file system from the consumer and let them concentrate on creativity and sharing. As such it is often a poor choice for managing files directly. When you "transferred the photographs" chances are you moved the originals, not the ones iPhoto edited which are stored in a hidden folder.
    Roderick Guerry wrote:
    I’m reduced to using my wife’s Toshiba to cut-and-past, rename, and transfer documents. It works perfectly. Is there any way to do this on the MacBook Pro?
    There will not be a way to do it exactly like Windows. As described above, there are ways to do it "the Mac way." If it is possible to remove judgment on which way is "better" you might find the Mac way to be acceptable, but of course sometimes we simply prefer what we're used to.

  • I downloaded Lion from the app store on to my iMac and did not save it to a thumb before installing.  Do I have to buy it again to install on my Macbook Pro and iPad or is there another way to do that?

    I downloaded Lion from the App Store on to my iMac and did not save it to a thumb before installing.  Do I have to buy it again to install  it on my Macbook Pro and iPad,  or is there another way to do that?
    All my electronics are about a year old.   iPad is Model MB293LL (4.2.1) only wi-fi - no phone.
    MacBook Pro is  OSX 10.6.8 Build 10K549.  Also have an AT&T iPhone that I basically use as a Palm, since I changed carriers.
    Thank you for your help. 
    ps: I got an error message and it looks like this did not get posted the first time.  2nd try.

    Open the Mac App Store on your MacBook Pro
    Hold the Option key and click on “Purchases”
    Hold the Option key and click on “OS X Lion” from the purchased app list
    “Installed’ should now say “Install” which allows you to download OS X Lion.
    This assumes you are using the same Apple ID on both computers.
    Lion does not get installed on an iPad. It runs iOS.

  • I have the app "viPlay" on my iPad and iPhone. Is there any way that it could be available for the Apple TV? I'd like to access my personal videos from my hard drive using the Apple TV through the 'viPlay' app.

    I have the app "viPlay" on my iPad and iPhone. Is there any way that it could be available for the Apple TV? I'd like to access my personal videos from my hard drive using the Apple TV through the 'viPlay' app.

    Welcome to the Apple Community.
    Nobody here will have any information about that since the community is only made up of users like you or I. Anything else is mere speculation and speculation is not permitted here under the Terms of Use for these communities.
    Any responses you may receive may well be removed and would be wholly unreliable in any case.
    If you believe that Apple's product may be enhanced in anyway you can leave feedback here.

  • My ipod was stolen and i managed to get on here only because i still have my serial number and other info. is there a way i can still track my ipod? i never entered it in with icloud

    my ipod was stolen and i managed to get on here only because i still have my serial numbers and other info. is there a way i can track it even though i didnt enter it into the icloud?

    No

  • My Ipod has a lot of music on it! but my computer crashed and I lost all my info and data! Is there a way that i can access my Ipod's data without itunes

    My Ipod has a lot of music on it! but my computer crashed and I lost all my info and data! Is there a way that i can access my Ipod's data without itunes 

    See Recover your iTunes library from your iPod or iOS device.
    tt2

  • Importing a lot of video clips from a Sony camera to FCE; during the Log and Transfer process, is there a way to add multiple clips to the browser instead of one at a time?

    Importing a lot of video clips from a Sony camera to FCE; during the Log and Transfer process, is there a way to add multiple clips to the browser instead of one at a time?

    Select one and click cmd-A which selects them all.
    Then click the import button if it hasn't started already.

Maybe you are looking for

  • Can't upload more than one photo to facebook

    Hallo, I am new to this, so I apologise if I am doing things wrong. I have a Z2 which is fully up to date and oterhwise doing fine, however for the last week or so I have discovered that I can no longer upload more than one picture from my album to f

  • # appearing in standard text.

    Hello, I have created a standard text and using the text in a smartform. There are many words with apostrope in them. For eg consumer's. But when it is printed in the smartform , the text is printed as consumer#s. Other standard texts which contains

  • Please Help me in Labview and MS Access Database Connective

    Please Help me in LabVIEW and MS Access Database Connective through an example . I am new to LabVIEW .I need simple example that take a data from a table and display it on front panel . thanks in advance .

  • My Skype crashes whenever I make the first call/re...

    My Skipe crashes whenever I make the first call or receive the first call. Whether it be by skype to phone or from skype to skype. I have to sign out from skype and then sign in again for every call I want to make. Solved! Go to Solution. Attachments

  • Which is stable SOA 10.1.3.4.0 MLR#10 and 10.1.3.5.0 MLR#2

    Hi All- We are planning to move from SOA 10.1.3.3.0 to higher version in 10g, can anybody tell me which version is stable? If anybody can tell some points about which one is better, will be very helpful to me. Thanks Sreejit