Closed niels0n closed 1 year ago
This is a feature I have long considered adding to xdg-xmenu, which uses a file as wrapper and insert the menu into it. It's not hard to implement, I am just lazy :)
Actually, I find out it can be temporarily done quite nicely with (it simply add a tab in front of the lines to make them a submenu)
#!/bin/sh
xmenu <<EOF | sh &
Terminal alacritty
Web Browser firefox
File Manager thunar
Text Editor geany
Applications
$(xdg-xmenu -dI | sed 's/.*/\t\0/')
Exit /home/andrea/bin/powermenu.sh
EOF
Remove the -I
option have icons. Please try if it works for you.
I guess I can keep being lazy, then?
I'm happy. Have a good laziness, you deserve it.
Actually, jokes aside, just another thing. It would be great to have all the categories of xdg-xmenu directly in xmenu, instead of having to put the cursor on Applications >
to view them. Would it be possible?
You know, I'm lazy too...
That should be easier:
#!/bin/sh
xmenu <<EOF | sh &
Terminal alacritty
Web Browser firefox
File Manager thunar
Text Editor geany
$(xdg-xmenu -dI)
Exit /home/andrea/bin/powermenu.sh
EOF
of course it is, sorry for the dumb question and thank you!
Hey, right now I have my
xmenu.sh
like this:This way to open xdg-xmenu I have to click on
Applications
.Is there a way to have xdg-xmenu embedded in xmenu, instead of having to click on
Applications
?