SeptemberHX / dde-top-panel

dde top panel for Deepin V20
GNU General Public License v3.0
232 stars 19 forks source link
deepin topbar

DDE Top Panel

"Buy Me A Coffee"

【中文请看】:Deepin 论坛 【全局菜单基本原理请看】:Github WIKI

Top panel for deepin desktop environment v20.

This is a modification of dde-dock for top panel. Comparing to dde-dock, it:

Plugin Description
dde-istate-menus Plugin for showing CPU/RAM/MEM/Time
dde-smart-dir Plugin for listing files ordered by last modification time in watched folders
dde-mpris2 Plugin for controlling music player and show lyric

Features

Know issues:

Screenshot

How to run

For Deepin V20

  1. download deb package from releases and install the deb package. you can enable the auto-start in the launcher
  2. for removing the title bar of maximized windows, you can enable this feature in the settings by right clicking
  3. If you want to use plugins on top panel, just copy the plugin files to ~/.local/lib/dde-top-panel/plugins. For example, if you want to get tray icons on top panel, just cp /usr/lib/dde-dock/plugins/libtray.so ~/.local/lib/dde-top-panel/plugins
  4. If you want to enable the global menu, please install dde-globalmenu-service

For Other distributions

I only have deepin v20 installed on my computer, and I cannot compile it for other distributions. So it needs to be built from source.

Dependency: Qt5Widgets, Qt5Concurrent, Qt5X11Extras, Qt5DBus, Qt5Svg, DtkWidget, DtkCMake, KF5WindowSystem, XCB_EWMH, DFrameworkDBus, QGSettings, DtkGUI

sudo apt install git cmake g++ qtbase5-dev libqt5x11extras5-dev libqt5svg5-dev libdtkwidget-dev libdframeworkdbus-dev libgsettings-qt-dev qttools5-dev libkf5windowsystem-dev libxcb-ewmh-dev libxdo-dev
git clone https://github.com/SeptemberHX/dde-top-panel.git
cd dde-top-panel
mkdir build
cd build
cmake ..
make -j8 package

Then a deb package will be generated.

For tray icons of wine applications

Due to the logical of tray plugins, only one tray widget can hold the wine trays (You can click the icon and it will response to the click).

The main code of wine trays is in plugins/tray/xembedtraywidget. Generally, it wraps the raw wine trays with a new widget and embeds it to the tray, then it operates on the new widget. The problem is every tray widget will create a new container widget for each wine trays, and the tray widgets launched before can't the window id of the new container widget.

Just move libtray.so from /usr/lib/dde-dock/plugins/libtray.so to ~/.local/lib/dde-top-panel/plugins/. Then there will be no tray icons on dock.


Icons made by Freepik from www.flaticon.com