I use some scripts for session/window management which rely on wmctrl, xwininfo, xprop.
When I am forced to port these scripts to Wayland some day, which programs are best suited?
What DE do you use?
From a quick glance over wmctrl, this functions seems fully covered by the shortcuts from DE’s like Plasma itself.
I do not use desktop environments as I prefer the classical tool box approach - combining window manager(s) of my choice with terminal emulators of my choice, file managers and viewers of my choice, a display manager of my choice and so on.
What do you mean by “shortcuts” btw? Keyboard shortcuts? I am talking about script programs calling wmctrl, xwininfo etc.
double posting, can be deleted
Maybe I’m misunderstanding, but a shortcut would require user interaction, would it not?
I’m actually in a similar boat (just haven’t taken time to sort it out), but the purpose of wmctrl is to be able to script interactions with the WM to automate window management activities.
On Wayland, global window inspection and manipulation is intentionally restricted. There maybe compositor-specific options available depending the compositor in question.
@M43K8M Have a look at i3, sway or hyprland (I run this) almost all done via config files as opposed to some of the X tools. For example swaymsg -t get_tree is like xprop and xwinifo.
Thank you for the suggestions. What do you think would be the best suited Wayland compositor for replacing highly configurable non-tiling window managers like Fvwm2 with a focus on flexible custom keyboard shortcuts?
I’d like to continue using custom keyboard shortcuts for (a) window handling (moving, resizing, switching virtual desktops etc.), and (b) starting command lines.
@M43K8M Like I indicated, my experience (and somewhat limited at that) is with Hyprland, if you google the likes of Hyprland+dotfiles there are a plethora of setups. Likewise visit the respective Project and Documentation pages. For example https://wiki.hypr.land/Getting-Started/Preconfigured-setups/.
My Hyprland setup is on MicroOS and logging is via the tty and using seatd. I also maintain some of the Hyprland packages, so I guess biased…
@malcolmlewis Thank you. Hyprland seems to come close to what I am looking for (basically a Wayland substitute for Fvwm2 or similar window manager), especially concerning the possibility of defining custom keyboard shortcuts and some kind of floating windows mode, so I’ll look at Hyprland first.
@M43K8M For floating windows I use super+v;
bind = $mainMod, V, togglefloating,
windowrulev2 = float,class:^(Alacritty)$,title:^(Alacritty)$
windowrulev2 = float,class:^(gedit)
windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0
@malcolmlewis or wlprop.
Have a look on labwc also.
@malcolmlewis, @conram Thank you. Looks like floating windows by default could be configured by some workspace-based rule. labwc is the 2nd after Hyprland on my list to check out. Looks to me like porting wmctrl, xprop, xwininfo calls to Wayland is only the second step, the first being selecting some compositor.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.