How do you open the window switcher without alt+tab? #33
Replies: 2 comments 5 replies
-
To my knowledge, the tab switcher cannot be invoked individially without some code. Technically, you could open it via DBus (org.budgie_desktop.TabSwitcher) by replicating what Budgie WM is doing. So passing each window xid using PassItem and then openning the tab switcher using ShowSwitcher while providing the xid of the window you want to switch to. You could then close it using StopSwitcher. Code is here: Line 1105 in b7f4c06 |
Beta Was this translation helpful? Give feedback.
-
I've been trying to solve this in a few different ways now, but I always get stuck at the same issue: The budgie keyboard settings don't allow for two actions to be mapped to the same key combination. This would not be problem if you could separately configure which two keys are used to operate the tab switcher, but since they're taken from this key combination in the settings it is impossible to have your own custom script launched by the same combination that operates the tab switcher. Would you consider giving the tab switcher its own executable that performs the alt+tab action in a future release? Ideally it would receive the holding and switching key as an argument:
Most other budgie applications like the run dialog or the window shuffler have one or even several executables for different actions, which makes them much more useful for customizing budgie through scripts. It seems I'm forced to use a different tab switcher for now, even though I really like the budgie tab switcher. |
Beta Was this translation helpful? Give feedback.
-
I'm trying to create a script that will launch budgie's window switcher and hide all unfocused windows after it exits, but I can't get it to reliably open the window switcher.
I've tried these two approaches with xdotool, but both of them are extremely janky and only trigger the window switcher very vary rarely.
xdotool key alt+Tab
xdotool keydown alt key Tab; sleep 2; xdotool keyup alt
Most of the time both commands produce don't trigger the switcher and instead write this cryptic output to the terminal:
^[ %
I'd like to avoid this janky way of emulating pressing alt and tab if possible, but I couldn't find any way to directly launch the window switcher. It doesn't seem to have its own executable, and the manpage for wmctrl also doesn't say anything about a command for the window switcher.
Beta Was this translation helpful? Give feedback.
All reactions