Registered Member
|
Hello,
I'm trying to restore minimized windows via cmd so it can be done by a script. Is this possible? I already tried wmctrl and xdotools, but they only provides options to minimize a window not to restore it. Now I see two options left: dbus and kwin scripts. But because I don't know much about them, I just want to ask if this is possible at all? Or do you have any other suggestions how to restore a window? Thanks in advance. |
|
xdotool windowmap <WIN_ID>
It's oc. also possible to unminimize (all?) windows with a kwin script. Latter will likely be more efficient (than calling xdotool n times) but oc. not work w/ other WMs. What do you want to do in particular? (KWin also has a feature to assign shortcuts to windows. They'll be activated and implcitily unminimized when called this way) |
Registered Member
|
I wonder if there is a Wayland style solution to this.
|
Registered Member
|
I don't want to unminimize all windows. I want the following:
I press F 10 → SpeedCrunch is unminimized. I press F10 again → SpeedCrunch is minimized and the same for another application (zim) and F12. How do I activite this kwin shortcut? In the application specific kwin settings I entered a shortcut, but this had no effect. Nothing happens when the shortcut is pressed. But I'm not sure what is supposed to happen. It worked with xdotool und windowunmap und windowmap, although this is not the same as minimize and unminimize. But it's ok as a workaround, thanks for pointing this out. |
|
You can eg. assign a shortcut from the Alt+F3 menu, but that will (unlike the ruled version) only apply to *this* window (ie. no more after a speedcrunch restart)
Neither would allow to minimize the window. xdotool has "windowminimize" what will perform a true iconification (aka "minimization" in MS speech windowmap (or windowactivate) will implicitly unminimize the window, there should be no drawbacks. I could also offer https://github.com/luebking/KLItools/bl ... system.cpp but it does atm. only operate on window ids (not search them by eg. classname) nor to the minimization toggle. I could add that, though |
Registered Member
|
@xdotool: I can minimize the window with windowminimize. But after this "windowactivate" and "windowraise" has no effect, I can't "unminimize" the window.
@Kwin: What does the "ruled shortcut"? @klitools: Feel free to do so. I'll would use it, but the solution with window(un)map is okay too. Thanks for your help. |
|
ad xdotool:
"strange" - windowactivate works for me (window raise does, expectably, not) Maybe extreme focus stealing prevention level? ad kwin: It applies the shortcut to a window that matches the parameters configured in the rule. This window can then be activated by this shortcut. ad KLITools/kwindowsystem: done =)
|
Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot], ourcraft