Bane wrote:Hi parm289
Brilliant idea, Dude Conkys would be appreciated, esp vlc song info.
skewed wrote:nice one parm289!
i like the look. it fits in with #! very well. welcome to #!. it has gotten me into the world of linux as a newbie and has done a good job of it too.
i will chime in and say: i would enjoying checking out your conkyrc file. i need to get vlc up and running in my conkly... any tips (havent really reseached it yet but it doesnt seems as easy to do as a few other mps).
slainte!
ryan
For those of you who are curious, I'll post my conky config and instructions here. Be aware that, because the default #! logo is in a commercial font, Helvetica Neue 35 Thin, you need this font to achieve the desired effect. An alternative option is to use another #! logo and font.
First, my VLC nowplaying conky script, which is the most difficult to set up:
.conkyrcVlc
# set to yes if you want Conky to be forked in the background
background yes
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=10
xftfont Sans:size=8
# Text alpha when using Xft
xftalpha 1
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal #use this if you want a nice shadow to appear around conky
# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 200
# Maximum width
maximum_width 225
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Draw borders around graphs
draw_graph_borders no
# Stippled borders?
# stippled_borders 8
# border margins
# border_margin 2
# border width
# border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 205
gap_y 514
# Subtract file system buffers from used memory?
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
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
##############################################
##############################################
TEXT
${font HelveticaNeueLTPro-Th:size=24}#! NOW PLAYING${font Sans:size=8}
Title: ${alignr}${execi 1 curl http://localhost:8080/conky.html}
Artist: ${alignr}${execi 1 curl http://localhost:8080/conkyA.html}
Album: ${alignr}${execi 1 curl http://localhost:8080/conkyAL.html}
Now, for the explanation. This post explains it very well, and is how I got mine set up: http://forum.videolan.org/viewtopic.php
04#p132004. Basically, we are going to use VLC's http remote capability to serve the nowplaying info to conky.
So, as you can see, I set up my conky to display the Title, Artist, and Album of the song. For optimal formatting, I used 3 different html files to serve the Title, Artist, and Album respectively (conky.html, conkyA.html, conkyAL.html). The contents of these files are as follows:
conky.html
<vlc id="value" param1="'TITLE' vlc_get_meta"/>
conkyA.html
<vlc id="value" param1="'ARTIST' vlc_get_meta"/>
conkyAL.html
<vlc id="value" param1="'ALBUM' vlc_get_meta"/>
Very straightforward - create these three html files with the contents shown above and place them in /usr/share/vlc/http. Then, open vlc and go to Tools->Add Interface->Web Interface. The info should appear in conky.
Next, my Buddies display:
.conkyrcPid
# set to yes if you want Conky to be forked in the background
background yes
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=10
xftfont Sans:size=8
# Text alpha when using Xft
xftalpha 1
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal #use this if you want a nice shadow to appear around conky
# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 150 200
# Maximum width
maximum_width 300
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Draw borders around graphs
draw_graph_borders no
# Stippled borders?
# stippled_borders 8
# border margins
# border_margin 2
# border width
# border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 275
gap_y 517
# Subtract file system buffers from used memory?
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
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
##############################################
##############################################
TEXT
${font HelveticaNeueLTPro-Th:size=24}#! BUDDIES${font Sans:size=8}
${execi 1 python /usr/share/conkypidgin/conkyPidgin.py -a -t ~/conkyPidgin.template -I Buddies}
Explanation: You must install the conkypidgin package (google it, it is a very easy process) first. Then you issue the above command - the options I've used are as follows:
-a: Only show available buddies (online and not away)
-t ~/conkyPidgin.template: Use a custom template defined in ~/conkyPidgin.template.
~/conkyPidgin.template:
-I Buddies: Only show contacts from the "Buddies" Group.
The other two are very simple:
.conkyrcSht (System Info) (requires download of dbcli.py)
# set to yes if you want Conky to be forked in the background
background yes
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=10
xftfont Sans:size=8
# Text alpha when using Xft
xftalpha 1
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal #use this if you want a nice shadow to appear around conky
# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 200
# Maximum width
maximum_width 240
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Draw borders around graphs
draw_graph_borders no
# Stippled borders?
# stippled_borders 8
# border margins
# border_margin 2
# border width
# border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 440
gap_y 514
# Subtract file system buffers from used memory?
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
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
${font HelveticaNeueLTPro-Th:size=28}${alignc}#! CRUNCH${font Sans:size=8}
##############################################
##############################################
TEXT
${font HelveticaNeueLTPro-Th:size=24}#! SYSTEM INFO${font Sans:size=8}
Host:$alignr$nodename
Uptime:$alignr$uptime
RAM:$alignr$mem/$memmax
Swap usage:$alignr$swap/$swapmax
Disk usage:$alignr${fs_used /}/${fs_size /}
Processor #1:$alignr${cpu cpu1}%
Processor #2:$alignr${cpu cpu2}%
Dropbox:${alignr}${execi 1 python ~/.dropbox-dist/dbcli.py status}
.conkyrcSys (Shortcuts)
# set to yes if you want Conky to be forked in the background
background yes
# Use Xft?
use_xft yes
# Xft font when Xft is enabled
#xftfont Trebuchet MS:size=10
xftfont Sans:size=8
# Text alpha when using Xft
xftalpha 1
# Update interval in seconds
update_interval 1.0
# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0
own_window yes
own_window_transparent yes
#own_window_type override
own_window_type desktop
#own_window_type normal #use this if you want a nice shadow to appear around conky
# If own_window is yes, these window manager hints may be used
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# Minimum size of text area
minimum_size 200 200
# Maximum width
maximum_width 240
# Draw shades?
draw_shades yes
# Draw outlines?
draw_outline no
# Draw borders around text
draw_borders no
# Draw borders around graphs
draw_graph_borders no
# Stippled borders?
# stippled_borders 8
# border margins
# border_margin 2
# border width
# border_width 1
# Default colors and also border colors
default_color white
default_shade_color black
default_outline_color white
# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right
#alignment none
# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 440
gap_y 516
# Subtract file system buffers from used memory?
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
# Force UTF8? note that UTF8 support required XFT
override_utf8_locale no
${font HelveticaNeueLTPro-Th:size=28}${alignc}#! CRUNCH${font Sans:size=8}
##############################################
##############################################
TEXT
${font HelveticaNeueLTPro-Th:size=24}#! SHORTCUTS${font Sans:size=8}
Alt+F2$alignr Run Dialog
Alt+F3$alignr Alt Menu
Super+space$alignr Main Menu
Super+tab$alignr Client Menu
Super+t$alignr Terminal
Super+f$alignr File Manager
Super+e$alignr Editor
Super+m$alignr Media Player
Super+w$alignr Web Browser
Super+g$alignr Graphics Editor
Super+c$alignr Clock
Super+l$alignr Lock Screen
Super+v$alignr Volume Control
Super+u$alignr System Update
Super+x$alignr Logout
PrtSc$alignr Screenshot
Hope you guys enjoy these scripts!