Tmux, DWM and Conky together

I want to put the conky output (like dwm do) on tmux when I'm not on a X session.
Now i have this in my .xinitrc for dwm
conky -d | while read -r; do xsetroot -name "$REPLY"; done &
The only way a think it's possible is to put this on a init script
conky -d | while read -r; do xsetroot -name "$REPLY" && echo "$REPLY" > conky.out; done &
And set this statusbar on tmux:
set-option -g status-interval 5
set-option -g status-right "#(cat ~/.conky.out)"
This way it works, but I don't think writing/reading from de HDD every 5 second is a good idea...
Any suggestions?

kismet010 wrote:
I want to put the conky output (like dwm do) on tmux when I'm not on a X session.
Now i have this in my .xinitrc for dwm
conky -d | while read -r; do xsetroot -name "$REPLY"; done &
The only way a think it's possible is to put this on a init script
conky -d | while read -r; do xsetroot -name "$REPLY" && echo "$REPLY" > conky.out; done &
And set this statusbar on tmux:
set-option -g status-interval 5
set-option -g status-right "#(cat ~/.conky.out)"
This way it works, but I don't think writing/reading from de HDD every 5 second is a good idea...
Any suggestions?
Have you considered using the "-i" option? Something like this might work in your .tmux.conf:
set-option -g status-right "#(conky -i 1)"

Similar Messages

  • Dwm and conky window size

    Hello.
    I just installed conky and when im running it it creates a window that has the size of the screen so i cannot see my background image as also i cannot align conky's window in top_right position. It takes place in the whole screen.
    I searched in google on how you can adjust conky's window size but couldn't fix it.
    Any idea?
    Thanks in advance.

    # - Conky settings - #
    update_interval 2
    total_run_times 0
    net_avg_samples 1
    cpu_avg_samples 2
    imlib_cache_size 0
    double_buffer yes
    no_buffers yes
    format_human_readable
    # - Text settings - #
    use_xft yes
    xftfont Droid Sans:size=8
    override_utf8_locale yes
    text_buffer_size 2048
    # - Window specifications - #
    own_window_class Conky
    own_window yes
    own_window_type normal
    own_window_argb_visual yes
    own_window_argb_value 150
    own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
    alignment top_left
    gap_y 25
    gap_x 25
    border_inner_margin 8
    minimum_size 180 500
    maximum_width 180
    maximum_height 560
    default_bar_size 92 6
    # - Graphics settings - #
    draw_shades yes
    default_shade_color 000000
    default_color FFFFFF
    TEXT
    ${font Droid Sans:style=Bold:size=8}SYSTEM $stippled_hr${font}
    # - SYSTEM - #
    ${voffset 6}${font OpenLogos:size=19}B${font}${goto 40}${voffset -15}Kernel: ${alignr}${kernel}
    ${goto 40}Uptime: ${alignr}${uptime}
    # |--UPDATES
    ${goto 40}Updates: ${alignr}${font Droid Sans:style=Bold:size=8}${execi 10800 pacman -Qu | wc -l}${font} Packages
    # |--CPU
    ${voffset 6}${font Droid Sans:style=Bold:size=8}CPU${font}${offset -20}${voffset 10}${cpubar cpu0 4,18}
    ${voffset -23}${goto 40}Core 1: ${font Droid Sans:style=Bold:size=8}${cpu cpu1}%${font} ${alignr}${cpubar cpu1 7,70 EEEEEE}
    ${voffset 1}${goto 40}Core 2: ${font Droid Sans:style=Bold:size=8}${cpu cpu2}%${font} ${alignr}${cpubar cpu2 7,70 EEEEEE}
    ${voffset 1}${goto 40}Core 3: ${font Droid Sans:style=Bold:size=8}${cpu cpu3}%${font} ${alignr}${cpubar cpu3 7,70 EEEEEE}
    ${voffset 1}${goto 40}Core 4: ${font Droid Sans:style=Bold:size=8}${cpu cpu4}%${font} ${alignr}${cpubar cpu4 7,70 EEEEEE}
    # |--MEM
    ${voffset 6}${font Droid Sans:style=Bold:size=8}RAM${font}${goto 40}RAM: ${font Droid Sans:style=Bold:size=8}$memperc%${font}
    ${voffset 6}${offset 1}${voffset -8}${membar 4,18}${voffset 4}${goto 40}${voffset -2}Free: ${font Droid Sans:style=Bold:size=8}${memeasyfree}${font} ${goto 110}Used: ${font Droid Sans:style=Bold:size=8}${mem}${font}
    # |--SWAP
    ${voffset 5}${font Droid Sans:style=Bold:size=8}SWP${font}${goto 40}Swap: ${font Droid Sans:style=Bold:size=8}${swapperc}%${font}
    ${voffset 4}${offset 1}${voffset -7}${swapbar 4,18}${voffset 4}${goto 40}Free: ${font Droid Sans:style=Bold:size=8}$swapmax${font} ${goto 110}Used: ${font Droid Sans:style=Bold:size=8}$swap${font}
    # |--PROC
    ${voffset 4}${font Droid Sans:style=Bold:size=8}TOP${font}${voffset 0}${goto 126}CPU${alignr}RAM
    ${voffset -1}${goto 40}${top name 1}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 1}${alignr }${top mem 1}${font}
    ${voffset -1}${goto 40}${top name 2}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 2}${alignr }${top mem 2}${font}
    ${voffset -1}${goto 40}${top name 3}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 3}${alignr }${top mem 3}${font}
    ${voffset -1}${goto 40}${top name 4}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 4}${alignr }${top mem 4}${font}
    ${voffset -1}${goto 40}${top name 5}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 5}${alignr }${top mem 5}${font}
    ${voffset -1}${goto 40}${top name 6}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 6}${alignr }${top mem 6}${font}
    ${voffset -1}${goto 40}${top name 7}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 7}${alignr }${top mem 7}${font}
    ${voffset -1}${goto 40}${top name 8}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 8}${alignr }${top mem 8}${font}
    ${voffset -1}${goto 40}${top name 9}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 9}${alignr }${top mem 9}${font}
    ${voffset -1}${goto 40}${top name 10}${font Droid Sans:style=Bold:size=8} ${goto 120}${top cpu 10}${alignr }${top mem 10}${font}
    # - CLOCK - #
    ${voffset 6}${font Droid Sans:style=Bold:size=8}DATE $stippled_hr${font}
    ${font Droid Sans:size=20}${alignc}${time %H:%M}${font}
    ${alignc}${time %d %B %Y}
    # - NETWORK - #
    ${voffset 4}${font Droid Sans:style=Bold:size=8}NETWORK $stippled_hr${font}
    ${voffset 4}${goto 20}Upload: ${font Droid Sans:style=Bold:size=8}${upspeed wlan0}${font} ${alignr}${upspeedgraph wlan0 8,50 EEEEEE}
    ${goto 20}Overall: ${font Droid Sans:style=Bold:size=8}${totalup eth0}${font}
    ${voffset 4}${goto 20}Download: ${font Droid Sans:style=Bold:size=8}${downspeed wlan0}${font} ${alignr}${downspeedgraph wlan0 8,50 EEEEEE}
    ${goto 20}Overall: ${font Droid Sans:style=Bold:size=8}${totaldown wlan0}${font}
    ${voffset 4}${goto 20}Local IP: ${alignr}${font Droid Sans:style=Bold:size=8}${addr wlan0}${font}
    ${goto 20}Public IP: ${alignr}${font Droid Sans:style=Bold:size=8}${execi 10800 ~/.public_ip}${font}
    # - HD - #
    ${voffset 4}${font Droid Sans:style=Bold:size=8}HD $stippled_hr${font}
    # |--HD default
    ${voffset 4}${goto 20}Root: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /}%${font}${goto 100}${alignr}${fs_bar 6,68 /}
    ${offset 7}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /}${font} ${alignr 1}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /}${font}
    ${voffset 4}${goto 20}Home: ${font Droid Sans:style=Bold:size=8}${fs_used_perc /home}%${font}${goto 100}${alignr}${fs_bar 6,68 /home}
    ${offset 7}Free: ${font Droid Sans:style=Bold:size=8}${fs_free /home}${font} ${alignr 1}Used: ${font Droid Sans:style=Bold:size=8}${fs_used /home}${font}
    It's not mine. I just take it from grindcore on here

  • [SOLVED] dwm + dzen2 + conky-cli misconfigured

    I have been trying to pipe conky status to dzen2 and it is doing my head in.
    My .xinitrc
    #!/bin/sh
    # ~/.xinitrc
    setxkbmap -option terminate:ctrl_alt_bksp &
    eval `cat ~/.fehbg` &
    numlockx &
    xscreensaver -no-splash &
    # Dzen & conky
    conky | dzen2 -fg '#dcdcdc' -bg '#3f3f3f' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' &
    # Start dwm
    exec ck-launch-session ~/Scripts/dwm-start
    .conkyrc
    background no
    out_to_console yes
    update_interval 2
    total_run_times 0
    use_spacer none
    double_buffer yes
    TEXT
    ${if_existing /sys/class/power_supply/BAT0/present}^fg(#999999)BAT^fg()${battery_percent}%${else}AC${endif} * CPU ${cpu cpu1}% RAM ${memperc}% * / ${fs_used_perc /}% /home ${fs_used_perc /home}% * PKG ${execpi 900 ~/Scripts/pacman-up.pl} * ${if_existing /proc/net/route ra0}Down ${downspeedf ra0}K/s Up ${upspeedf ra0}K/s ${else} ${if_existing /proc/net/route eth0} Down ${downspeedf ra0}K/s Up ${upspeedf ra0}K/s${endif} ${endif}* ${time %I:%M%P}
    Start dwm script
    conky | while read line; do
    xsetroot -name "$line";
    done | while true; do
    dwm > /dev/null; done;
    Could anyone point me at what I am doing wrong? I have tried following examples in the forums, including this one and this one -- but I either end up with dwm 5.7.2 in the corner, or conky prints out the ^fg etc...
    Any help would be appreciated at this point...
    Last edited by jasonwryan (2009-11-20 06:11:51)

    Thanks for the suggestions Skanky. The broken line in conky was a copy/paste error into the browser - it is a single line conky (I've edited the OP to reflect that).
    I think it is a problem with the way conky-cli and dzen work together. If I run:
    echo "testing" | dzen2 -fg '#dcdcdc' -bg '#3f3f3f' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -p
    it prints as expected.
    Similarly, if I comment the conky | dzen2 line in .xinintrc and just run conky-cli from the start script it works...
    Trying to get then to work together, however, is another matter.
    /edit
    Some progress: it seems that it is being drawn - if I Mod-Shift-q the dwm status bar briefly disappears and I can see conky momentarily. I tried starting conky | dzen2 after dwm but that didn't work.
    I have also added some options, which seem to have helped, my .xinintrc entry now looks like:
    conky | dzen2 -x '500' -e '' -fg '#dcdcdc' -bg '#3f3f3f' -ta r -fn '-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*' -p &
    Last edited by jasonwryan (2009-11-19 16:57:13)

  • Can I run Apple TV 1 and 2 together on the same iTunes account and on the same tv with two hdmi slots?

    Can I run Apple TV 1 and 2 together on the same iTunes account and on the same tv with two hdmi slots?

    Yes.
    Captfred

  • I have a ipod shuffle synced to a desktop (ver 9), I have a new laptop and downloaded itunes (ver 10.7).  When i plug the ipod in the new laptop it wants to delete my songs. How do i use my new alptop and ipod together?

    I have a ipod shuffle synced to a desktop (ver 9), I have a new laptop and downloaded itunes (ver 10.7).  When i plug the ipod in the new laptop it wants to delete my songs. How do i use my new alptop and ipod together?

    Your iPod is designed to sync with only one iTunes library at a time.  It will recognize the iTunes library on the PC as a new library.  If you sync the iPod with this new library, all content will be erased from the iPod and replaced with what is in the new library.  So what you will want to do is copy everything from the iPod to your new iTunes library on your PC first.
    See this excellent user tip from another forum member turingtest2 outlining the different methods and software available to help you copy content from your iPod back to your PC and into iTunes.
    Recovering your iTunes library from your iPod or iOS device
    B-rock

  • HT1277 I have changed my email account on my computer to imap and 993 but now I'm not receiving any emails. I was originally trying to sinc my ipad and iphone and computer together so when I delete an email it will all delete together. What is the best wa

    I need help to update my email and also to sinc my computer, iphone and ipad together so when I delete my emails they will all disappear together. I got the iphone and ipad to work but cant seem to get the computer to work.

    E-mail provider?
    Troubleshooting sending and receiving email messages

  • How can I run a vga monitor and projector together on my Mac Pro 15"??

    How can I run a vga monitor and projector together on my Mac Pro OSX 15"?

    You can upgrade to Snow Leopard, Lion or Mountain Lion (coming next month), but you need Snow Leopard to upgrade to Lion or Mountain Lion. Check this web to know how to add memory to your computer and the memory that it supports (probably, 3 GB).

  • How can I create a client console and work together with the Cache Server?

    How can I edit the following Cache-Server.cmd file to create a client console and work together with the Cache Server?
    The following is the cache server file: contacts-cache-server.cmd
    @echo off
    setlocal
    if (%COHERENCE_HOME%)==() (
    set COHERENCE_HOME=c:\coherence
    set CONFIG=C:\home\oracle\coherence\Contacts
    set COH_OPTS=%COH_OPTS% -server -cp %COHERENCE_HOME%\lib\coherence.jar;C:\home\oracle\
    coherence\Contacts;C:\home\oracle\coherence\Contacts\classes;
    set COH_OPTS=%COH_OPTS% -Dtangosol.coherence.cacheconfig=%CONFIG%\contacts-cache-config.xml
    java %COH_OPTS% -Xms1g -Xmx1g -Xloggc: com.tangosol.net.DefaultCacheServer %2 %3 %4 %5 %6 %7
    :exitEdited by: junez on 23-Oct-2009 09:20

    Hi
    To run the console, change DefaultCacheServer to CacheFactory
    Paul

  • TS4006 Hi I am having trouble updating my apps I have tried one at a time and all together but they just will not load any ideas would be appreciated

    Hi, I am having trouble updating my apps, I have tried one at time and all together but they just keep on whirring away and nothing happens! any ideas woud be appreciated.

    Suggest you update all these apps on iTune (computer) and sync them to your iPad.

  • How to use external hard drive and iTunes together?

    how to use external hard drive and iTunes together?

    Yes I did get to that part.... I went trough external to retrive itunes folder... When I selected the folder, it said that it was locked, choose another folder... I then went to my external again to my itunes folder and and used command I to see if folder was locked and it wasn't.... it was suggested on another forum to reboot.. which I did and still same problem... All I want to do is link my external hard drive that has my itunes playlist from another Mac to my new one.. and to also use the external as the main source for adding new songs to my playlist...

  • Why can't Adobe Premiere Pro CC 2014 Time remap Audio and Video together?

    In case you didn't notice, my question is WHY.  I don't know why Premiere Pro can't do this.  From what I understand at the moment, the only way to time-remap audio in any way shape or form using Adobe software is through Adobe After Effects, which my computer has absolutely no chance of running ever.  I know how to do regular stretching of audio in both Audition and Premiere Pro, but apparently I can't time-remap audio using either of these programs.
    So why can't Adobe Premiere Pro time remap audio along with the video?  What's the reason that it can't?  It's a massive disappointment and would be very impressive to see accomplished in the future.  If it's possible to time remap audio and video together in After Effects, that's great and all, except for the fact that I can't use that program.  Why can't it be done in Premiere Pro and will it ever be possible in Premiere Pro?
    Also, will time remapping audio become possible in Audition someday?

    That sounds like a great idea.  File a Feature Request:
    Adobe - Feature Request/Bug Report Form

  • Hi... I am looking for an inexpensive app for my macbook pro that I can put pictures and videos together into a slideshow with captions and music WITHOUT a watermark and that also will burn the slideshow to a DVD in its own app. Help?

    Hi... I am looking for an inexpensive app for my macbook pro that I can put pictures and videos together into a slideshow with captions and music WITHOUT a watermark and that also will burn the slideshow to a DVD in its own app. Help?

    The issue with the A1400 is that like most economy compact cameras, they will not have very fast focus times in indoor lighting situations. Many people have gone to entry level DSLR's (Canon T3i) or micro 4/3 cameras. They are fairly expensive, but a late model refurbished T3i can sometimes be found with a kit lens for about $300.00. With Auto and scene modes, as well as full manual modes, these are very versatile cameras that focus very quickly, even in lower lighting situations. Canon is not really into the micro 4/3 cameras, instead they are focusing on the new G7x and G1x cameras, which are way out of your price range. The A720 is still available used at some places such as KEH camera, but you'll need to check often as their stock changes constantly. Obviously the DSLR's don't use AA batteries, but the T3i is good for about 600 photos (or more) per charge.
    My refurbished DSLR was practically brand new condition when I got it. I could not find any sign of wear at all, so I feel they are a real bargain. These are rugged cameras that are made to last. The A1400 is a $99.00 camera, so it's not intended for heavy usage, plus the image quality of a DSLR (even entry level) is far better than the A1400. That would be my recommendation.
    Steve M.

  • How to keep form field and label together?

    In InDesign Creative Cloud (ID CC), I need to create a 20 page form (a type of questionnaire). As a prelude to doing this, I created a one page form. I am trying to keep labels (text) and fields together, so that if I add a question in the middle of the form, everything else moves down and stays in the correct alignment and relationship. Here is what I tried.
    Option 1: Anchored Fields. I created fields on a "fields" layer and labels on a "text" layer. The text layer generally had tables to help me see where fields should be placed. However, to keep fields and text in the same relationship on the page, I anchored the field to the text. Hoewever, this has the effect of moving the field object into the same layer as the text. When I tried to use the Articles panel to put the fields in correct tab order, I discovered that only fields (unanchored) that were in the forms layer could be dragged into the Articles panel; anchored fields (now in the text layer) could not be dragged into the Articles panel. Why?
    I know that I could also use the Object / Interactive / Set Tabs Order command, but I wanted to use Articles to see how that works.
    In this approach, I also could not figure out how to put underline the text form field
    Option 2: Tabs and Character Styles. I used character styles for underlining by not using tables, but using paragraphs and tabs to align where the fields should be. I applied a character style to a right-justified tab to get the underline. However, using this option, whenever I add a new question (field + label or instruction) in the middle of the form, everything else down on the page goes out of alignment.
    What recommendations do other form designers have? I have been trying to think of how IRS has "dense" or "complex" forms, and how these might be designed in InDesign CC. in order to apply similar techniques to my form design.
    I am running on a Mac, OS X 10.8.4, InDesign CC.

    Unless I am gravely mistaken, isnt this what you want?
    for (int i = 0; i < folderList.size(); i++) {
       String folder = (String) folderList.get(i);
        System.out.println("Folder: " + folder);
        System.out.println ("Messages: " + folderMap.get (folder));
    }

  • How to compare date and time together

    Hi,
    How to compare Date and Time together?
    For example in a database table there are two fields rundate and runtime.  I want to compare these two with perticular date and time in the program.  Like, I want to pull all the records where the records's date and time are less than a perticular date and time in the program.
    Hope the question is clear...
    Thanks.
    Kavita

    Hi Kavita
    There is no as such Date and Time Comparision FM in Standard SAP  But You can define your own like this
    <b>FUNCTION ZAV4_COMPAREDATETIME.
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(DATE1) TYPE  DATS
    *"     REFERENCE(TIME1) TYPE  TIMS
    *"     REFERENCE(DATE2) TYPE  DATS
    *"     REFERENCE(TIME2) TYPE  TIMS
    *"  EXPORTING
    *"     VALUE(TWOISMORETOPICAL) TYPE  C
      twoismoretopical = ''.
      if date2 > date1.
        twoismoretopical = 'X'.
      else.
         if date2 = date1 and time2 > time1.
           twoismoretopical = 'X'.
         endif.
      endif.
    ENDFUNCTION.</b>
    Regards
    Mithlesh

  • How can i hold a spot in a clip, let the audio continue for a moment and then resume the clip and audio together?

    how can i hold a spot in a clip, let the audio continue for a moment and then resume the clip and audio together?

    you want to use the retiming tool. you can select what you want to hold, then use the "Hold" command (shift-H) to create a single frame of a default duration, which you can then change to whatever length you want by dragging the retiming handle.
    Here's the page in the help manual that describes the hold feature in detail:
    http://help.apple.com/finalcutpro/mac/10.0/#ver4c2173c9

Maybe you are looking for