Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 20/05/2014, à 03:41

Yoannjap

[Résolu] Mon conky disparaît par un simple SUPER+D

Bonsoir forumers !

Je tourne sous UbuntuGnome 14.04. Mon conky s'affiche tout le temps et fonctionne parfaitement (même quand je clique sur l'icône de bureau (extension Gnome shell)) mais pas quand je viens sur le bureau par le biais du raccourci-clavier SUPER+D.
Or je me sers presque toujours de celui-ci précisément pour regarder les infos de mon conky, c'est donc plutôt handicapant.

Du coup, voici mon .conkyrc :

# Use Xft?
use_xft yes
xftfont DejaVu Sans:size=12
xftalpha 0.8
text_buffer_size 2048

# Update interval in seconds
update_interval 1

# This is the number of times Conky will update before quitting.
# Set to zero to run forever.
total_run_times 0

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_transparent yes
own_window_type conky
own_window_class Conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
#own_window_argb_visual yes
background yes
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# Minimum size of text area
minimum_size 250 635
#maximum_width 200

# 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_inner_margin 2

# border width
border_width 1

# Default colors and also border colors
default_color grey
default_shade_color white
default_outline_color black
own_window_colour 000000
color1 white

# Text alignment, other possible values are commented
#alignment top_left
alignment middle_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
# same thing as passing -x at command line
gap_x 0
gap_y -5

# 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

# number of net samples to average
# set to 1 to disable averaging
net_avg_samples 2

# Force UTF8? note that UTF8 support required XFT
override_utf8_locale yes

# Add spaces to keep things from moving about?  This only affects certain objects.
use_spacer none

#own_window_argb_visual yes
#own_window_argb_value 76
TEXT
${goto 25}${voffset 10}${font :style=Bold}SYSTEM${font}
#${voffset 2}${font StyleBats:size=24}i${font}   Kernel:  ${alignr}${kernel}
${goto 25}${voffset 12}${font StyleBats:size=22.5}A${font}   CPU: ${cpu cpu0}% ${alignr}${cpubar cpu0 8,60}
${goto 90}${top name 1}${alignr}${top cpu 1}$color
${goto 90}${top name 2}${alignr}${top cpu 2}
${goto 90}${top name 3}${alignr}${top cpu 3}
${goto 25}${voffset 5}${font StyleBats:size=19.5}g${font}   RAM: $memperc% ${alignr}${membar 8,60}
${goto 90}${color4}${top_mem name 1}${alignr}${top_mem mem 1}%
${goto 90}${color1}${top_mem name 2}${alignr}${top_mem mem 2}%
${goto 90}${color2}${top_mem name 3}${alignr}${top_mem mem 3}%
${goto 25}${voffset 5}${font StyleBats:size=19.5}j${font}   SWAP: $swapperc% ${alignr}${swapbar 8,60}

${goto 25}${voffset 17}${voffset 30}${font :style=Bold}HD${font}
${goto 25}${voffset 12}${font Pie charts for maps:size=18}7${font}   ${voffset -5}Root:
${goto 25}${voffset 4}${fs_used /}/${fs_size /} ${alignr}${fs_bar 8,60 /}
${goto 25}${voffset 12}${font Pie charts for maps:size=18}7${font}   ${voffset -5}Home:
${goto 25}${voffset 4}${fs_used /home}/${fs_size /home} ${alignr}${fs_bar 8,60 /home}
${goto 25}${voffset 12}${font Pie charts for maps:size=18}7${font}   ${voffset -5}NTFS:
${goto 25}${voffset 4}${fs_used /media/yoannj-ubuntu/NTFS_Exchange_partition}/${fs_size /media/yoannj-ubuntu/NTFS_Exchange_partition} ${alignr}${fs_bar 8,60 /media/yoannj-ubuntu/NTFS_Exchange_partition}
${goto 25}${voffset 12}${font Pie charts for maps:size=18}7${font}   ${voffset -5}Windows 7:
${goto 25}${voffset 4}${fs_used /media/yoannj-ubuntu/Windows_partition}/${fs_size /media/yoannj-ubuntu/Windows_partition} ${alignr}${fs_bar 8,60 /media/yoannj-ubuntu/Windows_partition}

${goto 25}${voffset 35}${font :style=Bold}WIRELESS${font}
${goto 25}${voffset 12}${font PizzaDude Bullets:size=18}O${font}   Up: ${upspeed wlan0} ${goto 25}${alignr}${upspeedgraph wlan0 8,60 000000 000000}
${goto 25}${voffset 4}${font PizzaDude Bullets:size=18}U${font}   Down: ${downspeed wlan0} ${alignr}${downspeedgraph wlan0 8,60 000000 000000}
${goto 25}${voffset 4}${font PizzaDude Bullets:size=18}N${font}   Upload: ${font :size=12}${totalup wlan0}${font}
${goto 25}${voffset 4}${font PizzaDude Bullets:size=18}T${font}   Dwnload: ${font :size=12}${totaldown wlan0}${font}
${goto 25}${voffset 4}${font PizzaDude Bullets:size=18}Z${font}   Signal: ${wireless_link_qual wlan0}% 
${goto 25}${voffset 4}${fs_used /}/${fs_size /} ${alignr}${wireless_link_bar 8,60 wlan0}
${goto 25}${voffset 4}${font PizzaDude Bullets:size=18}a${font}   IPv4: ${font :size=6}${addr wlan0}${font}

#${font :style=Bold}PROCESSES${font} ${hr 2}
#NAME $alignr PID    CPU
#${top name 1} $alignr ${top pid 1} ${top cpu 1}
#${top name 2} $alignr ${top pid 2} ${top cpu 2}
#${top name 3} $alignr ${top pid 3} ${top cpu 3}
#${top name 4} $alignr ${top pid 4} ${top cpu 4}
#${top name 5} $alignr ${top pid 5} ${top cpu 5}
#${top name 6} $alignr ${top pid 6} ${top cpu 6}
#${top name 7} $alignr ${top pid 6} ${top cpu 7}
#${top name 8} $alignr ${top pid 6} ${top cpu 8}

Au cas où mon fichier /etc/conky/conky.conf :

# Conky, a system monitor, based on torsmo
#
# Any original torsmo code is licensed under the BSD license
#
# All code written since the fork of torsmo is licensed under the GPL
#
# Please see COPYING for details
#
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
#

alignment top_left
background no
border_width 1
cpu_avg_samples 2
default_color whitewn
default_outline_color white
default_shade_color white
draw_borders no
draw_graph_borders yes
draw_outline no
draw_shades no
use_xft yes
xftfont DejaVu Sans Mono:size=12
gap_x 5
gap_y 60
minimum_size 5 5
net_avg_samples 2
no_buffers yes
out_to_console no
out_to_stderr no
extra_newline no
own_window yes
own_window_class Conky
own_window_type normal
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
stippled_borders 0
update_interval 1.0
uppercase no
use_spacer none
show_graph_scale no
show_graph_range no

TEXT
${scroll 16 $nodename - $sysname $kernel on $machine | }
$hr
${color grey}Uptime:$color $uptime
${color grey}Frequency (in MHz):$color $freq
${color grey}Frequency (in GHz):$color $freq_g
${color grey}RAM Usage:$color $mem/$memmax - $memperc% ${membar 4}
${color grey}Swap Usage:$color $swap/$swapmax - $swapperc% ${swapbar 4}
${color grey}CPU Usage:$color $cpu% ${cpubar 4}
${color grey}Processes:$color $processes  ${color grey}Running:$color $running_processes
$hr
${color grey}File systems:
 / $color${fs_used /}/${fs_size /} ${fs_bar 6 /}
${color grey}Networking:
Up:$color ${upspeed eth0} ${color grey} - Down:$color ${downspeed eth0}
$hr
${color grey}Name              PID   CPU%   MEM%
${color lightgrey} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1}
${color lightgrey} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2}
${color lightgrey} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3}
${color lightgrey} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}

Enfin, la commande des applications au démarrage par lequel mon conky s'affiche au boot :

sh -c "sleep 3 && conky -c /home/yoannj-ubuntu/.conkyrc"

Si quelqu'un peut m'éclairer, MER-CI !

Dernière modification par Yoannjap (Le 20/05/2014, à 19:36)

Hors ligne

#2 Le 20/05/2014, à 07:39

did

Re : [Résolu] Mon conky disparaît par un simple SUPER+D

Salut,

À own_window_type tu peux essayer dock c'est ce qui fonctionne le mieux chez moi. Tu peux aussi essayer override, qui me pose quelques problèmes avec la transparence. Il existe aussi normal, panel ou desktop.
Je pense que l'option conky que tu utilises n'existe pas (http://conky.sourceforge.net/config_settings.html) en tout cas chez moi ça fait comme si je laissais cette option vide.

PS : suivant l'option que tu choisis, il faudra modifier gap_x, car le bord de référence n'est pas toujours le même.

Hors ligne

#3 Le 20/05/2014, à 19:35

Yoannjap

Re : [Résolu] Mon conky disparaît par un simple SUPER+D

Merci beaucoup did !
Avec dock, ça marche big_smile

Hors ligne