Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!
Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.
Witam, ostatnio zacząłem bawić się fluxboxem i trochę nie wiem jak ustawić jedną rzecz (kub też jak ustawić conky, jeśli to w nim trzeba coś zrobić). A mianowicie jak ustawić, aby conky był widoczny na wszystkich pulpitach?
Ostatnio edytowany przez eTo (2011-04-25 01:51:32)
Offline
A nie jest ?
Ja nie wiem jak ustawić aby był widoczny na jednym. :)
Pokaż config conky`ego.
Offline
No właśnie nie jest, i myślałem, że tak jest defaultowo i coś gdzieś trzeba ustawić we Fluxboxie poza dodaniem "conky &" do startup
Config conkiego (przyznaję się bez bicia, że po prostu skopiowałem go z tematu o configach z ubuntu.org i tylko póki co mocno w nim nie grzebałem poza zmianą lokacji dysków, żeby poprawnie wyświetlał ile mam jeszcze wolnego miejsca):
# UBUNTU-CONKY # A comprehensive conky script, configured for use on # Ubuntu / Debian Gnome, without the need for any external scripts. # # Based on conky-jc and the default .conkyrc. # INCLUDES: # - tail of /var/log/messages # - netstat connections to your computer # # -- Pengo (conky@pengo.us) # # Create own window instead of using desktop (required in nautilus) own_window yes own_window_hints undecorated,below,skip_taskbar background no # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes # fiddle with window use_spacer yes use_xft yes # Update interval in seconds update_interval 3.0 # Minimum size of text area minimum_size 400 5 # Draw shades? draw_shades yes # Text stuff draw_outline no # amplifies text if yes draw_borders no uppercase no # set to yes if you want all text to be in uppercase # Stippled borders? stippled_borders 8 # border margins border_margin 4 # border width border_width 1 # Default colors and also border colors, grey90 == #e5e5e5 default_color white default_shade_color black default_outline_color white own_window_colour brown own_window_transparent yes # Text alignment, other possible values are commented #alignment top_left alignment top_right #alignment bottom_left #alignment bottom_right # Gap between borders of screen and text gap_x 10 gap_y 10 # stuff after 'TEXT' will be formatted on screen override_utf8_locale no xftfont Terminus:size=8 xftalpha 0.8 TEXT ${offset 240}${color slate grey}${time %a, } ${color }${time %e %B %G} ${offset 240}${color slate grey}${time %Z, }${color }${time %H:%M:%S} ${offset 240}${color slate grey}UpTime: ${color }$uptime ${offset 240}${color slate grey}Kern:${color }$kernel ${offset 240}${color slate grey}CPU:${color } $cpu% ${acpitemp}C ${offset 240}${cpugraph 20,130 000000 ffffff} ${offset 240}${color slate grey}Load: ${color }$loadavg ${offset 240}${color slate grey}Processes: ${color }$processes ${offset 240}${color slate grey}Running: ${color }$running_processes ${offset 240}${color slate grey}Highest CPU: ${offset 240}${color #ddaa00} ${top name 1}${top_mem cpu 1} ${offset 240}${color lightgrey} ${top name 2}${top cpu 2} ${offset 240}${color lightgrey} ${top name 3}${top cpu 3} ${offset 240}${color lightgrey} ${top name 4}${top cpu 4} ${offset 240}${color slate grey}Highest MEM: ${offset 240}${color #ddaa00} ${top_mem name 1}${top_mem mem 1} ${offset 240}${color lightgrey} ${top_mem name 2}${top_mem mem 2} ${offset 240}${color lightgrey} ${top_mem name 3}${top_mem mem 3} ${offset 240}${color lightgrey} ${top_mem name 4}${top_mem mem 4} ${offset 240}${color slate grey}MEM: ${color } $memperc% $mem/$memmax ${offset 240}${membar 3,100} ${offset 240}${color slate grey}SWAP: ${color }$swapperc% $swap/$swapmax ${offset 240}${swapbar 3,100} ${offset 240}${color slate grey}ROOT: ${color }${fs_free /}/${fs_size /} ${offset 240}${fs_bar 3,100 /} ${offset 240}${color slate grey}HOME: ${color }${fs_free /home}/${fs_size /home} ${offset 240}${fs_bar 3,100 /home} ${offset 240}${color slate grey}Dysk C: ${color }${fs_free /mnt/dysk_c}/${fs_size /mnt/dysk_c} ${offset 240}${fs_bar 3,100 /mnt/dysk_c} ${offset 240}${color slate grey}Dysk D: ${color }${fs_free /mnt/dysk_d}/${fs_size /mnt/dysk_d} ${offset 240}${fs_bar 3,100 /mnt/dysk_d} ${offset 240}${color slate grey}NET: ${offset 240}${color}Up: ${color }${upspeed eth0} k/s ${offset 240}${upspeedgraph eth0 20,130 000000 ffffff} ${offset 240}${color}Down: ${color }${downspeed eth0}k/s${color} ${offset 240}${downspeedgraph eth0 20,130 000000 ffffff}
Edit: zapomniałem dodać, że używam testinga.
Ostatnio edytowany przez eTo (2011-04-24 14:00:50)
Offline
Ten konfig tak ma :)
Nie chce mi się analizować go linijka po linijce
Masz tu mój stary dopasuj sobie.
Jest na wszystkich pulpitach.
# Conky sample configuration # # the list of variables has been removed from this file in favour # of keeping the documentation more maintainable. # Check http://conky.sf.net for an up-to-date-list. # set to yes if you want Conky to be forked in the background alignment top_right background yes own_window yes own_window_type normal own_window_transparent yes own_window_hints undecorated,below,sticky,skip_taskbar,skip_page # X font when Xft is disabled, you can pick one with program xfontsel font 5x7 #font 6x10 #font 7x13 #font 8x13 #font 9x15 #font *mintsmild.se* #font -*-*-*-*-*-*-34-*-*-*-*-*-*-* font -dejavu-dejavu weather sans mono-medium-r-normal-*-*-90-75-75-*-*-iso8859-2 # Use Xft? use_xft yes # Xft font when Xft is enabled xftfont DejaVu Sans Mono:size=10 # Text alpha when using Xft xftalpha 1.0 # Print everything to stdout? # out_to_console no # MPD host/port # mpd_host localhost # mpd_port 6600 # mpd_password tinker_bell # Print everything to console? # out_to_console no # mail spool #mail_spool $MAIL # 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_type override # If own_window is yes, you may use type normal, desktop or override #own_window_type normal # Use pseudo transparency with own_window? #own_window_transparent yes # If own_window_transparent is set to no, you can set the background colour here #own_window_colour hotpink # 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 280 5 maximum_width 200 # Draw shades? draw_shades no # Draw outlines? draw_outline no # Draw borders around text draw_borders yes # Draw borders around graphs draw_graph_borders yes # Stippled borders? stippled_borders 4 # border margins border_margin 4 # border width border_width 1 # Default colors and also border colors default_color lightgrey default_shade_color black default_outline_color black # 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 815 gap_y 12 # 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 # Maximum size of buffer for user text, i.e. below TEXT line. #max_user_text 16384 # Allow for the creation of at least this number of port monitors (if 0 or not set, default is 16) #min_port_monitors 16 # Allow each port monitor to track at least this many connections (if 0 or not set, default is 256) #min_port_monitor_connections 256 # variable is given either in format $variable or in ${variable}. Latter # allows characters right after the variable and must be used in network # stuff because of an argument # stuff after 'TEXT' will be formatted on screen # /media/debian #${color lightgrey}${fs_used /media/debian}/${fs_size /media/debian} ${fs_bar /media/debian} TEXT ${color}$sysname $nodename $kernel $machine ${alignr}${time %k:%M:%S} ${color}uptime: $uptime ${alignr}${time %d/%m/%y} ${color}load: $loadavg ${color}cpu: $cpu% ${cpubar} ${color}Temp: ${acpitemp} ${color}ram: $mem/$memmax - $memperc% ${membar} ${color}swap: $swap/$swapmax - $swapperc% ${swapbar} ${color}procesy: $processes ${color}uruchomione: $running_processes ${color}siec: ${color green}NETWORK (${addr wlan0}) ${hr 2}${color green} Signal: ${wireless_link_qual_perc wlan0} Down: ${color green}${downspeed wlan0} k/s ${alignr}Up: ${upspeed wlan0} k/s ${downspeedgraph wlan0 25,70 000000 ff0000} ${alignr}${upspeedgraph wlan0 25,70 000000 00ff00}${color green} Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0} Inbound: ${tcp_portmon 1 32767 count} Outbound: ${tcp_portmon 32768 61000 count}${alignr}Total: ${tcp_portmon 1 65535 count} Mail: ${pop3_unseen pop3.poczta.onet.pl mail@mail hasło -i 5} ${color}hdd: ${color}/ ${fs_used /}/${fs_size /} ${fs_bar /} ${color}/home ${fs_used /home}/${fs_size /home} ${fs_bar /home} ${color}/media/win_c ${fs_used /media/win_c}/${fs_size /media/win_c} ${fs_bar /media/win_c} ${color}/media/win_d ${fs_used /media/win_d}/${fs_size /media/win_d} ${fs_bar /media/win_d} ${color}/mnt/lin ${fs_used /mnt/lin}/${fs_size /mnt/lin} ${fs_bar /mnt/lin} ${color}nazwa pID CPU% MEM% ${color red} ${top name 1} ${top pid 1} ${top cpu 1} ${top mem 1} ${color} ${top name 2} ${top pid 2} ${top cpu 2} ${top mem 2} ${color} ${top name 3} ${top pid 3} ${top cpu 3} ${top mem 3} ${color} ${top name 4} ${top pid 4} ${top cpu 4} ${top mem 4}
Offline
[quote=eTo]
# Create own window instead of using desktop (required in nautilus) own_window yes own_window_hints undecorated,below,skip_taskbar background no # Use double buffering (reduces flicker, may not work for everyone) double_buffer yes
[/quote]
Biorąc pod uwagę config [b]ilina[/b], stawiam że wystarczy dodać do [tt]own_window_hints[/tt] [i]sticky[/i], żeby wyglądało tak:
own_window_hints undecorated,sticky,below,skip_taskbar
Offline
Dzięki za pomoc, teraz działa na wszystkich pulpitach (zarówno config, jak i ten "mój" po dopisaniu[i] sticky[/i] :)
Offline
Time (s) | Query |
---|---|
0.00011 | SET CHARSET latin2 |
0.00004 | SET NAMES latin2 |
0.00123 | SELECT u.*, g.*, o.logged FROM punbb_users AS u INNER JOIN punbb_groups AS g ON u.group_id=g.g_id LEFT JOIN punbb_online AS o ON o.ident='3.137.176.213' WHERE u.id=1 |
0.00065 | REPLACE INTO punbb_online (user_id, ident, logged) VALUES(1, '3.137.176.213', 1732813101) |
0.00057 | SELECT * FROM punbb_online WHERE logged<1732812801 |
0.00103 | SELECT topic_id FROM punbb_posts WHERE id=171488 |
0.00119 | SELECT id FROM punbb_posts WHERE topic_id=18842 ORDER BY posted |
0.00061 | SELECT t.subject, t.closed, t.num_replies, t.sticky, f.id AS forum_id, f.forum_name, f.moderators, fp.post_replies, 0 FROM punbb_topics AS t INNER JOIN punbb_forums AS f ON f.id=t.forum_id LEFT JOIN punbb_forum_perms AS fp ON (fp.forum_id=f.id AND fp.group_id=3) WHERE (fp.read_forum IS NULL OR fp.read_forum=1) AND t.id=18842 AND t.moved_to IS NULL |
0.00009 | SELECT search_for, replace_with FROM punbb_censoring |
0.00079 | SELECT u.email, u.title, u.url, u.location, u.use_avatar, u.signature, u.email_setting, u.num_posts, u.registered, u.admin_note, p.id, p.poster AS username, p.poster_id, p.poster_ip, p.poster_email, p.message, p.hide_smilies, p.posted, p.edited, p.edited_by, g.g_id, g.g_user_title, o.user_id AS is_online FROM punbb_posts AS p INNER JOIN punbb_users AS u ON u.id=p.poster_id INNER JOIN punbb_groups AS g ON g.g_id=u.group_id LEFT JOIN punbb_online AS o ON (o.user_id=u.id AND o.user_id!=1 AND o.idle=0) WHERE p.topic_id=18842 ORDER BY p.id LIMIT 0,25 |
0.00072 | UPDATE punbb_topics SET num_views=num_views+1 WHERE id=18842 |
Total query time: 0.00703 s |