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 / 问题 / 10005
In Process
Ikke
Ikke
Asked: 2010-10-29 05:07:20 +0800 CST2010-10-29 05:07:20 +0800 CST 2010-10-29 05:07:20 +0800 CST

让托盘器与双屏设置一起工作

  • 772

我正在使用 XMonad 作为我的窗口管理器,并希望将托盘用作 nm-applet 之类的图标面板。

问题是面板不会出现在屏幕顶部。如果我将它设置到底部,它就会出现。

经过大量尝试,我发现这是因为我的 xorg.conf 设置为双屏,并且托盘面板可能在我的视图之外产生(我目前只有一个屏幕,但我切换了很多)。

在手动调整 xorg.conf 文件以只允许一个屏幕后,面板出现在正确的位置。

这些是我必须修改的东西:

Section "Monitor"
        Identifier   "0-LVDS"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
        Option      "PreferredMode" "1366x768"
        Option      "TargetRefresh" "60"
        Option      "Position" "0 0" # Was 1280 256
        Option      "Rotate" "normal"
        Option      "Disable" "false"
EndSection

SubSection "Display"
        Viewport   0 0
        Virtual   1366 768 # Was 2646 2646
        Depth     24
EndSubSection

问题当然是我不能再使用我的双屏设置了。即使使用双屏设置,有没有办法强制托盘放在正确的位置?

multiple-monitors
  • 3 3 个回答
  • 4442 Views

3 个回答

  • Voted
  1. Ramon Diaz-Uriarte
    2011-01-16T09:12:47+08:002011-01-16T09:12:47+08:00

    是的,当您说“托盘面板在我的视野之外产生”时,我认为您是对的。我刚刚在另一个论坛上发布了这个答案(https://bbs.archlinux.org/viewtopic.php?pid=878706#p878706)

    我认为问题在于放置托盘的位置与虚拟屏幕大小和布局之间的交互。我有一个类似的问题,托盘(右下)在我的双屏设置后消失了。就我而言,我在这样做时遇到了麻烦:

    xrandr --output LVDS1 --auto --primary --rotate normal --pos 0x0 --output VGA1 --rotate normal --left-of LVSD1
    
    trayer --edge bottom --align right --SetDockType true --SetPartialStrut true --expand true --widthtype request --transparent true --tint 0x191970 --height 12 --distance 20 --distancefrom right
    

    (LVSD1 是我的笔记本电脑)

    问题是左显示器是 1280x1024,而笔记本电脑是 1600x900。这意味着托盘(--edge bottom)位于笔记本电脑屏幕下部的下方。一个简单的解决方法是对齐两个屏幕的底部,例如(使用我的设置)

    xrandr --output LVDS1 --auto --primary --rotate normal --pos 1280x124 --output VGA1 --rotate normal --auto --pos 0x0
    

    也许在你的情况下,它只是指定你的主显示器的位置和托盘边缘选项的问题,这样它们就可以很好地相互配合。

    PS1。我认为在最近的 xorg 发行版中,您实际上并不需要指定 xorg.conf 文件。

    • 2
  2. Andrew
    2012-01-12T19:53:17+08:002012-01-12T19:53:17+08:00

    您可以采取的另一种方法是使用支持多显示器的托盘叉:https ://github.com/sargon/trayer-srg

    • 2
  3. Ikke
    2011-02-17T00:59:31+08:002011-02-17T00:59:31+08:00

    我现在正在使用 stalonetray。此应用程序允许您绝对放置托盘栏,从而解决问题。

    • 1

相关问题

  • 如何设置一纵一横两屏?

  • gnome-mplayer 使用 xineramascreen 选项在第二个屏幕上播放

  • 使用带有两屏设置的 Ubuntu

  • 自 10.04 起,笔记本电脑的扩展显示器显示摇晃/波动的图像 [关闭]

  • 有没有办法在 Ubuntu a la Windows 中拥有扩展桌面?[关闭]

Sidebar

Stats

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

    如何安装 .run 文件?

    • 7 个回答
  • Marko Smith

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

    • 24 个回答
  • Marko Smith

    如何获得 CPU 温度?

    • 21 个回答
  • Marko Smith

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

    • 25 个回答
  • Marko Smith

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

    • 7 个回答
  • Marko Smith

    更改文件夹权限和所有权

    • 9 个回答
  • Marko Smith

    你如何重新启动Apache?

    • 13 个回答
  • Marko Smith

    如何卸载软件?

    • 11 个回答
  • Marko Smith

    如何删除 PPA?

    • 26 个回答
  • Martin Hope
    NES 如何启用或禁用服务? 2010-12-30 13:03:32 +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
    Olivier Lalonde 如何在结束 ssh 会话后保持进程运行? 2010-10-22 04:09:13 +0800 CST
  • Martin Hope
    David B 如何使用命令行将用户添加为新的 sudoer? 2010-10-16 04:02:45 +0800 CST
  • Martin Hope
    Hans 如何删除旧内核版本以清理启动菜单? 2010-08-21 19:37:01 +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