lxpanel icon indicating copy to clipboard operation
lxpanel copied to clipboard

Feaure request: Toggle Menu

Open root2185 opened this issue 4 years ago • 3 comments

lxpanel version 0.10.1-2

Can you make lxpanelctl menu toggle the menu? So you can bind a key that pressed again hide it.

root2185 avatar Oct 26 '21 13:10 root2185

I have the same problem, the most I got to is this.

    <keybind key="Super_L">
      <action name="Ejecute" >
		  <command>lxpanelctl menu</command>
      </action>
    </keybind>

arteze avatar Nov 20 '24 04:11 arteze

I made this script, very primitive, what it does is restart the lxpanel and creates a temporary file as a signal that the menu was activated, next time, delete that file.

/bin/lxdemenutoggle

#!/bin/sh

temp="/root/statusmenu.txt"
if [ -e "$temp" ]; then
	rm "$temp"
	pkill -kill lxpanel
	nohup lxpanel 1>/dev/null &disown
else
	echo "1" > "$temp"
	lxpanelctl menu
fi

En /root/.config/openbox/rc.xml

    <keybind key="Super_L">
      <action name="Ejecute" >
		  <command>lxdemenutoggle</command>
      </action>
    </keybind>

arteze avatar Nov 20 '24 04:11 arteze

I see that with my technique it is not possible either, because when the menu is activated, Openbox no longer receives the Windows key shortcut.

arteze avatar Nov 20 '24 04:11 arteze