Page 7 of 58 FirstFirst ... 567891757 ... LastLast
Results 61 to 70 of 572

Thread: Conky Rhythmbox Python Script

  1. #61
    Join Date
    May 2007
    Beans
    43

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by Cammy View Post
    Get rid of $font as the first item in each of those lines and put it at the end of the previous line instead. I also prefer ${font} instead of $font but it probably doesn't make any difference.
    Hey thanks! Just one more thing, I still don't know how to get the Rhythmbox section to align like the rest.

  2. #62
    Join Date
    Nov 2007
    Location
    USA-ish
    Beans
    206
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by pijiu View Post
    Hey thanks! Just one more thing, I still don't know how to get the Rhythmbox section to align like the rest.
    Can you post your template contents?
    Desktop: Quantal on Core2 Duo E8500/Asus P5Q
    Laptop: Precise on S76 Pangolin

  3. #63
    Join Date
    Oct 2008
    Beans
    14

    Re: Conky Rhythmbox Python Script

    To add to bombardment of questions...

    I am have it working fine, but I don't want to see UNKNOWN UNKNOWN etc. when it isn't open. So I tried $(if_running Rhythmbox) / $(endif) and now nothing will show up ever. I even tried your example of:

    ${if_running rhythmbox}${color3}${execibar 1 conkyRhythmbox --datatype=PP}
    ${execp conkyRhythmbox --template=/home/mark/Scripts/conky/conkyRhythmbox.template}${endif}

    but nothing shows up when I do that. Is there a way to fix this? Is there something that my computer is missing?

    Great work on the script so far.
    Thanks.

  4. #64
    Join Date
    Jan 2008
    Beans
    150
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by tsedrey View Post
    To add to bombardment of questions...

    I am have it working fine, but I don't want to see UNKNOWN UNKNOWN etc. when it isn't open. So I tried $(if_running Rhythmbox) / $(endif) and now nothing will show up ever. I even tried your example of:

    ${if_running rhythmbox}${color3}${execibar 1 conkyRhythmbox --datatype=PP}
    ${execp conkyRhythmbox --template=/home/mark/Scripts/conky/conkyRhythmbox.template}${endif}

    but nothing shows up when I do that. Is there a way to fix this? Is there something that my computer is missing?

    Great work on the script so far.
    Thanks.
    you can add this as an option to conkyRhythmbox
    Code:
      -n, --nounknownoutput
                            Turn off unknown output such as "Unknown" for title
                            and "0:00" for length. Command line option overridden
                            if used in templates.
    Intel Pentium IV Northwood@2.4 GHz, 1 GiB RAM, 22" Samsung Monitor Ubuntu 9.04 Jaunty Jackalope
    AMD Turion 64 X2 Mobile technology @2.2GHz, 2 GiB RAM, 320 GiB HDD Windows 7 Ultimate RC1

    please remember to thank those that helped you

  5. #65
    Join Date
    Oct 2008
    Beans
    14

    Re: Conky Rhythmbox Python Script

    I'm sorry, I am kind new at this, where do I add -n....?

  6. #66
    Join Date
    Jan 2008
    Beans
    150
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by tsedrey View Post
    I'm sorry, I am kind new at this, where do I add -n....?
    right in here
    Code:
    ${if_running rhythmbox}${color3}${execibar 1 conkyRhythmbox --datatype=PP}
    ${execp conkyRhythmbox --template=/home/mark/Scripts/conky/conkyRhythmbox.template -n}${endif}
    Intel Pentium IV Northwood@2.4 GHz, 1 GiB RAM, 22" Samsung Monitor Ubuntu 9.04 Jaunty Jackalope
    AMD Turion 64 X2 Mobile technology @2.2GHz, 2 GiB RAM, 320 GiB HDD Windows 7 Ultimate RC1

    please remember to thank those that helped you

  7. #67
    Join Date
    May 2007
    Beans
    43

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by Cammy View Post
    Can you post your template contents?
    Code:
        background no
        use_xft yes
        xftfont WenQuanYi Zen Hei:size=10
        xftalpha 0.1
        update_interval 0.5
        total_run_times 0
        own_window yes
        own_window_type override
        own_window_transparent yes
        own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
        double_buffer yes
        minimum_size 250 5
        maximum_width 300
        draw_shades no
        draw_outline no
        draw_borders no
        draw_graph_borders no
        stippled_borders 0
        border_margin 5
        border_width 1
        default_color white
        default_shade_color black
        default_outline_color black
        alignment top_right
        gap_x 10
        gap_y 10
        no_buffers no
        uppercase no
        cpu_avg_samples 2
        net_avg_samples 1
        override_utf8_locale yes
        use_spacer yes
        text_buffer_size 256
    
        TEXT
    
        ${voffset 20}
        ${font WenQuanYi Zen Hei:size=20}${color light gray}//.UBUNTU${color Black}LINUX
        ${voffset -90}
        ${color DimGray}
        ${font}
        ${font WenQuanYi Zen Hei:bold:size=10}${color light gray}//.system ${color black} ${hr 2}${font}
        ${color DimGray}$sysname $kernel $alignr $machine
        Intel Pentium D $alignr${freq_g}Ghz
        Uptime $alignr${uptime}
        File System $alignr${fs_type}
    
        ${font WenQuanYi Zen Hei:bold:size=10}${color light gray}//.processors ${color black}${hr 2}${font}
        ${color DimGray}CPU1  ${cpu cpu1}% ${cpubar cpu1}
        CPU2  ${cpu cpu2}% ${cpubar cpu2}
    
        ${font WenQuanYi Zen Hei:bold:size=10}${color light gray}//.mem ${color black}${hr 2}${font}
        ${color DimGray}MEM $alignc $mem / $memmax $alignr $memperc%
        $membar
    
        ${font WenQuanYi Zen Hei:bold:size=10}${color light gray}//.hdd ${color black}${hr 2}${font}
        ${color DimGray}/home $alignc ${fs_used /home} / ${fs_size /home} $alignr ${fs_free_perc /home}%
        ${fs_bar /home}
    
        ${font WenQuanYi Zen Hei:bold:size=10}${color light gray}//.processes ${color black}${hr 2}${font}
        ${color DimGray}${top_mem name 2}${alignr}${top mem 2} %${font}
        ${top_mem name 3}${alignr}${top mem 3} %${font}
        ${top_mem name 4}${alignr}${top mem 4} %${font}
        ${top_mem name 5}${alignr}${top mem 5} %
    
        ${font WenQuanYi Zen Hei:bold:size=10}${color light gray}//.network ${color black}${hr 2}${font}
        ${color DimGray}${endif}${if_existing /sys/class/net/wlan0/operstate up}IP (wlan0):$alignr${addr wlan0}
        AP: ${wireless_essid wlan0} ${alignr}Bitrate: ${wireless_bitrate wlan0}
    
        Down: ${downspeed wlan0} k/s ${alignr}Up: ${upspeed wlan0} k/s
        ${downspeedgraph wlan0 20,90} ${alignr}${upspeedgraph wlan0 20,90}
        Total: ${totaldown wlan0} ${alignr}Tota: ${totalup wlan0}
    
        ${font WenQuanYi Zen Hei:bold:size=10}${color light gray}//.time ${color black}${hr 2}${font}
    
        ${voffset -15} ${color light gray} ${font :size=24}$alignr${time %H:%M}
        ${voffset -25} ${font WenQuanYi Zen Hei:bold:size=8}$alignr${time %A}
        ${font :bold:size=10}$alignr${time %d %b. %Y}
        $endif
    
        ${color light gray}${font WenQuanYi Zen Hei:size=14}${font WenQuanYi Zen Hei:Bold:size=10}//.Rhythmbox${color black}${hr 2}
    
        ${color1}${execp conkyRhythmbox --template=/usr/share/conkyrhythmbox/example/conkyRhythmbox.template --nounknownoutput | fold -w33 -s}
    Code:
    ${color Dimgray}Artist:${color lightgray}[--datatype=AR]
    ${color dimgray}Album:${color lightgray}[--datatype=AL]
    ${color dimgray}Title:${color lightgray}[--datatype=TI]
    ${color dimgray}Position:${color lightgray}[--datatype=PT]/[--datatype=LE]
    Here it is ^__^

  8. #68
    Join Date
    Nov 2007
    Location
    USA-ish
    Beans
    206
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by pijiu View Post
    Code:
    ${color Dimgray}Artist:${color lightgray}[--datatype=AR]
    ${color dimgray}Album:${color lightgray}[--datatype=AL]
    ${color dimgray}Title:${color lightgray}[--datatype=TI]
    ${color dimgray}Position:${color lightgray}[--datatype=PT]/[--datatype=LE]
    Here it is ^__^
    Ok, I'm not home, so I can't test, and the only thing I can see is that you have "Dimgray" with the D in uppercase instead of lowercase. Try changing that to dimgray maybe, and in your .conkyrc get rid of the ${color1} at the beginning of the last line. You don't need that since you've specified your colors in the template.

    btw, I didn't even know you could specify colors in the actual template.
    Desktop: Quantal on Core2 Duo E8500/Asus P5Q
    Laptop: Precise on S76 Pangolin

  9. #69
    Join Date
    Jan 2008
    Beans
    150
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by Cammy View Post
    Ok, I'm not home, so I can't test, and the only thing I can see is that you have "Dimgray" with the D in uppercase instead of lowercase. Try changing that to dimgray maybe, and in your .conkyrc get rid of the ${color1} at the beginning of the last line. You don't need that since you've specified your colors in the template.

    btw, I didn't even know you could specify colors in the actual template.
    by using the {execi...} command you can use the formatting like that in a template
    Intel Pentium IV Northwood@2.4 GHz, 1 GiB RAM, 22" Samsung Monitor Ubuntu 9.04 Jaunty Jackalope
    AMD Turion 64 X2 Mobile technology @2.2GHz, 2 GiB RAM, 320 GiB HDD Windows 7 Ultimate RC1

    please remember to thank those that helped you

  10. #70
    Join Date
    Feb 2008
    Location
    52°38'41.6"N/1°19'43.6"E
    Beans
    Hidden!

    Re: Conky Rhythmbox Python Script

    Quote Originally Posted by cl0ckwork View Post
    by using the {execi...} command you can use the formatting like that in a template
    I am sure you meant {execpi...} or {execp...}

Page 7 of 58 FirstFirst ... 567891757 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •