Hola Amigos ! Radio Tray es una de mis apariciones preferidas, es casi una de las cosas que instalo primero. Estuve investigando un poco como configura un Conky para que muestre la Estaciòn y datos de los temas y encontre algunas paginas en ruso y otras en Ingles relacionadas con Crunchbang. En la sección de las fuentes dejo los links de los autores, y agradezco la información compartida: Trabaje un poco el conky y el script para que funcione. Para que funcione el script hay que instalar qt5-base y qt5-tools pacman -S qt5-base qt5-tools El conky lo llame .conkyradiotray y lo ubique en la carpeta /home/diego/.conky/conkyradiotray/ El path completo es: /home/diego/.conky/conkyradiotray/.conkyradiotray # killall conky && conky -c ~/Conky/VO_Radiotray.conky & ### Begin Window Settings ################################################## # Create own window instead of using desktop (required in nautilus) own_window yes # Use the Xdbe extension? (eliminates flicker) # It is highly recommended to use own window with this one # so double buffer won't be so big. double_buffer yes own_window_type normal #override own_window_transparent no own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_colour 620202 own_window_class Radio Tray own_window_title Radio Tray ### ARGB can be used for real transparency ### NOTE that a composite manager is required for real transparency. ### This option will not work as desired (in most cases) in conjunction with ### own_window_type override own_window_argb_visual yes own_window_argb_value 180 ### When ARGB visuals are enabled, this use this to modify the alpha value ### Use: own_window_type normal ### Use: own_window_transparent no ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity. #own_window_argb_value 150 minimum_size 250 250 ## width, height maximum_width 250 ## width, usually a good idea to equal minimum width ## Alignment # top_left, top_right, top_middle - tl, tm, tr # middle_left, middle_middle, middle_right - bl, bm, br # bottom_left, bottom_right, bottom_middle - ml, mm, mr alignment bl gap_x 105 ### left &right gap_y 110 ### up & down #################################################### End Window Settings ### ### Font Settings ########################################################## # Use Xft (anti-aliased font and stuff) use_xft yes #xftfont Anonymous Pro:size=9 #xftfont WenQuanYi Micro Hei Mono:bold:size=7.5 xftfont Ubuntu:size=8:bold # Alpha of Xft font. Must be a value at or between 1 and 0 ### xftalpha 1 # Force UTF8? requires XFT ### override_utf8_locale yes draw_shades no #### <<<<<<------------------To see it easier on light screens. #default_shade_color black draw_outline no #### <<<<<<---------------- Amplifies text if yes default_outline_color black UPPERcase no ###################################################### End Font Settings ### ### Color Settings ######################################################### default_shade_color gray default_outline_color black default_color DCDCDC #Gainsboro color0 ffe595 #Teo Gold color1 778899 #LightSlateGrey color2 FF8C00 #Darkorange color3 7FFF00 #Chartreuse color4 FFA07A #LightSalmon color5 FFDEAD #NavajoWhite color6 00BFFF #DeepSkyBlue color7 00FFFF #Cyan #48D1CC #MediumTurquoise color8 FFFF00 #Yellow color9 FF0000 #Red #A52A2A #DarkRed ##################################################### End Color Settings ### ### Borders Section ######################################################## draw_borders no # Stippled borders? stippled_borders 0 # border margins border_inner_margin 10 border_outer_margin 0 # border width border_width 0 # graph borders draw_graph_borders no ##################################################### End Borders Secton ### ### Miscellaneous Section ################################################## # Boolean value, if true, Conky will be forked to background when started. background no # Adds spaces around certain objects to stop them from moving other things # around, this only helps if you are using a mono font # Options: right, left or none use_spacer right # Default and Minimum size is 256 - needs more for single commands that # "call" a lot of text IE: bash scripts text_buffer_size 256 # Subtract (file system) buffers from used memory? no_buffers yes # change GiB to G and MiB to M short_units yes # Like it says, ot pads the decimals on % values # doesn't seem to work since v1.7.1 pad_percents 2 # Maximum size of user text buffer, i.e. layout below TEXT line in config file # (default is 16384 bytes) # max_user_text 16384 #digiThe all important - How often conky refreshes. # If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP! update_interval 1 # in seconds # stuff after 'TEXT' will be formatted on screen TEXT ${if_running radiotray} ${color}${if_match "${execi 10 /home/diego/.conky/conkyradiotray/scriptradio}" == "NO"}${color #696969}${font ubuntu:size=10:bold}Radiotray no encendida${else}${color #efefef}${font Ubuntu:size=11:bold}RadioTray ${color aaaaaa}${font Ubuntu:size=10:bold}Estación${font}${color} ${font Ubuntu:size=9:bold}${color #ffffff}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio} ${color aaaaaa}${font Ubuntu:size=10:bold}Artista & Tema${font}${color} ${font Ubuntu:size=9:bold}${color #ffffff}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w 45}${color}${image ~/.local/share/radiotray/icon -p 65,220 -s 120x120 -f 1}${endif} $else${color #696969}${font ubuntu:size=10:bold}Sin actividad${font}$endif El conky utiliza un script que detecta si esta reproduciendo una canción o no, y si es así debuelve una bandera que le sirve al conky. Este es el script llamado scriptradio y que está ubicado en el path /home/diego/.conky/conkyradiotray/ El path completo del archivo es /home/diego/.conky/conkyradiotray/scriptradio #!/bin/bash if pidof -x $(basename radiotray) > /dev/null then st=$(qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio) so=$(qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w150) busqueda='(not playing)' cadenaextraida=${st: -13} if [ "$cadenaextraida" = "$busqueda" ]; then bandera='NO' else bandera="SI" fi else bandera="NE" fi echo $bandera exit 0 Y este es el script de arranque de los conkys: #!/bin/bash sleep 15 & conky -c /home/diego/.conky/conkyradiotray/.conkyradiotray & exit 0 Al conky se lo hace arrancar al inicio de la sesión en Manjaro XFCE, agregando el script de arranque con las opciones ubicadas en Configuración/Sistema/Sesión e Inicio Les dejo una imagen de como me quedó a mí: Espero que les sea util Pedido Solidario: Alguien que pueda hacerlo me daria una mano con el scrip de tal forma de poder poner en el área del conky la portada del disco, que aparece en la notificación de radiotray cuando cambia de tema. Este es un ejemplo, de la imagen que quiero agregar: No se como hacerlo y no encuentro donde buscarlo. Solución al Pedido Trabajando un poco logre agregarle la imagen al conky la imagen de radiotray se llaman icon esta ubicada en ~/.local/share/radiotray su path completo es ~/.local/share/radiotray/icon Esta es la linea de conky agregada ${image ~/.local/share/radiotray/icon -p 65,220 -s 120x120 -f 1}${endif} Así queda por ejemplo: Una cosa, hay emisiones que no tienen la portada, en esos casos quedara en blanco ese sector. Agradecido desde el vamos ! PD1: Aquí modifique el conky y lo hice más compacto y con bordes blancos: # killall conky && conky -c ~/Conky/VO_Radiotray.conky & ### Begin Window Settings ################################################## # Create own window instead of using desktop (required in nautilus) own_window yes # Use the Xdbe extension? (eliminates flicker) # It is highly recommended to use own window with this one # so double buffer won't be so big. double_buffer yes own_window_type normal #override own_window_transparent no own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager #own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager own_window_colour 620202 own_window_class Radio Tray own_window_title Radio Tray ### ARGB can be used for real transparency ### NOTE that a composite manager is required for real transparency. ### This option will not work as desired (in most cases) in conjunction with ### own_window_type override own_window_argb_visual yes own_window_argb_value 180 ### When ARGB visuals are enabled, this use this to modify the alpha value ### Use: own_window_type normal ### Use: own_window_transparent no ### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity. #own_window_argb_value 150 minimum_size 250 250 ## width, height maximum_width 250 ## width, usually a good idea to equal minimum width ## Alignment # top_left, top_right, top_middle - tl, tm, tr # middle_left, middle_middle, middle_right - bl, bm, br # bottom_left, bottom_right, bottom_middle - ml, mm, mr alignment bl gap_x 105 ### left &right gap_y 110 ### up & down #################################################### End Window Settings ### ### Font Settings ########################################################## # Use Xft (anti-aliased font and stuff) use_xft yes #xftfont Anonymous Pro:size=9 #xftfont WenQuanYi Micro Hei Mono:bold:size=7.5 xftfont Ubuntu:size=8:bold # Alpha of Xft font. Must be a value at or between 1 and 0 ### xftalpha 1 # Force UTF8? requires XFT ### override_utf8_locale yes draw_shades no #### <<<<<<------------------To see it easier on light screens. #default_shade_color black draw_outline no #### <<<<<<---------------- Amplifies text if yes default_outline_color white UPPERcase no ###################################################### End Font Settings ### ### Color Settings ######################################################### default_shade_color gray default_outline_color white default_color DCDCDC #Gainsboro color0 ffe595 #Teo Gold color1 778899 #LightSlateGrey color2 FF8C00 #Darkorange color3 7FFF00 #Chartreuse color4 FFA07A #LightSalmon color5 FFDEAD #NavajoWhite color6 00BFFF #DeepSkyBlue color7 00FFFF #Cyan #48D1CC #MediumTurquoise color8 FFFF00 #Yellow color9 FF0000 #Red #A52A2A #DarkRed ##################################################### End Color Settings ### ### Borders Section ######################################################## draw_borders yes # Stippled borders? stippled_borders 0 # border margins border_inner_margin 10 border_outer_margin 0 # border width border_width 3 # graph borders draw_graph_borders yes ##################################################### End Borders Secton ### ### Miscellaneous Section ################################################## # Boolean value, if true, Conky will be forked to background when started. background no # Adds spaces around certain objects to stop them from moving other things # around, this only helps if you are using a mono font # Options: right, left or none use_spacer right # Default and Minimum size is 256 - needs more for single commands that # "call" a lot of text IE: bash scripts text_buffer_size 256 # Subtract (file system) buffers from used memory? no_buffers yes # change GiB to G and MiB to M short_units yes # Like it says, ot pads the decimals on % values # doesn't seem to work since v1.7.1 pad_percents 2 # Maximum size of user text buffer, i.e. layout below TEXT line in config file # (default is 16384 bytes) # max_user_text 16384 #digiThe all important - How often conky refreshes. # If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP! update_interval 1 # in seconds # stuff after 'TEXT' will be formatted on screen TEXT ${if_running radiotray} ${color}${if_match "${execi 10 /home/diego/.conky/conkyradiotray/scriptradio}" == "NO"}${color #696969}${font ubuntu:size=10:bold}Radiotray no encendida${else}${color #efefef}${font Ubuntu:size=11:bold}RadioTray ${font Ubuntu:size=8:bold} ${font Ubuntu:size=8:bold}${color #aaaaaa}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray net.sourceforge.radiotray.getCurrentRadio} ${font Ubuntu:size=8:bold}${color #ffffff}${execi 10 qdbus net.sourceforge.radiotray /net/sourceforge/radiotray getCurrentMetaData| fold -s -w 45}${color}${image ~/.local/share/radiotray/icon -p 65,120 -s 120x120 -f 1}${endif} $else${color #696969}${font ubuntu:size=10:bold}Sin actividad${font}$endif Aquí una imagen:
Datos archivados del Taringa! original
50puntos
0visitas
0comentarios
Actividad nueva en Posteamelo
0puntos
1visitas
0comentarios
Dar puntos: