Skip to content
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

Feature request: window resize pop-up #5855

Open
xzfc opened this issue Jan 7, 2024 · 1 comment
Open

Feature request: window resize pop-up #5855

xzfc opened this issue Jan 7, 2024 · 1 comment

Comments

@xzfc
Copy link
Contributor

xzfc commented Jan 7, 2024

I'm submitting a…

[ ] Bug
[x] Feature Request
[ ] Documentation Request
[ ] Other (Please describe in detail)

Intro

openbox-resize-popup

When you resize a terminal emulator window, some WMs display a pop-up hint with the terminal emulator size, in screen cells (not pixels). I find it useful, e.g., when you need to resize the terminal the to be at least of the specific size.

Particularly, openbox, metacity, gnome-shell do it by default. To get size in cells, they check width_inc/height_inc fields in WM_NORMAL_HINTS property, as encouraged by ICCCM:

width = base_width + ( i x width_inc )
height = base_height + ( j x height_inc )
Window managers are encouraged to use i and j instead of width and height in reporting window sizes to users. If a base size is not provided, the minimum size is to be used in its place and vice versa.

By default, these WMs only do so when resize increments are more than 1. So, in practice, only terminal emulator windows are affected, but not, e.g., browser windows.

Desired Behavior

Display similar pop-up when resizing a window in i3.

Impact

[ ] This feature requires new configuration and/or commands

It could be made non-configurable, though a configuration option could be added, similar to openbox: show_resize_popup always|newer|nonpixel.

Environment

i3 version 4.23 (2023-10-29) © 2009 Michael Stapelberg and contributors
@i3bot
Copy link

i3bot commented Jan 7, 2024

Please note that new features which require additional configuration will usually not be considered. We are happy with the feature set of i3 and want to focus in fixing bugs instead. We do accept feature requests, however, and will evaluate whether the added benefit (clearly) outweighs the complexity it adds to i3.

Keep in mind that i3 provides a powerful way to interact with it through its IPC interface: https://i3wm.org/docs/ipc.html.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants