-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add window rules and actions for pcmanfm-qt --desktop
#933
Conversation
recording.webm |
Testing this "lxqt" branch, but somehow I get nothing of the 3 to work: waybar and switcher show still
The lxqt branch is |
Weird. Not sure why. You've got two hyphens in the title ( If that doesn't work, try applying this patch to see what the app_id + title actually are on map.
|
that was a typo, the rule (c&p up here) should be ok.
Install is correct?
|
Try running it from the build directory. That rules out that it's the wrong binary that you're running. git clone --branch=lxqt https://github.com/johanmalm/labwc.git
cd labwc
meson setup build
meson compile -C build
./build/labwc -s 'pcmanfm-qt --desktop' |
Okeey, it was my startup script. I didn't test labwc for some time and forgot that it started it directly from the build folder without installing it and not from
"maximize" isn't needed IMO. |
Hey - we must have typed at the same time 😄 |
Yeah, we were. Is it possible to set layers e/o roles in theory with labwc? Anyway, for pcmanfm this approach works fine, thanks! |
It might be required if you have another panel that uses the proper layershell protocol, it basically should make sure that it only uses the usable space that is not exclusively used by a panel. If pcmanfm-qt request maximized state itself that should also be fine but requesting the output dimensions would cause issues. The same will be true once some |
Well, if you have a panel in the bottom layer (which I do) then the desktop hides it. There is another advantage of We can make it work without I can have a look at the pcmanfm-qt code to see if I can figure something out - but will have to be another day. |
|
Exactly. Without the |
It might be this line https://github.com/lxqt/pcmanfm-qt/blob/8a7e4b6d6b37e5db619356a3bacd476e3683312c/pcmanfm/desktopwindow.cpp#LL1332 ... but could lead to regressions |
@stefonarch |
No idea about that, you may ask @tsujan, I've never had any dual monitor setup. Just noticed that
makes the panel sticky also on all desktops (thought there is no such action atm). Probably also "region" can be used well for the notifications |
@stefonarch Yes, -- EDITED -- Actually - in Openbox the
|
@tsujan I'm not really pushing in any particular direction, I'm just experimenting and learning at the moment. I'm more interested in the icons. Let me share an observation 😄 If I apply the patch below and implement a rule which moves
If running So, I'm just thinking that if there was an option to choose the second branch of that I'm not really considering any regressions, etc. (just playing) Also, please bear in mind that I've spent a lot of time thinking about layer-shell implementations which are output based (not designed to have one big surface spanning multiple outputs), so my head is rightly or wrongly stuck in that space at the moment. |
People use multiple screens to extend their work area. Duplicating items inside the same widget would be a bug. Adding multiple widgets for multiple screens and making multiple copies of each item would be counter-intuitive — to say nothing of the complex code, which also contradicts lightweightness. BTW, If |
Understood. Yes, the |
I hope it'll work with all wlroots-based compositors. Its Qt5 version "worked" with them (I'd tested it) but terribly ;) because it put the whole app on a layer — its menus and tooltips too! Perhaps the reason was Qt5 itself. |
All review comments processed. Suggest dealing with 'sticky' in a separate PR. Original Post updated. Note:
|
Right, there's no need to maximization. I'm not familiar with the code of labwc but, months ago, I did it for the stable version of Wayfire by making personal patches for (1) setting the layer, (2) setting stickiness, EDIT: Sorry, my mistake — after months, I've forgotten many things. The no-raise property was for another purpose.. |
LGTM, did not have time to test. |
Updated and tested again, all working fine. |
Thanks all for the help. Another step forward 😄 |
Thanks to you! Using now labwc as daily driver. Wondering if there is some irc or matrix or whatever channel to discuss, ask questions on the fly etc? |
#labwc @ libera |
Those drag-and-drop popups work for me when dragging to It looks like it's not related to the desktop implementation or our window-rules because I can't drag-and-drop between Which application did you drag from? |
It's about dragging from the desktop itself: a file or folder into a folder. EDIT: yes, from a pcmanfm-qt window it works as expected. |
Oh - I see. Got it. That's weird! |
Have raised #939 so that we don't lose this one. |
Add
ToggleAlwaysBelowToggleAlwaysOnBottom
skipTaskbar
skipWindowSwitcher
(which isn't really needed for this because window-switcher doesn't show views in always-below-tree, but it seems more complete to include it here anyway in case we change the window-switcher behavior later)Try it with (--EDITED--):
This example is not output-centered like a layer-shell implementation would be, but rather works across the whole work area.
In
pcmanfm-qt
desktop-preferences the following settings are useful:Background
- individual wallpapers for each monitor. This looks better if you have outputs of different size.General
- margins of work area (use this to allow for layer-shell panels and the like)