You are not logged in.

#1 2013-10-14 18:14:27

Multimoon
Member
From: /usr/share/zoneinfo/US/Eastern
Registered: 2012-09-30
Posts: 170

[Gnome 3.10] Display Applications List/Overview by a command

Is there a way to use a command or a signal to have gnome display the Overview or the Application list? I plan on disabling Gnome's favorites bar and replacing it completely with something like DockbarX, but I would like a way to have DockbarX call up the Application list, eg a command. Is this possible?


It always makes me laugh when people complain and rage over any distro's management ideal, when this is a linux community, and you could always make your own distro and experience the pains yourself.

Offline

#2 2013-10-14 18:57:52

Pse
Member
Registered: 2008-03-15
Posts: 413

Re: [Gnome 3.10] Display Applications List/Overview by a command

Probably scriptable. Check the gjs docs on Gnome Shell. Perhaps reading the source code of some extension might help. I think the task bar extension sets a button that does this, so you could presumably run a simple gjs script as a command that does what you want.

Offline

#3 2013-10-15 07:17:21

phw
Member
Registered: 2013-05-27
Posts: 318

Re: [Gnome 3.10] Display Applications List/Overview by a command

The correct JavaScript command would be

const Main = imports.ui.main;
Main.layoutManager.hotCorners[Main.layoutManager.primaryIndex]._toggleOverview();

Unfortunately you cannot run this from the command line with gjs, as it requires the actual shell-context. You can try the above command from looking glass (press ALT+F2 and enter "lg"). But to actually bind it to a hotkey I think you'll need a shell extension.

As a side note: A shell extension to bind arbitrary JS commands to key bindings might actually be pretty useful. If there is not already something like that I'll probably will do something like that if I find the time.

Offline

#4 2013-10-15 10:38:18

Multimoon
Member
From: /usr/share/zoneinfo/US/Eastern
Registered: 2012-09-30
Posts: 170

Re: [Gnome 3.10] Display Applications List/Overview by a command

Hmm. I was trying to keep the shell extensionless, but oh well. I'm not looking to bind anything to a hotkey, just a shell command that can be run to call up the overview. There might be a method to send a signal to the shell, for example I use this method to hide the dash, there might be a similar method to bring up activities.

dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview._dash.actor.hide();'  

It always makes me laugh when people complain and rage over any distro's management ideal, when this is a linux community, and you could always make your own distro and experience the pains yourself.

Offline

#5 2013-10-15 11:32:51

phw
Member
Registered: 2013-05-27
Posts: 318

Re: [Gnome 3.10] Display Applications List/Overview by a command

Well, you found the solution big_smile Just use the JavaScript I posted above in this command and it'll do what you want:

dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.layoutManager.hotCorners[Main.layoutManager.primaryIndex]._toggleOverview();'

Offline

#6 2013-10-15 14:40:09

Multimoon
Member
From: /usr/share/zoneinfo/US/Eastern
Registered: 2012-09-30
Posts: 170

Re: [Gnome 3.10] Display Applications List/Overview by a command

phw wrote:

Well, you found the solution big_smile Just use the JavaScript I posted above in this command and it'll do what you want:

dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.layoutManager.hotCorners[Main.layoutManager.primaryIndex]._toggleOverview();'

Thanks, that works perfectly, alot better than what I had been using, which was having XTE send the super key signal.
Now, could that possibly be modified to show the Application List instead of the Overview? The Application list accessed by pressing the Apps button in the Overview on the Dash, so I don't know if it can just be called directly, or if you would have to open the overview first the simulate a press of that button. Any ideas?


It always makes me laugh when people complain and rage over any distro's management ideal, when this is a linux community, and you could always make your own distro and experience the pains yourself.

Offline

#7 2013-10-19 05:07:47

zpydr
Member
Registered: 2013-08-28
Posts: 1

Re: [Gnome 3.10] Display Applications List/Overview by a command

This works:

dbus-send --session --type=method_call --dest=org.gnome.Shell /org/gnome/Shell org.gnome.Shell.Eval string:'Main.overview.show(); if (! Main.overview.viewSelector._showAppsButton.checked) {Main.overview.viewSelector._showAppsButton.checked = true;} else {Main.overview.hide();};'

Offline

Board footer

Powered by FluxBB