20
849
Fork
You've already forked fuzzel
83

Feature request: positioning the window with command line arguments #130

Closed
opened 2022年05月01日 16:41:10 +02:00 by LGFae · 6 comments

Hello.

I'd like to be able to position the fuzzel window arbitrarily on my screen. This would allow me to simulate 'menus' for stuff in my desktop (e.g. click on something in bar and have a menu pop up associated with it).

Of course, in order to be fully functional, I would need to also have support for selecting entries with the mouse. I will open a separate issue, since these are independent features, and one may be accepted without the other.

Hello. I'd like to be able to position the fuzzel window arbitrarily on my screen. This would allow me to simulate 'menus' for stuff in my desktop (e.g. click on something in bar and have a menu pop up associated with it). Of course, in order to be fully functional, I would need to also have support for selecting entries with the mouse. I will open a separate issue, since these are independent features, and one may be accepted without the other.
Owner
Copy link

We can't really position the window. We can set left/right/top/bottom anchor points, and margins, but that's all. Final position will also depend on bars (for example, setting a margin of 0 will typically put the surface below a bar, not on top of if).

As such, I'm not sure I want to support positioning, because it would be a hack. Likely with minor differences between compositors.

We can't _really_ position the window. We can set left/right/top/bottom anchor points, and margins, but that's all. Final position will also depend on bars (for example, setting a margin of 0 will typically put the surface **below** a bar, not on top of if). As such, I'm not sure I want to support positioning, because it would be a hack. Likely with minor differences between compositors.
Author
Copy link

Oh, right. I've worked with the layer shell before, but since it was to set wallpapers I never had to think about positioning. It never occurred to me there isn't a proper way to set the window position, but now that you've said it, yeah, I guess there isn't, huh?

I still think it would be nice to have, though certainly not essential. Feel free to close this issue if you'd rather not support it.

Oh, right. I've worked with the layer shell before, but since it was to set wallpapers I never had to think about positioning. It never occurred to me there isn't a proper way to set the window position, but now that you've said it, yeah, I guess there isn't, huh? I still think it would be nice to have, though certainly not essential. Feel free to close this issue if you'd rather not support it.

We can't really position the window. We can set left/right/top/bottom anchor points, and margins, but that's all. Final position will also depend on bars

Anchoring would be enough IMHO. I'd like to click on a status bar icon on a corner, and have fuzzel show up in that corner.

E.g.: In line with #131 and #142

> We can't really position the window. We can set left/right/top/bottom anchor points, and margins, but that's all. Final position will also depend on bars Anchoring would be enough IMHO. I'd like to click on a status bar icon on a corner, and have fuzzel show up in that corner. E.g.: In line with https://codeberg.org/dnkl/fuzzel/issues/131 and https://codeberg.org/dnkl/fuzzel/issues/142

We can't really position the window. We can set left/right/top/bottom anchor points, and margins, but that's all. Final position will also depend on bars

Anchoring would be enough IMHO. I'd like to click on a status bar icon on a corner, and have fuzzel show up in that corner.

E.g.: In line with #131 and #142

This ^ Being able to choose any anchor would be enough bottom_left bottom_middle bottom_right, then top varients of that!

> > We can't really position the window. We can set left/right/top/bottom anchor points, and margins, but that's all. Final position will also depend on bars > > Anchoring would be enough IMHO. I'd like to click on a status bar icon on a corner, and have fuzzel show up in that corner. > > E.g.: In line with https://codeberg.org/dnkl/fuzzel/issues/131 and https://codeberg.org/dnkl/fuzzel/issues/142 This ^ Being able to choose any anchor would be enough bottom_left bottom_middle bottom_right, then top varients of that!
Contributor
Copy link

I took the liberty of putting a PoC together for custom anchoring: #213

Mind you it's been nearly two decades since I coded anything in C and the only things I ever coded were cli-based so I have exactly zero experience with coding Wayland or GUI apps in general. Expect the code to be crap. But it works (for me). More or less.

I took the liberty of putting a PoC together for custom anchoring: https://codeberg.org/dnkl/fuzzel/pulls/213 Mind you it's been nearly two decades since I coded anything in C and the only things I ever coded were cli-based so I have exactly zero experience with coding Wayland or GUI apps in general. Expect the code to be crap. But it works (for me). More or less.
Owner
Copy link

Fixed in 7cf672e9d2 (anchor support - not absolute positioning, as that's not possible on Wayland).

Fixed in https://codeberg.org/dnkl/fuzzel/commit/7cf672e9d25ae49a47cd2ec71e6eb0362c95acbe (anchor support - not absolute positioning, as that's not possible on Wayland).
Sign in to join this conversation.
No Branch/Tag specified
master
gnome-support
releases/1.14
issue-319-window-switching
issue-561-nord-theme-only
resvg-filtering-take-2
resvg-filtering
releases/1.13
rehanzo-dont-ignore-execute-648
keybinds-overwrite
issue-561-refresh-theme
ci-automated-testing
reenable-legacy-icons
releases/1.12
test-coverage-for-fzf-caching
releases/1.11
releases/1.10
releases/1.9
releases/1.8
releases/1.7
releases/1.6
releases/1.5
releases/1.4
releases/1.3
releases/1.2
releases/1.1
releases/1.0
1.14.1
1.14.0
1.13.1
1.13.0
1.12.0
1.11.1
1.11.0
1.10.2
1.10.1
1.10.0
1.9.2
1.9.1
1.9.0
1.8.2
1.8.1
1.8.0
1.7.0
1.6.5
1.6.4
1.6.3
1.6.2
1.6.1
1.6.0
1.5.4
1.5.3
1.5.2
1.5.1
1.5.0
1.4.2
1.4.1
1.4.0
1.3.0
1.2.0
1.1.0
1.0.1
1.0.0
0.9.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
dnkl/fuzzel#130
Reference in a new issue
dnkl/fuzzel
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?