Score:0

Restore a minimzed window with a terminal command?

cn flag

I am using this command to "activate" (focus) a unfocused window:

xdotool windowactivate --sync $WINDOW_ID

But, this only works if the window is not minimzed. So I figured I need a separate command to "restore" the window from minimzed state.

Is there such a command?

Score:0
cn flag

Answering my own question here, perhaps others find it useful:

wmctrl -x -a "$WINDOW_ID" is able to "restore" a minimized window.

The WINDOW_ID can be found by listing open windows: wmctrl -lxp

E.g. wmctrl -lxp returns

0x04800050 0 54543 code.Code pop-os common - Visual Studio Code

Then "code.Code" is the WINDOW_ID:

wmctrl -x -a "code.Code"
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.