Gnome 3.6 通知区域可以缩小吗?

Vag*_*232 13 gnome

我发现 GNOME Shell 3.6 对消息托盘的更改令人恼火。有没有办法将消息托盘切换到旧模型或至少缩小项目并阻止它在被召唤时推动整个桌面?

小智 11

新设计使托盘无法用于许多具有托盘图标的应用程序,如 CherryTree、Deluge 等,因为每次访问都必须等待一秒钟!如果您的鼠标光标碰巧接触桌面底部仅一秒钟,您就会看到令人讨厌的移动。我不知道 gnome 开发人员想用这样的“创新”去哪里。

但是,您可以通过编辑/usr/share/gnome-shell/js/ui/messageTray.js.我更改TRAY_DWELL_TIME to 50 ms并通过更改读取的行将热区设置为旧的右下角来更改托盘行为let shouldDwell = ...

let shouldDwell = (x >= monitor.x && x == monitor.x + monitor.width - 1 &&

这使托盘再次可用,但我没有找到防止向上移动的方法。

编辑(感谢@6ahodir):

为防止桌面向上移动,请更改同一文件 ( /usr/share/gnome-shell/js/ui/messageTray.js) 并更新_showDesktopClone()函数中的以下行:

{ y: -this.actor.height,

对此:

{ y: 0,

如果您想删除 messageTray,

let shouldDwell = (x >= monitor.x + monitor.width && x <= monitor.x + monitor.width + 1 &&    
Run Code Online (Sandbox Code Playgroud)


小智 5

您可以缩小消息托盘修改 /usr/share/gnome-shell/theme/gnome-shell.css

#message-tray {
    background: #2e3436 url(message-tray-background.png);
    background-position: 0 0;
    background-repeat: repeat;
    transition-duration: 250;
    height: 36px;
}
Run Code Online (Sandbox Code Playgroud)

您还应该在/usr/share/gnome-shell/js/ui/messageTray.js. SOURCE_ICON_SIZESource类中搜索常量并将其设置为您选择的值:-)