Xfce Forum

Sub domains
 

You are not logged in.

#1 2021-09-05 10:43:01

almahdi
Member
Registered: 2020-07-04
Posts: 125

Any way to prevent an opened, running but minimized app get switched

Is there a way to prevent or skip certain opened, running but minimized app from getting focused (get foreground) when walking through apps focus switching by a mouse wheel scrolling or keyboard shortcut ?

Last edited by almahdi (2023-01-03 14:24:54)

Offline

#2 2021-09-05 13:25:33

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Any way to prevent an opened, running but minimized app get switched

What you want to do is set a window property to "skip pager". xdotool has an option to do this. Something like:

xdotool getactivewindow windowstate --toggle SKIP_PAGER

...this basically sets the currently active window state to skip pager. If you assign this command to a keyboard shortcut, then you can turn this state on and off for any given currently active (focused) window.

If you are looking at doing this permanently for a specific application, then devilspie or devilspie2 can help.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-01-03 13:43:13

almahdi
Member
Registered: 2020-07-04
Posts: 125

Re: Any way to prevent an opened, running but minimized app get switched

still couldn't do to help get it done
Need arose as:

Audio app / player is running minimizedly while a bunch of working on desktop
So when the work intensively require switching between current focused app and another minimized one, the mouse wheel is rolling on the panel bar to walk through the apps in order to restore a certain minimized one so mouse would point to that restored app to focus on it immediately..

So but then the annoying and disappointing behavior happening, it restored the player and focusing on it

Please Help really sincerely how the definitive solution !

Last edited by almahdi (2023-01-03 16:02:30)

Offline

#4 2023-01-03 15:12:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Any way to prevent an opened, running but minimized app get switched

The above should have worked. Did you:
- create a keyboard shortcut for that command
- press the keyboard shortcut when the audio app was the active window
- test using Alt+tab to see that it is no longer shown there?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2023-01-03 22:46:41

almahdi
Member
Registered: 2020-07-04
Posts: 125

Re: Any way to prevent an opened, running but minimized app get switched

almahdi wrote:

So when the work intensively require switching between current focused app and another minimized one, the mouse wheel is rolling on the panel bar to walk through the apps in order to restore a certain minimized one

So that answer works for switch focusing, not work to fulfil the request

The gist of quote demanding need:
When The mouse wheel is rolling on the panel bar to walk through the apps in order to restore a certain minimized app, it must always skip/ignore a predetermined particular app

it's clearly another story

Nor work the found argument below which's exact opposite behavior of demand, that'd be replacing SKIP_PAGER with:

SKIP_TASKBAR
makes all open, running apps readily on desktop won't be able to get minimized

it must have argument/command in place of SKIP_PAGER, some words sort of:

SKIP_RESTORE
or
SKIP_RESTORE_OF_TASKBAR

Hint: do
$ xdotool getactivewindow windowstate
to get all possible commands/arguments

Last edited by almahdi (2023-01-03 22:54:59)

Offline

#6 2023-01-04 00:45:44

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Any way to prevent an opened, running but minimized app get switched

I'm not sure I understand. If you want it to not show up on the panel (window buttons plugin or any other dock), then you could use:

xdotool getactivewindow windowstate --toggle SKIP_TASKBAR

However, to be able to bring the program visible again, you will need to use Alt-Tab.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2023-01-04 20:54:36

Skaperen
Member
From: right by Jesus, our Saviour
Registered: 2013-06-15
Posts: 862

Re: Any way to prevent an opened, running but minimized app get switched

i keep my very active apps in different workspaces and have bound my numeric keypad numbers as shortcuts to run "wmctrl -s 5" with whatever number to switch to that workspace.  that gets me to specific active apps rather quickly.  i also like to open those apps to fullscreen, or in some cases, almost so leaving the panel visible.  i also have the workspace switcher plugin visible on the panel as an alternative way to switch.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.013 seconds, 8 queries executed - Memory usage: 546.23 KiB (Peak: 547.07 KiB) ]