Gnome Shell has great shortcuts, but I don’t find a way to call them programmers. Suppose I want to use a GJS script to launch Google Chrome, move it to Stage 1 and maximize it, then run Emacs, move it to Stage 2 and maximize him. This can be done using wm.keybindings: move-to-workspace-1, move-to-workspace-2 and maximize. However, what do you call them programming?
I noticed that in GJS guint Meta.prefs_get_keybinding_action('move-to-workspace-1')will return the move-to-workspace-1 actions, but I did not find any function to call the action. In https://github.com/GNOME/mutter/blob/master/src/core/keybindings.c I found the meta_display_accelerator_activate function, but I could not find the GJS binding for this function.
So, is it possible to programmatically invoke gnome command line shortcuts?
source
share