From b93301b2f6df8c798ee27ade387ecdf62466cc8e Mon Sep 17 00:00:00 2001 From: Hue Date: Sun, 1 Mar 2026 16:42:37 +0100 Subject: [PATCH 1/5] Added options for panel/dock positions and finer autohide configuration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Adjusted the naming of a few options in adequation with new features - Added options to control the delay before doing the showing/hiding animations - Added options to place the panel and dock on the left and right edges of the screen - Added minimal width option - Added option to force spanning the full edge - Option to force the panel to be centered by the middle box instead of the total width. This will lead to more spaced out elements in the side that takes less space For the panel, most widgets have a layout adaptation for the vertical panel. Exceptions are network and window-list, because i couldn’t figure out a clean or good way to do it are. Textual widgets (clock, command-output and arguably both of the previously mentionned unchanged) don’t have special adaptations, the formatting for the text they output should be adapted to account for it. Maybe it would be a good idea to add examples to the default config file/wiki. Breaking stuff : - dock/dock_height is replaced by dock/minimal_height Adresses #259 --- metadata/dock.xml | 34 ++++++- metadata/panel.xml | 55 +++++++++-- src/dock/dock.cpp | 55 +++++++---- src/dock/dock.hpp | 3 +- src/panel/panel.cpp | 100 +++++++++++++++---- src/panel/widget.hpp | 4 +- src/panel/widgets/battery.cpp | 20 ++++ src/panel/widgets/battery.hpp | 3 + src/panel/widgets/launchers.cpp | 23 +++++ src/panel/widgets/launchers.hpp | 4 + src/panel/widgets/network.cpp | 19 +++- src/panel/widgets/network.hpp | 2 + src/panel/widgets/separator.cpp | 20 ++++ src/panel/widgets/separator.hpp | 4 + src/panel/widgets/tray/tray.cpp | 24 ++++- src/panel/widgets/tray/tray.hpp | 3 + src/panel/widgets/volume.hpp | 3 +- src/panel/widgets/workspace-switcher.cpp | 79 ++++++++++----- src/panel/widgets/workspace-switcher.hpp | 10 +- src/util/wf-autohide-window.cpp | 119 ++++++++++++++++++----- src/util/wf-autohide-window.hpp | 39 +++++--- src/util/wf-popover.cpp | 16 ++- src/util/wf-shell-app.hpp | 3 +- wf-shell.ini.example | 9 +- 24 files changed, 516 insertions(+), 135 deletions(-) diff --git a/metadata/dock.xml b/metadata/dock.xml index 3451c1116..2f4c27b40 100644 --- a/metadata/dock.xml +++ b/metadata/dock.xml @@ -12,9 +12,20 @@ true + + - + + + + + + + @@ -191,7 +230,7 @@ - - + - + + +