Remove Widgets which are off-screen

Remove Widgets which are off-screen

我按照我需要的方式配置了桌面。更换显示器后(有时甚至会发生这种情况,当我将它们拔出并重新插入时),Linux 为屏幕创建了一个新的空配置。由于旧桌面不会被删除,因此屏幕外有小部件,我无法删除它们。对我来说,它造成了一些不便,这就是为什么我想将它们删除。

有办法去除这些吗?

答案1

对于 Plasma,桌面配置文件保存在~/.config/plasma-org.kde.plasma.desktop-appletsrc.在那里您可以看到所有放置在桌面上某个位置的小部件。

您如何知道哪些小部件不在屏幕上?

Some configurations show a lastScreen=-1 property. If it's -1, it's obviously off-screen. Another way to tell is to look at other information. For example a task manager, here you can look at which application are pinned to it. If there are applications pinned to it, you don't have pinned on you currently visible bars, it's probably off-screen.

Notice

When deleting, always delete all parts of a widget. The header of a widget looks like this: [Containments][1016][General]. If you decide, that this widget is off-screen and delete it, make sure to delete all containments which have the same id.

Just in case, you should make a backup of the file and then start messing around with hit.

相关内容