Search Results for 'conky weather'

Forum Forums Search Search Results for 'conky weather'

Viewing 15 results - 61 through 75 (of 77 total)
  • Author
    Search Results
  • #10253
    Member
    sleekmason

      Here is my Star Wars result.

      I found I could use a single file in ~/xscreensaver/settings for what I needed. I just changed the xscreensaver path to the settings file and everything works. This makes it a bit easier to edit when in ~/home.
      I still needed the getrss2txt file, but not the gen_sst file. I used sed to parse the moon stuff, and cat to read the total raw weather my conky generates. Because I like the fortunes package, I was delighted to find I could just add a line with “fortune” and it was picked up well by xscreensaver. Pointing to other txt files is a breeze.

      I had problems when trying to add other rss sources. Don’t know why. The World News is good.
      I liked all of the weather options available, and may switch to one of them in the future:)

      Still messing with it and am having fun doing so!


      I have a question about how to add space between the messages so they are not grouped one after the other.
      Is this possible?

      Attachments:
      Moderator
      BobC

        I got the screen saver itself working pretty well now. Need to work on the web browser idea more and create modularized scripts and the directory processor. Here is a high speed video of it and the script used to create it thus far. The scripts for the weather related pages are in the recent conky thread.

        posting video from phone will add script here.  My apologies to 736, i have to come back to the python later after I have this working...
        
        echo  > ~/.icewm/icekeys.txt
        echo 'IceWM - Keyboard Shortcut from Keys' >> ~/.icewm/icekeys.txt
        cat /home/bobc/.icewm/keys | sed -e '/^#key /Id' | sed -e '/^###/d' | sed -e 's/^key //Ig' | sed -e 's/\"//g' >> ~/.icewm/icekeys.txt
        echo  >> ~/.icewm/icekeys.txt
        echo 'IceWM - Keyboard Shortcuts from Preferences' >> ~/.icewm/icekeys.txt
        cat /home/bobc/.icewm/preferences | grep -e '^Key' | sed -e 's/Key//g' | sed -e 's/\"//g' | sed -e 's/\=/ /g' >> ~/.icewm/icekeys.txt
        echo  >> ~/.icewm/icekeys.txt
        echo 'Chicago Weather Conditions and 7 day Forecast' >> ~/.icewm/icekeys.txt
        /bin/bash getweatherc.sh KORD >> ~/.icewm/icekeys.txt
        echo  >> ~/.icewm/icekeys.txt
        cat /var/tmp/getweather7d.tmp05.txt >> ~/.icewm/icekeys.txt
        echo  >> ~/.icewm/icekeys.txt
        
        myrssheading='BBC News Feed'
        myurl=http://feeds.bbci.co.uk/news/rss.xml && \
        myfile=0200rssBBC && \
        mymaxlines=25 && \
        myshowdescr=yes && \
        echo  > /tmp/sstnb_rss_raw_$myfile.xml
        echo " <title><![CDATA[$myrssheading - $myurl]]></title>" >> /tmp/sstnb_rss_raw_$myfile.xml
        curl -s $myurl >> /tmp/sstnb_rss_raw_$myfile.xml
        if [[ "$myshowdescr" == "yes" ]]; then
        	cat /tmp/sstnb_rss_raw_$myfile.xml | grep -E "<title>|<description>" > /tmp/sstnb_rss_text_$myfile.tmp10 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp10 | sed "s/^ \+<title><\!\[CDATA\[//g;s/\]\]><\/title>//;" > /tmp/sstnb_rss_text_$myfile.tmp20 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp20 | sed "s/^ \+<description><\!\[CDATA\[/   /g;s/\]\]><\/description>//;" > /tmp/sstnb_rss_text_$myfile.tmp30 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp30 | grep -v "<title>" | head -n $mymaxlines > /tmp/sstnb_rss_text_$myfile.txt && \
        	cat /tmp/sstnb_rss_text_$myfile.txt >> ~/.icewm/icekeys.txt
        else
        	cat /tmp/sstnb_rss_raw_$myfile.xml | grep -E "<title>" > /tmp/sstnb_rss_text_$myfile.tmp10 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp10 | sed "s/^ \+<title><\!\[CDATA\[//g;s/\]\]><\/title>//;" > /tmp/sstnb_rss_text_$myfile.tmp20 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp20 | grep -v "<title>" | head -n $mymaxlines > /tmp/sstnb_rss_text_$myfile.txt && \
        	cat /tmp/sstnb_rss_text_$myfile.txt >> ~/.icewm/icekeys.txt
        fi
        echo  >> ~/.icewm/icekeys.txt
        
        myrssheading='ABC World News Feed'
        myurl=https://abcnews.go.com/abcnews/internationalheadlines && \
        myfile=0200rssABCW && \
        mymaxlines=25 && \
        myshowdescr=no && \
        echo  > /tmp/sstnb_rss_raw_$myfile.xml
        echo " <title><![CDATA[$myrssheading - $myurl]]></title>" >> /tmp/sstnb_rss_raw_$myfile.xml
        curl -s $myurl >> /tmp/sstnb_rss_raw_$myfile.xml
        if [[ "$myshowdescr" == "yes" ]]; then
        	cat /tmp/sstnb_rss_raw_$myfile.xml | grep -E "<title>|<description>" > /tmp/sstnb_rss_text_$myfile.tmp10 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp10 | sed "s/^ \+<title><\!\[CDATA\[//g;s/\]\]><\/title>//;" > /tmp/sstnb_rss_text_$myfile.tmp20 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp20 | sed "s/^ \+<description><\!\[CDATA\[/   /g;s/\]\]><\/description>//;" > /tmp/sstnb_rss_text_$myfile.tmp30 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp30 | grep -v "<title>" | head -n $mymaxlines > /tmp/sstnb_rss_text_$myfile.txt && \
        	cat /tmp/sstnb_rss_text_$myfile.txt >> ~/.icewm/icekeys.txt
        else
        	cat /tmp/sstnb_rss_raw_$myfile.xml | grep -E "<title>" > /tmp/sstnb_rss_text_$myfile.tmp10 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp10 | sed "s/^ \+<title><\!\[CDATA\[//g;s/\]\]><\/title>//;" > /tmp/sstnb_rss_text_$myfile.tmp20 && \
        	cat /tmp/sstnb_rss_text_$myfile.tmp20 | grep -v "<title>" | head -n $mymaxlines > /tmp/sstnb_rss_text_$myfile.txt && \
        	cat /tmp/sstnb_rss_text_$myfile.txt >> ~/.icewm/icekeys.txt
        fi
        echo  >> ~/.icewm/icekeys.txt
        	
        cat ~/.icewm/icekeys.txt
        
        

        https://youtu.be/oeF9fxku95w

        • This reply was modified 5 years ago by BobC.
        Moderator
        BobC

          Concept: I really don’t care that much about screen space when the screensaver is running. What a great opportunity to display things I want to know, things I need to remember, or some fun things here or there, too… And can it look appealing, too?

          So Xscreensaver has on the advanced tab a Text Manipulation option that includes the ability to display a file or even run a program and display what would normally go to standard output.

          I never could remember the Keyboard shortcuts for IceWM because I don’t see them and never use them. Its a viscous circle because not using them, or seeing them, I’ll never learn them, either.

          Why not use the screensaver to teach me things that I want to learn or remember, but never have time to?

          So 736 graciously wrote a Python to take the ~/.icewm/keys file and make readable text out of the key assignments. I’ve been wanting to learn Python, so that’s really pretty cool.

          I’m also learning shell scripting, and have a bloated conky that has a news feed and weather, both of which would be nice parts of a sceensaver text sequence, and could be made to popup on demand with a button, menu option or shortcut key.

          And what about a daily events calendar? To do list? Multiple news feeds?

          So, I’m thinking about it as a shell program that runs a script that processes all the executable files in a folder, like /etc/xscreensaver.d, sorted, and each program that runs sends its output to the standard output and appears as the text in the screensaver.

          For example:

          0010dispicekeys.sh
          0020dispicepreferences.sh
          0030dispnewsfeednpr.sh
          0040dispnewsfeedbbc.sh
          0050dispcurrentweather.sh
          0060dispweather7d.sh
          0070disptodolist.sh
          0080disptodaysevents.sh
          0090dispcalendar.sh

          Add a screensaver that displays text in a cool way like Starwars, tweak the scroll speed, and it will both look nice as well as be functional and configurable.

          • This topic was modified 5 years ago by BobC.
          #9905

          In reply to: Conky Mods

          Member
          ohh

            Howdy sleekmason,

            Here’s pretty much the final version, I opted to no, on transparency, so you could see the text plainly. I will add the conky files if you are interested. Still working on a weather conky will be a few days though.

            Here are the files: I put them as a tar for space considerations.
            In order to run both conky’s, note changes to ~/.desktop-session –> desktop-session.conf –> change LOAD_CONKY=”true” to “false” and edit
            the ~/.deskstop-session startup file adding: of course substitute your user name 🙂 and path

            #start Conky from ~/home/ohh/conky_files
            sleep 10
            conky -c ~/conky_files/conky_right &
            conky -c ~/conky_files/conky_left1

            also modifiy /usr/local/bin/conkytoggle.sh so it is same as above, again with your path and username

            if pidof conky | grep [0-9] > /dev/null
             then
              killall conky 
             else
              conky -c ~/conky_files/conky_right &
              conky -c ~/conky_files/conky_left1 
            fi

            cheers,
            ohh

            • This reply was modified 5 years ago by ohh. Reason: ins
            • This reply was modified 5 years ago by ohh. Reason: add info
            • This reply was modified 5 years ago by ohh. Reason: omission

            Every matter requires prior knowledge.

            - Du Mu
            The Art of War

            #9855

            In reply to: Conky Mods

            Member
            sleekmason

              Created a super easy conky weather in text format. No icons, fonts, or anything else to mess with but a single file to change location, and an addition to your .conkyrc.

              Based off of accuweather rss-1 from here: https://forums.bunsenlabs.org/viewtopic.php?id=189

              This weather script gives the current condition plus 2 days forecast. Updates every 10 minutes.



              The file to place in your /home folder from the sleekweather.zip is .weather, a hidden file, so when you don’t see it, enable hidden files.

              Info: Inside .weather you will find the file “1d” Two additional files are created when calling “1d”, “weather_raw” and “weather”.
              Conky will read from ~/.weather/weather.



              Steps:
              1. Move .weather to $HOME (i.e. /home/sleek/.weather)

              2. Open the file “1d” inside .weather and change your zipcode where indicated. If in locations other than USA, please refer to the link above for directions.

              3. Open your .conkyrc file using either the antiX control center or your favorite text editor.

              Copy this to the bottom of your conky and save:

              ${color2}${execi 600 $HOME/.weather/1d}
              ${color2}${execi 600 cat $HOME/.weather/weather | fold -s -w29} 


              Would love to have the more elegant method for calling the script with conky . . .(one liner?), and any other code changes others may suggest.

              Thats it! Just another weather option.

              #7627

              In reply to: Conky Mods

              Moderator
              BobC

                At line 67/68 its pretty well marked in getweather7d.sh. Change the width from 80 to 29 and the number of line to the maximum you can fit. You can probably squeeze in today and tomorrow, anyway. They could probably be passed from the conky as a parameter, or just strung along in the conky code like you did with the current conditions

                		# wrap text for 80 char wide display, limit to 23 lines of output
                		fold -s -w 80 /tmp/getweather7d.tmp90.txt | sed -e '23,$d' > /tmp/getweather7d.tmp99.txt
                                           ^^                                       ^^                                  
                
                #7626

                In reply to: Conky Mods

                Member
                sleekmason

                  The neat one is the 7 day forecast. See how I shrunk it to fit?

                  Yah, I like that one as well but ran out of room! Tomorrow I’m going to separate a few items out and make two or three separate windows.

                  I probably went through 10 downloads scouring the internet for a conky weather that would work. Thank you:)

                  #7618

                  In reply to: Conky Mods

                  Member
                  sleekmason

                    That weather is an easy add! Thank you!

                    For those that just want the weather, take the getweatherc.sh from Bob’s /usr/local/bin, put it in yours, and change the permissions to make it executable.
                    Add this line to your conkyrc:

                    ${color2}${execi 300 getweatherc.sh KORD | fold -s -w29}

                    You will need to change KORD to your own airport weather code. Not sure the codes are only for airports. Mine was. The directions are in Bob’s Conky.

                    I changed the above conkyrc code to match the existing antiX conky style, and added a fold in order to have it all fit. Don’t know if less info can be displayed . . My airport had less info than KORD did:) Nice addition.-


                    ***FYI, If you comment line 45, and uncomment line 46 of getweatherc.sh, the result will be better readability

                    	#locationx=$(from_xml "location")
                        location="$(echo "$locationx" | cut -f1 -d",")"
                    • This reply was modified 5 years, 2 months ago by sleekmason.
                    • This reply was modified 5 years, 2 months ago by sleekmason.
                    • This reply was modified 5 years, 2 months ago by sleekmason.
                    Attachments:
                    #7617
                    Member
                    sleekmason

                      I think if you simply add another file without re-adding the old one, it loads only the new . . . maybe. can’t hurt to try it:) By the way, Got the weather working. Nice, simple little deal there. Just one sh file and a single line in Conky.

                      #7545

                      In reply to: Conky Mods

                      Moderator
                      BobC

                        Ok, My conky has been cobbled together over the years. Its not perfect by any stretch, as I don’t actually know much linux stuff, just learning as I go. A good example being that /tmp doesn’t need to write to the disk. So here is a pic of it in its current form, and the conky code itself. I’ll put the scripts it runs in a tar file…

                        PS: something that I realized, my xbattbar is modified to be able to output a file for the script called by conky to grab the latest value from, and the maintainer never never replied, so I need to come up with a way to distribute that for the battery section to work well. I’m also changing the scripts to use files in /tmp when files are used.

                        I tried to fix the image so you can see the whole thing, but it posted a 2nd picture instead of replacing the first one. Oh well, if anyone knows how, delete both and I’ll try again with an even smaller one….

                        I added the tar file. You need to have xget, curl and xbattbar, as well as conky installed for this to work. My xbattbar programs (source included) are compiled on an _x64 system, but I don’t know if that matters. Someone like Dave or Skidoo that know what they are doing should look at my code before you guys try to run it, as like I said, I am no linux guru, and can barely tread water. That means I tried, but no warranty 🙂 Ok, the website won’t allow a .tgz file, so I have renamed it to .zip to try that. If that works, you will need to rename it back to .tgz to unextract and install it.

                        Sorry, I would remove the pics and try smaller ones, but can’t figure out how…

                        # Update interval in seconds
                        update_interval 5
                        
                        text_buffer_size 6000
                        max_specials 600
                        
                        # set to yes if you want Conky to be forked in the background
                        background yes
                        
                        short_units yes
                        
                        cpu_avg_samples 2
                        net_avg_samples 2
                        
                        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 Sans:size=10
                        
                        # Create own window instead of using desktop (required in nautilus, pcmanfm and rox desktops)
                        own_window yes
                        own_window_type desktop
                        own_window_transparent yes
                        own_window_hints undecorated,sticky,skip_taskbar
                        
                        # Text alpha when using Xft
                        xftalpha 0.8
                        
                        #on_bottom no
                        
                        # mail spool
                        #mail_spool $MAIL
                        
                        # Use double buffering (reduces flicker, may not work for everyone)
                        double_buffer yes
                        
                        # Minimum size of text area
                        minimum_size 445 869
                        maximum_width 545
                        
                        # Gap between borders of screen and text
                        # x = distance from right edge
                        # y = distance from top edge
                        gap_x 15
                        gap_y 1
                        
                        # 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
                        
                        # color scheme
                        color0 black
                        color1 red
                        color2 green
                        color3 yellow
                        color4 blue
                        color5 magenta
                        color6 cyan
                        color7 white
                        # hot pink
                        #color8 #FF078B
                        # flourecent orange
                        #color9 #FF9C07
                        
                        # Default colors and also border colors
                        default_color white
                        default_shade_color white
                        default_outline_color white
                        
                        # Text alignment, other possible values are commented
                        #alignment top_left
                        alignment top_right
                        #alignment bottom_left
                        #alignment bottom_right
                        
                        # 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
                        
                        # set to yes if you want all text to be in uppercase
                        uppercase no
                        
                        # boinc (seti) dir
                        # seti_dir /opt/seti
                        
                        # stuff after 'TEXT' will be formatted on screen
                        TEXT
                        ${font Sans:size=16}${color #FF078B}${nodename}  ${font Sans:size=10}${color2}Op/Sys: ${color}${head /etc/antix-version 1}\
                        ${color2}Kernel: ${color}$sysname $kernel \
                        ${color2}Batt: ${color}${battery_short BAT0}-${execi 10 conky-battery.sh}\
                        ${if_match "${battery_short BAT0}" >= "D"}${if_match "${battery_short BAT0}" < "E"}${if_match ${battery_percent BAT0} <= 33}\
                        ${if_match ${battery_percent BAT0} >= 1}${execi 10 lowbattery}${endif}${endif}${endif}${endif}
                        ${color2}CpuAvg: ${color}${freq_g}Ghz ${machine} - ${color}${cpu}%  ${color2}Temp: ${color}${acpitemp}'C\
                        ${color2}  Automount: ${color}${execi 120 grep -q "^automount=TRUE" $HOME/.desktop-session/automount.conf 2>/dev/null && echo "On" || echo "Off"}  \
                        ${color2}Display: ${color}${execi 120 xdpyinfo | sed -n -r "s/^\s*dimensions:.*\s([0-9]+x[0-9]+).*/\1/p"}
                        ${color2}  Cpu 1: ${color}${cpu cpu1}% \
                        ${if_match ${cpu cpu1} <= 50}\
                        ${color green}${cpubar cpu1 9}\
                        ${else}\
                        	${if_match ${cpu cpu1} <= 80}\
                        ${color orange}${cpubar cpu1 9}\
                        	${else}\
                        ${color red}${cpubar cpu1 9}\
                        	${endif}\
                        ${endif}
                        ${color2}  Cpu 2: ${color}${cpu cpu2}% \
                        ${if_match ${cpu cpu2} <= 50}\
                        ${color green}${cpubar cpu2 9}\
                        ${else}\
                        	${if_match ${cpu cpu2} <= 80}\
                        ${color orange}${cpubar cpu2 9}\
                        	${else}\
                        ${color red}${cpubar cpu2 9}\
                        	${endif}\
                        ${endif}
                        ${color2}Ram : ${color}$mem${color}/${color}$memmax ${color}- $memperc% \
                        ${if_match ${memperc} <= 50}\
                        ${color green}${membar 9}\
                        ${else}\
                        	${if_match ${memperc} <= 80}\
                        ${color orange}${membar 9}\
                        	${else}\
                        ${color red}${membar 9}\
                        	${endif}\
                        ${endif}
                        ${color2}Home:/home:${color} ${fs_free /home}Free ${color}= ${fs_free_perc /home}%       \
                        ${if_match ${fs_free_perc /home} < 10}\
                        ${color red}${fs_bar 9 /home}\
                        ${if_match ${fs_free_perc /home} < 3}${execi 60 lowspace /home}${endif}\
                        ${else}\
                        	${if_match ${fs_free_perc /home} < 20}\
                        ${color orange}${fs_bar 9 /home}\
                        	${else}\
                        ${color green}${fs_bar 9 /home}\
                        	${endif}\
                        ${endif}
                        ${if_match ${acpitemp} > 77}${execi 60 hightemp}${endif}\
                        ${color2}eth0 IP: ${color}${addr eth0} ${color2}WiFi wlan0: ${color}${wireless_essid wlan0} ${color2}IP:${color} ${addr wlan0} ${color2}spd: ${color} ${wireless_bitrate wlan0} ${color2}strength: ${color3} ${wireless_link_bar 9 wlan0}
                        ${color2}Processes: ${color}$processes  ${color2}Running: ${color}$running_processes ${color2}Uptime: ${color}$uptime   ${color2}
                        ${color3}CPU%  MEM%   PID      Program
                        ${color}${top cpu 1} ${top mem 1} ${top pid 1}  ${top name 1}
                        ${color}${top cpu 2} ${top mem 2} ${top pid 2}  ${top name 2}
                        ${color}${top cpu 3} ${top mem 3} ${top pid 3}  ${top name 3}
                        ${color}${top cpu 4} ${top mem 4} ${top pid 4}  ${top name 4}
                        ${color}${top cpu 5} ${top mem 5} ${top pid 5}  ${top name 5}
                        ${color3}${execi 120 conky-rssheader.sh ": Headlines, Current Weather and 7 Day Forecast"}
                        ${color}${execi 120 conky-rss.sh http://abcnews.go.com/abcnews/topstories 10 2}
                        # Parameter KORD is National Weather Service code for OHare Airport based on http://w1.weather.gov/xml/current_obs/KORD
                        # codes found at https://forecast.weather.gov/stations.php?foo=0
                        ${font Sans:size=10}${color3}${execi 300 getweatherc.sh KORD}
                        # Parameter il/ilz014.txt is National Weather Service directory and filename for Chicago zone area based on http://tgftp.nws.noaa.gov/data/forecasts/zone/il/ilz014.txt
                        # codes found at http://www.nws.noaa.gov/mirs/public/prods/maps/pfzones_list.htm
                        ${font Sans:size=8}${color}${execi 300 getweather7d.sh il/ilz014.txt}
                        ${font courier:bold:size=15}${color3}                     ${time %a} ${time %b} ${time %d} ${time %Y}
                        ${color3}${font courier:bold:size=13}${execpi 1200 DJS=<code>date +%_d</code>; cal | sed '1d' | sed -e 's/[\x5F]//g' | sed -e 's/[\x08]//g' | sed '2s/^/\${color}/' | sed 's/^/                         /g' | sed s/"\(^\|[^0-9]\)$DJS"'\b'/'\1${color2}'"$DJS"'$color'/}
                        
                        • This reply was modified 5 years, 2 months ago by BobC.
                        • This reply was modified 5 years, 2 months ago by BobC.
                        • This reply was modified 5 years, 2 months ago by BobC.
                        #7517
                        Member
                        sleekmason

                          Howdy BobC,

                          Glad you found a solution that works. Also, . . Noticed you have weather on your conky . . any chance you’d be willing to share here?
                          conky-mods/


                          I can’t seem to get any of the ones I find to work!

                          • This reply was modified 5 years, 2 months ago by sleekmason.
                          #7242

                          In reply to: Conky Mods

                          Member
                          sleekmason

                            I’ve been looking into conky more and more! The options seem limitless.
                            Below are all the changes Iv’e made to the existing ~/.conkyrc. (See Screenshot!).

                            Personally, I think it is much more usable now with more info. I cleaned up the code a bit too. Everything uses color2, and so the color can be changed with just the one code change.

                            I also changed in mine up above the TEXT line:

                            # Update interval in seconds
                            update_interval 2

                            From one second.

                            At the bottom of this post is an addition you may want that gives the top (no pun intended) 5 processes for both cpu and memory. Could be useful to some.


                            Anyway, if you would like to try my version, make a back up first in case you decide it was a bad idea;) You may also want to install fortunes, and fortune-mod if you like the cookie at the bottom.
                            In a terminal:
                            cp ~/.conkyrc .conkyrc.bak


                            Then open up ~/.conkyrc with your favorite editor and change everything under “TEXT” with the below. –> Save.

                            ${color2}${alignc}${font DejaVu Sans:size=14}${offset -11}antiX${color2}  |  ${color2}${font DejaVu Sans:size=14}${time %I:%M}
                            ${color2}${font DejaVu Sans:size=10}Uptime: $alignr $uptime
                            $hr
                            ${color2}${font DejaVu Sans:size=9}Repo: $alignr${execi 1000  cat /etc/debian_version}
                            ${color}${font DejaVu Sans:size=9}Kernel: $alignr $kernel
                            
                            ${color2}${font DejaVu Sans:size=9}Total Processes:                $color $processes
                            ${color}Automount: ${alignr}${color2}${execi 60 grep -q "^automount=TRUE" $HOME/.desktop-session/automount.conf 2>/dev/null && echo "enabled" || echo "disabled"}
                            
                            ${color}Freq:${color2}${alignr}${freq}
                            ${color}Cpu:${alignr}${color2}${cpu}${color}%
                            ${cpubar 4}
                            
                            ${color}Ram:${alignr}$mem ${color2}  /${color} $memmax
                            ${membar 4} 
                            ${color}Swap:${alignr}$swap ${color2} /${color} $swapmax
                            ${swapbar 4}
                             
                            Root: $alignr ${fs_used /} / ${fs_size /}
                            ${fs_bar 4 /}
                            Home: $alignr ${fs_used /home} / ${fs_size /home}
                            ${fs_bar 4 /home}
                            ${if_up eth1}${color}Eth0 Up: $alignr${color2} ${upspeed eth0}
                            ${color}$alignr${upspeedgraph   eth0 24,178 5599cc 5599cc}
                            ${color}Eth0 Down: $alignr${color2} ${downspeed eth0}
                            ${color2}$alignr${downspeedgraph eth0 24,178  5599cc 5599cc}${endif}${if_up eth1}
                            ${color}eth1 up: $alignr${color2} ${upspeed eth1}
                            ${color}$alignr${upspeedgraph   eth1 30,170 5599cc 5599cc}
                            ${color}eth1 down: $alignr${color2} ${downspeed eth1}
                            ${color2}$alignr${downspeedgraph eth1 30,170  5599cc 5599cc}${endif}${if_up wlan0}
                            ${color}Wlan0 Up: $alignr${color2} ${upspeed wlan0}
                            ${color2}$alignr${upspeedgraph   wlan0 24,178 5599cc 5599cc}
                            ${color}Wlan0 Down: $alignr${color2} ${downspeed wlan0}
                            ${color2}$alignr${downspeedgraph wlan0 24,178 5599cc 5599cc}${endif}${if_up wlan1}
                            ${color}wlan1 up: $alignr${color2} ${upspeed wlan1}
                            ${color2}$alignr${upspeedgraph   wlan1 24,170 5599cc 5599cc}
                            ${color}wlan1 down: $alignr${color2} ${downspeed wlan1}
                            ${color2}$alignr${downspeedgraph wlan1 24,170 5599cc 5599cc}${endif}
                            Battery Level: ${alignr}$battery_percent%
                            ${battery_bar 4}
                            
                            $alignr${execi 3114 fortune -s | fold -s -w25}
                            ${voffset 800} 

                            This is an addition if you like that will show top processes:

                            ${color2}%CPU
                            $alignr${color2}${offset 11}${top name 1}${top cpu 1}   
                            $alignr${color2}${offset 11}${top name 2}${top cpu 2}   
                            $alignr${color2}${offset 11}${top name 3}${top cpu 3}   
                            $alignr${color2}${offset 11}${top name 4}${top cpu 4}   
                            $alignr${color2}${offset 11}${top name 5}${top cpu 5}   
                                  
                            ${color2}%Memory 
                            $alignr${color2} ${top name 1}${top mem 1}
                            $alignr${color2} ${top name 2}${top mem 2}
                            $alignr${color2} ${top name 3}${top mem 3}
                            $alignr${color2} ${top name 4}${top mem 4}
                            $alignr${color2} ${top name 5}${top mem 5}

                            I had to use offsets on mine. And that goes for all of these I post. Conky is fickle. Sometimes adjustments to the offsets don’t translate well.

                            I might try to get an easy weather report in there too. Maybe just temp and condition.

                            • This reply was modified 5 years, 2 months ago by sleekmason. Reason: changed the color items in the last code
                            Attachments:
                            #6935

                            In reply to: Conky Mods

                            Anonymous

                              ( posting a couple bookmarked links b/c I don’t have any remarkable self-made conky mods )

                              LOTS of ideas in this 81pp topic at BunsenLabs forum:
                              Topic: » Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

                              and the BunsenLabs “Tutorials” subforum showcases several conky mod ideashttps://forums.bunsenlabs.org/viewforum.php?id=9

                              Here’s an interesting fortunes datafile: https://github.com/KERNELULTRAS/kernel-fortune/blob/master/fortunes

                              #6930
                              Forum Admin
                              rokytnji

                                I would ask you to put it right here in tips and tricks.

                                Alrighty then. From my post in another tips and tricks thread.

                                Might mention using the tab key to finish completing the typing out the dpkg -i command when building the kernel .deb. package.

                                It saves my bacon a lot when in a folder with a terminal and trying to be geeky. Nice tutorial as always sleekmason. Thanks.

                                example on mine

                                harry@biker:~
                                $ ls
                                backup           cl2                 Downloads               mocdata.py   Screeny    weather.sh
                                batti-0.3.8      Claws_Themes        Games                   mocpdata.py  scripts
                                Books            Comics              Music        test
                                Calibre Library  Icons                   Pictures     Themes
                                Cartoons         Desktop             Images                  Public       Videos
                                cl1              Documents           Isos                    S7           Wallpaper
                                harry@biker:~
                                $ cd ba
                                

                                I hit the tab key after typing in ba. Walla

                                harry@biker:~
                                $ cd ba
                                backup/      batti-0.3.8/ 
                                

                                so to narrow things down. I type in ‘batt’ Hit the tab key

                                harry@biker:~
                                $ cd batti-0.3.8/

                                The tab key keeps me from making typo errors when typing out large lines of code. Being I have large ham hands and fingers and am a 2 finger type of keyboard user.

                                Note by ROK. Maybe Just to explain a little better.

                                harry@biker:~/Documents/Documents
                                $ ls
                                bookmarks.html        mozilla_hotkeys.pdf                    pastebin
                                Broadcom wl firmware  optiplex-gx280_setup guide_en-us.pdf   pet_text
                                conkyrc               optiplex-gx280_user's guide_en-us.pdf  record_ desktop_graphics_chip
                                Manuals               partition_terminal readout
                                harry@biker:~/Documents/Documents
                                $ 
                                

                                Lets say I wanna get into the pastebin folder but do not want to type pastebin out.

                                harry@biker:~/Documents/Documents
                                $ cd pas
                                

                                Hit the tab key

                                harry@biker:~/Documents/Documents
                                $ cd pastebin/
                                harry@biker:~/Documents/Documents/pastebin
                                

                                As a freebie to this how to . I use the ls command to see what is inside the pastebin folder . If I want to know permissions allowed of the files in there. I use ls -l instead.
                                cd command is my friend in terminal moving around the AntiX Linux house I built. Like a skate board. But using linux command shortcut lingo is another subject with a ton of learning involved that I will not cover in this thread. There should be a bookmark in your AntiX folder in your browser for command line.

                                `

                                Sometimes I drive a crooked road to get my mind straight.
                                Not all who Wander are Lost.
                                I'm not outa place. I'm from outer space.

                                Linux Registered User # 475019
                                How to Search for AntiX solutions to your problems

                                #5156
                                Forum Admin
                                rokytnji

                                  Inxi also gives some weather information if I remember correctly. I cannot recall the syntax at the moment… inxi -wxx?

                                  Mainly current conditions. I run a simple weather for current tempature outside in conky also. From here.

                                  https://bbs.archlinux.org/viewtopic.php?id=37381

                                  Since it is mostly just temperature in the desert you wish to know about.

                                  Here is inxi weather

                                  harry@biker:~$ inxi -xxx -W 79772
                                  Weather:   Conditions: 39 F (4 C) - Clear Wind: From the North at 4 MPH Humidity: 37%
                                             Pressure: 30.54 in (1034 mb) Wind Chill: 37 F (3 C)
                                             Location: Pecos TX (US) Altitude: 787 ft
                                             Time: January 13, 12:21 PM CST Observation Time: January 13, 12:15 PM CST
                                  

                                  I’ve been using curl and wttr for a while now myself. I think I poisted about it back at the old forums. Thanks skidoo for updating this forum. We left a lot behind in the move. Kinda reminds me of when I moved my Mom from the Farm to a retirement community. The cool things I left behind hurt my feelers.

                                  Sometimes I drive a crooked road to get my mind straight.
                                  Not all who Wander are Lost.
                                  I'm not outa place. I'm from outer space.

                                  Linux Registered User # 475019
                                  How to Search for AntiX solutions to your problems

                                Viewing 15 results - 61 through 75 (of 77 total)