Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-11-01 21:53:33

advice1010
Member
Registered: 2023-02-19
Posts: 65

Possible to center Whisker Menu on screen

I was just wondering if it was possible to be able to have the Whisker Menu be able to load up in the center of your screen?

Thank You

Offline

#2 2023-11-01 22:24:08

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,055

Re: Possible to center Whisker Menu on screen

Depending on the version of whiskermenu you are using, the command:

xfce4-popup-whiskermenu -c

...will pop it up centered on the screen.


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

#3 2023-11-03 01:00:09

herbie643
Member
Registered: 2013-04-05
Posts: 137

Re: Possible to center Whisker Menu on screen

Byjove I think you've got it.   Kinda neat actually.

Offline

#4 2023-11-03 11:15:56

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 415

Re: Possible to center Whisker Menu on screen

That's a new one on me. It's not even in the man page. I wanted whisker menu to work out of the plank dock but since it's not a stand alone application it gets tricky. First create a .desktop file with the right command,

xfce4-popup-whiskermenu -p

The -p or --pointer forces whiskermenu to open where ever the cursor/pointer is. You then create a .dockitem file that points to the .desktop file and you have whiskermenu on the dock


Siduction
Debian Sid
Xfce 4.18

Offline

#5 2023-11-03 12:12:15

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,055

Re: Possible to center Whisker Menu on screen

eriefisher wrote:

That's a new one on me. It's not even in the man page.

I've create a bug report for this oversight (https://gitlab.xfce.org/panel-plugins/x … issues/119). Shouldn't be too difficult to fix.


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

#6 2023-11-04 22:07:08

advice1010
Member
Registered: 2023-02-19
Posts: 65

Re: Possible to center Whisker Menu on screen

@eriefisher
Thank you for your response.
I don't personally use a dock, but seems like a pretty cool idea what you able to achieve making use of what is available.

@ToZ
Thank you for your response.
Good to hear that this worked for others / found that an update to man page was needed (also thank you for reporting this)
How did you even know about this? smile

Unfortunately this did not work for me.
As you said it depends on version
I checked my package manager and it says version 2.7.2-1
I checked the Github page and it says the latest version is 2.8.0 released in August
This 2.8.0 version mentions that they added this feature called "Add showing menu at center of screen"

I am using XFCE 4.18 and the only Whisker version in my repo is version 2.7.2-1 so not sure if the newer version of Whisker will be compatible.
Whisker 2.8.0 just read also that "Requires Xfce 4.14" so it should work, but have to figure out how to update it.
Man I can't seem to get anything done.
Anyways good to know that this was added, thank you again for mentioning it

Last edited by advice1010 (2023-11-04 22:17:44)

Offline

#7 2023-11-05 00:01:21

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,055

Re: Possible to center Whisker Menu on screen

advice1010 wrote:

I am using XFCE 4.18 and the only Whisker version in my repo is version 2.7.2-1 so not sure if the newer version of Whisker will be compatible.
Whisker 2.8.0 just read also that "Requires Xfce 4.14" so it should work, but have to figure out how to update it.

Which distro are you using?


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

#8 2023-11-07 14:42:09

herbie643
Member
Registered: 2013-04-05
Posts: 137

Re: Possible to center Whisker Menu on screen

Usage:
  xfce4-popup-whiskermenu [OPTION…]

Help Options:
  -h, --help         Show help options

Application Options:
  -p, --pointer      Popup menu at current mouse position
  -c, --center       Popup menu at center of screen
  -l, --list         Print available menu instance IDs
  -i, --instance     Choose which menu to popup by instance ID
  -V, --version      Print version information and exit

Usage:
  xfce4-popup-whiskermenu [OPTION…]

Help Options:
  -h, --help         Show help options

Application Options:
  -p, --pointer      Popup menu at current mouse position
  -c, --center       Popup menu at center of screen
  -l, --list         Print available menu instance IDs
  -i, --instance     Choose which menu to popup by instance ID
  -V, --version      Print version information and exit

xfce4-popup-whiskermenu -V
xfce4-popup-whiskermenu 2.8.0
Copyright © 2013-2023 Graeme Gott

Probably in the new version.  I have it thru a PPA

Offline

#9 2023-11-07 18:05:49

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 415

Re: Possible to center Whisker Menu on screen

I have it with -h just not in the man page.


Siduction
Debian Sid
Xfce 4.18

Offline

#10 2023-12-04 22:42:18

advice1010
Member
Registered: 2023-02-19
Posts: 65

Re: Possible to center Whisker Menu on screen

Thank you guys for the responses.
I was going to create a new post for this question but I think it might be relevant enough to add it here.
I just figured out how to update to version 2.8.0 in my repo.
Not sure if I am going to go with the menu in the center but it brings up a question.
Is it possible to have the menu show up in two different locations?
Left super key = center of screen
but if click on menu icon in my panel (currently bottom left corner) that the menu would load up as usual right above it?
(I am aware there is a setting that you can link to where mouse cursor is, have not tried it but don't think I could get used to it)
Anyways I don't see how this would be possible, but I figured I would ask just in case.

Thank You

Last edited by advice1010 (2023-12-04 22:43:12)

Offline

#11 2023-12-05 11:40:10

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 415

Re: Possible to center Whisker Menu on screen

The one in the panel will always open in the panel if left alone. To have it open in the center of the screen with the super key you just make a hot key


Super = xfce4-popup-whiskermenu -c


Siduction
Debian Sid
Xfce 4.18

Offline

Board footer

Powered by FluxBB