• Stars
    star
    229
  • Rank 173,764 (Top 4 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created over 4 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

dde top panel for Deepin V20

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:

  • remove the launcher, show desktop, multi tasking, and application icons
  • full support for dde-dock plugins and tray
  • remove lots of unnecessary things so it is just a top panel. It is fixed to the top of the screen, and there is no way to change that.
  • separate plugin config gsetting path /com/deepin/dde/toppanel
  • different plugin directories: /usr/lib/dde-top-panel/plugins and ~/.local/lib/dde-top-panel/plugins
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

  • global menu support (with dde-globalmenu-service)
  • show window title on top panel
  • show title buttons on top panel when current window maximized
  • double-clicking on empty area on top panel will maximize current window
  • dragging and moving current maximized window by dragging empty area of top panel
  • remove the window title bar when maximized
  • support multi monitors
  • personal customization

Know issues:

  • panels on non-primary monitors only have the window title function. The plugins can not work on them. It is not an issue because the QPluginLoader can only create one instance from one plugin file. So the panel cannot create as many plugin widgets as the panels. Still trying to add the plugin back to all panels
  • Shortcuts of the global menu not work

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

More Repositories

1

joplin-plugin-enhancement

joplin plugin to enhance my daily usage
TypeScript
154
star
2

screenshot

A screenshot module for Python based on PyQt5
Python
55
star
3

joplin-plugin-bundle

Gather several plugins together into one panel with more elegant UI design!
TypeScript
48
star
4

dde-globalmenu-service

DBus service registery for dde-globalmenu
C++
44
star
5

dde-istate-menus

a dde-dock plugin which aims to implement most features of Istat menus(macOS) for Deepin V20
C++
40
star
6

dde-smart-dir

Smart Directory Dock Plugin on Deepin V20 inspired by Smart Folder on macOS
C++
15
star
7

dde-pstate

intel pstate dock plugin for Deepin V20
C++
12
star
8

Chameleon-patched

Show windows menu on titlebar on DeepinV20
C++
10
star
9

HP-Spectre-X360-13-late-2018-Hackintosh

Clover EFI for hp spectre-x360-13 late 2018
ASL
9
star
10

MPaste

An clipboard manager alternative to Paste for Linux
C++
8
star
11

dde-mpris2-plugin

mpris2 player plugin for deepin v20
C++
7
star
12

joplin-plugin-readcube-papers

joplin plugin for readcube papers
TypeScript
4
star
13

MFramework

MFramework
Java
3
star
14

dde-shelloutput-plugin

dde-dock plugin which can run shell commands and show output on dock for Deepin V20
C++
3
star
15

scripts

My daily scripts
JavaScript
2
star
16

joplin-plugin-zettlr

TypeScript
2
star
17

TodoManager

A simple TodoManager written in C++ && Qt5
C++
2
star
18

joplin-plugin-dida365

TypeScript
1
star
19

septemberhx.github.io

Shell
1
star
20

AutoGameTools

ๆธธๆˆๆŠค่‚ๅŠฉๆ‰‹
Jupyter Notebook
1
star
21

dde-globalmenu-integration

Specific Qt5 Platform theme for global menu
C++
1
star
22

joplin-plugin-rich-render

Trying to borrow existing plugins of other codemirror-based editor to Joplin
TypeScript
1
star