AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 20282
Accepted
Seamus
Seamus
Asked: 2011-01-07 03:56:03 +0800 CST2011-01-07 03:56:03 +0800 CST 2011-01-07 03:56:03 +0800 CST

如何停止在特定区域的桌面上出现图标?

  • 772

当我将某些内容下载到我的桌​​面,或者插入 CD 或闪存驱动器时,图标会出现在我的桌面上。当我运行conky时,图标有时会出现在conky下方的右上角;我看不到的地方。

我该如何阻止这种情况发生?

我.conkyrc的贴在下面。我不是自己写的,所以我不完全确定我需要改变什么,或者哪些部分与这个特定问题相关......

# 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 shows number of connections from your computer and application/PID making it. Kill spyware!
#
# -- Pengo
# 

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer right

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

# Update interval in seconds
update_interval 3.0

# Minimum size of text area
# minimum_size 250 5

# Draw shades?
draw_shades no

# 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 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color grey

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 20

# stuff after 'TEXT' will be formatted on screen

TEXT
$color
${color orange}SYSTEM ${hr 2}$color
$nodename $sysname $kernel on $machine

${color orange}CPU ${hr 2}$color
${freq}MHz   Load: ${loadavg}   Temp: ${acpitemp}
$cpubar
${cpugraph 000000 ffffff}

NAME ${goto 150}PID ${goto 200}CPU% ${goto 250}MEM%
${top name 1} ${goto 150}${top pid 1} ${goto 200}${top cpu 1} ${goto 250}${top mem 1}
${top name 2} ${goto 150}${top pid 2} ${goto 200}${top cpu 2} ${goto 250}${top mem 2}
${top name 3} ${goto 150}${top pid 3} ${goto 200}${top cpu 3} ${goto 250}${top mem 3}
${top name 4} ${goto 150}${top pid 4} ${goto 200}${top cpu 4} ${goto 250}${top mem 4}

${color orange}MEMORY / DISK ${hr 2}$color
RAM:   $memperc%   ${membar 6}$color
Swap:  $swapperc%   ${swapbar 6}$color

Home:  ${fs_free_perc /home}%   ${fs_bar 6 /}$color 
Free Space: ${fs_free /home}

${color orange}NETWORK (${addr eth0}) ${hr 2}$color
Down: $color${downspeed eth0} k/s ${alignr}Up: ${upspeed eth0} k/s
${downspeedgraph eth0 25,140 000000 ff0000} ${alignr}${upspeedgraph eth0 
25,140 000000 00ff00}$color
Total: ${totaldown eth0} ${alignr}Total: ${totalup eth0}
${execi 30 netstat -ept | grep ESTAB | awk '{print $9}' | cut -d: -f1 | sort | uniq -c | sort -nr}

${color orange}WIRELESS (${addr wlan0}) ${hr 2}$color
Down: $color${downspeed wlan0} k/s ${alignr}Up: ${upspeed wlan0} k/s
${downspeedgraph wlan0 25,140 000000 ff0000} ${alignr}${upspeedgraph wlan0 
25,140 000000 00ff00}$color
Total: ${totaldown wlan0} ${alignr}Total: ${totalup wlan0}
${execi 30 netstat -ept | grep ESTAB | awk '{print $9}' | cut -d: -f1 | sort | uniq -c | sort -nr}

已经提供了 Conky 解决方案,但也许这些不是解决它的最佳方式。我真正想要的是停止图标甚至出现在桌面窗口的那部分:也就是说,我想让桌面空间的一部分“禁止”出现在桌面上的新图标。

nautilus
  • 4 4 个回答
  • 1914 Views

4 个回答

  • Voted
  1. luri
    2011-01-27T18:15:58+08:002011-01-27T18:15:58+08:00

    如果你改变这两行,你可以得到你想要的,如下所示:

     own_window_type panel
    
     own_window_transparent no
    

    然后添加这两个:

     own_window_argb_visual yes
    
     own_window_argb_value 0
    

    解释:

    own_window_argb_visual yes启用真正的透明度(own_window_transparent yes意味着只是伪透明度,只是“克隆”背景......我们必须将后者设置为no,这就是为什么我们需要编辑上面的第二行)

    own_window_argb_value 0将 'alpha' 设置为 0(完全透明)。它可以设置为 255(完全不透明)

    own_window_argb_visual yes不适用于覆盖,这就是为什么需要更改own_window_type为panel

    对我来说,它完美无缺。唯一的缺点是您可以看到图标但无法单击它,因为它仍然在conky的窗口下;但是,您可以单击并拖动鼠标选择此图标 - 窗口化选择 -.... 之后,您可以使用键盘调出上下文菜单,或者只需按 Enter 键即可“打开”刚刚插入的媒体。

    • 2
  2. Best Answer
    user8290
    2011-01-28T12:18:55+08:002011-01-28T12:18:55+08:00

    对于 Maverick,假设 Gnome ......

    sudo apt-get install screenlets
    

    下载Folderview Screenlet,然后打开 Screenlets 进行安装。

    Applications->Accessories->Screenlets
    

    安装后,双击“文件夹视图”screenlet。右键单击 screenlet 并选择Properties。转到选项-> 文件夹并选择桌面。单击关闭。

    现在让你的 Gnome 桌面图标消失:

    [ALT]+[F2]
    gconf-editor
    Run
    

    转到apps->nautilus->preferences->show_desktop,将值设置为false。将您的“文件夹视图”屏幕从 Conky 移开。

    您仍然可以从文件管理器访问“地点”和“设备”。事实上,你可以在没有桌面图标的情况下做任何事情。只需运行 gconf-editor 来禁用桌面图标也可能对您有用。

    • 2
  3. Jojan
    2011-01-07T10:12:40+08:002011-01-07T10:12:40+08:00

    我不认为这是可能的。但是,根据设置,您应该能够通过按住Alt键并使用鼠标左键(假设您使用右手设置)来移​​动 Conky,并像任何其他窗口一样移动它。

    您还可以在gconf-editor. 只需禁用/apps/nautilus/preferences/show_desktop,您的桌面就会干净整洁。

    • 1
  4. user8592
    2011-01-27T14:46:39+08:002011-01-27T14:46:39+08:00

    在此链接阅读 Conky 常见问题解答:http: //conky.sourceforge.net/faq.html

    具体这两个问题:

    1. Conky不会停止闪烁
    2. 为什么 Conky 让我的图标消失?
    • -1

相关问题

  • Nautilus 自动以 root 身份浏览

  • 在 nautilus 中刷新缩略图

  • 如何在 Nautilus 中管理保存的完整网页及其目录(例如 n.html 和 n_files)

  • 如何让 Nautilus windows 坚持拖放?[关闭]

  • Nautilus 中的 FTP 连接问题 - 一段时间后似乎超时

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    我需要什么命令来解压缩/提取 .tar.gz 文件?

    • 8 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Marko Smith

    如何使用命令行将用户添加为新的 sudoer?

    • 7 个回答
  • Marko Smith

    更改文件夹权限和所有权

    • 9 个回答
  • Martin Hope
    EmmyS 我需要什么命令来解压缩/提取 .tar.gz 文件? 2011-02-09 14:50:41 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve