You are not logged in.
Pages: 1
Hello,
I can go through all my windows with the key combination Alt+Tab.
There are two programmes I want to exclude, so that this programme will not be triggered through Alt+Tab. (For example "Calculator").
Is there any config where I can add this programme?
Or can I make this excludes via GUI?
Would appreciate some answer. Thank you.
Last edited by Tabespe (2022-09-17 06:32:06)
Offline
There isn't a config but you can use wmctrl(1) to do that:
wmctrl -r "WINDOW_TITLE" -b add,skip_pager
If you're launching them with a keyboard shortcut, you can add the above to their command string.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Thank you. I have tried this out.
It looks like this command only works, when I run it after I have started the window/programme, I want to skip. Right?
I have tried to integrate your command into the starter command:
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=com.github.rajsolai.textsnatcher --file-forwarding com.github.rajsolai.textsnatcher @@u %U @@ && wmctrl -r "TextSnatcher" -b add,skip_pager
But this does not work. It destroys the starter.
(?)
Offline
sh -c "/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=com.github.rajsolai.textsnatcher --file-forwarding com.github.rajsolai.textsnatcher @@u %U @@ && wmctrl -r 'TextSnatcher' -b add,skip_pager"
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
Thank you. KBar.
But unfortunately this command does not work. It does not exclude "TextSnatcher" from Alt+Tab.
I have also test this simpler command in the galculator starter:
sh -c "galculator && wmctrl -r 'galculator' -b add,skip_pager"
It also does not exclude "galculator" from Alt+Tab list.
Offline
Try launching an app in the background and adding a delay before `wmctrl` then.
Remember to edit the subject of your topic to include the [SOLVED] tag once you're satisfied with the answers or have found a solution (in which case, don't forget to share it as well), so that other members of the community can quickly refer to it and save their time. Pretty please!
Offline
What do you mean with "Try launching an app in the background" ?
I have now tried this:
sh -c "galculator && sleep 2 && wmctrl -r 'galculator' -b add,skip_pager"
-> But same issue. Sleep does not help.
Offline
Make sure that Settings Manager > Window Manager Tweaks > Cycling > "Skip Windows that have 'skip_pager'...." is also enabled.
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
Yes, this was enabled.
Offline
Try putting the commands in a script like this:
#!/bin/sh
galculator &
sleep 1
wmctrl -r 'galculator' -b add,skip_pager
...and calling the script instead on the Exec= line.
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
Thank you @ToZ. This works.
Strange that the same command directly in the starter does not work.
Offline
Pages: 1
[ Generated in 0.012 seconds, 8 queries executed - Memory usage: 559.67 KiB (Peak: 576.52 KiB) ]