Push a Alt+Tab event to keyboard



Hi everybody, this is my first message on this ML, but I am a Gnome user since always.

Now I want produce a little gnome shell extension with this features:

A little button on top bar, or somewhere, when pressing this button, push a Alt+Tab event

What internal gnome shell function I must use?
There is some example to copy for do that?

For now I have do this operation via a little Phyton scriptl

#!/usr/bin/python3
import pyautogui
pyautogui.hotkey('alt', 'tab')

But in order to let it work, must install on Fedora 31 some extra package[1] (python3-tkinter, python3-devel, scrot, ecc) for use pyautogui.hotkey()

Then before to do that, I try to ask you if there is an internal gnome shell function to do same thing.

Many thanks for your attention and patient.

[1] - https://stackoverflow.com/questions/49231756/how-to-install-pyautogui-on-fedora-27

-- 
Dario Lesca
(inviato dal mio Linux Fedora 31 Workstation)


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]