
Add An Applications Menu To Any Window Manager DistroTube
video description
Date: 2022-03-30
Related videos
Comments and reviews: 10
Vegard
Here's a very quick and dirty Awk script to convert the -Deskmenu- format available in menumaker into something that's compatible with xmenu. Categories with lots of applications will go off the screen and xmenu doesn't seem to be able to let you scroll that.
function charrep(c, t) -
charrep_text = --;
for (i = 0; i < t; i++) -
charrep_text = charrep_text c;
-
return charrep_text;
-
function indent() -
-return charrep(-\t-, tabs);
-
BEGIN -
-FS=-=-;
-tabs = 0;
-
/-submenu/ -
-print indent() $2;
-tabs = tabs + 1;
-
/-endmenu/ - tabs = tabs - 1 -
/-menuitem/ -
-FS=-:-;
-OFS=-\t-;
-gsub(-menuitem=-, --, $0);
-print indent() $1, $2;
-FS=-=-;
-
/-divider/ - print -- -
reply
Here's a very quick and dirty Awk script to convert the -Deskmenu- format available in menumaker into something that's compatible with xmenu. Categories with lots of applications will go off the screen and xmenu doesn't seem to be able to let you scroll that.
function charrep(c, t) -
charrep_text = --;
for (i = 0; i < t; i++) -
charrep_text = charrep_text c;
-
return charrep_text;
-
function indent() -
-return charrep(-\t-, tabs);
-
BEGIN -
-FS=-=-;
-tabs = 0;
-
/-submenu/ -
-print indent() $2;
-tabs = tabs + 1;
-
/-endmenu/ - tabs = tabs - 1 -
/-menuitem/ -
-FS=-:-;
-OFS=-\t-;
-gsub(-menuitem=-, --, $0);
-print indent() $1, $2;
-FS=-=-;
-
/-divider/ - print -- -
reply
Sara
you mentioned using it in qtile... you've talked about qtile in a lot of videos... I'm still going thru your vid catalogue, but if you haven't done a vid on qtile yet, can you do one just about it? I like that it's python based but I can't ever get it to run, not in Debian, not in Kali, not in FreeBSD. Granted, I'm an uber-noob compared to most -nix users, but I'm learning and was hoping to compare qtile with i3 and awesome and see if i could recreate some of the few things I like about awesome in qtile... if i can make it work. This xmenu is a nice start on that, so thanks for showing it.
reply
you mentioned using it in qtile... you've talked about qtile in a lot of videos... I'm still going thru your vid catalogue, but if you haven't done a vid on qtile yet, can you do one just about it? I like that it's python based but I can't ever get it to run, not in Debian, not in Kali, not in FreeBSD. Granted, I'm an uber-noob compared to most -nix users, but I'm learning and was hoping to compare qtile with i3 and awesome and see if i could recreate some of the few things I like about awesome in qtile... if i can make it work. This xmenu is a nice start on that, so thanks for showing it.
reply
Zoltar358
Hey DT, fantastic video as usual :)
I have a walkaround solution to get xmenu under the right mouse click, at least in i3wm. I simply made a keybinding for the right mouse button (bindsym button3 $exec -/Git/xmenu/xmenu.sh). Now I can right-click i3bar and xmenu appears. Unfortunately, it does not work when clicked on the desktop. Anybody has any ideas on how to bindsym a mouse button to work on a workspace in i3?
reply
Hey DT, fantastic video as usual :)
I have a walkaround solution to get xmenu under the right mouse click, at least in i3wm. I simply made a keybinding for the right mouse button (bindsym button3 $exec -/Git/xmenu/xmenu.sh). Now I can right-click i3bar and xmenu appears. Unfortunately, it does not work when clicked on the desktop. Anybody has any ideas on how to bindsym a mouse button to work on a workspace in i3?
reply
Nikephor
When you say -Ctrl+Alt+Return- you mean -Enter- for -Return- right? Why is it called like that? I had multiple times where I thought return meant backspace. Switching to Linux has been a really great experience but it's this kind of stuff that can be a bit confusing. I get how it's called the -super/meta/mod- key, instead of windows/start key, but I don't see a reason fro calling Enter Return.
reply
When you say -Ctrl+Alt+Return- you mean -Enter- for -Return- right? Why is it called like that? I had multiple times where I thought return meant backspace. Switching to Linux has been a really great experience but it's this kind of stuff that can be a bit confusing. I get how it's called the -super/meta/mod- key, instead of windows/start key, but I don't see a reason fro calling Enter Return.
reply
PolGZ
Man, your sound setup. I typically whatch your videos with the phone laying around somewhere on the house and never thought about it. I happen to have a good set of AKG headphones and today I had a long trip by train and bring them with me. This is how that mic disserved to be listent to, haha. Soooo pleasant to the ear! Although... all that set-up... is it actually bloat??! -
reply
Man, your sound setup. I typically whatch your videos with the phone laying around somewhere on the house and never thought about it. I happen to have a good set of AKG headphones and today I had a long trip by train and bring them with me. This is how that mic disserved to be listent to, haha. Soooo pleasant to the ear! Although... all that set-up... is it actually bloat??! -
reply
Number1
Who actually uses menus like this? People who enjoy waiting? People who enjoy counting every pixel with their mouse? People who enjoy searching long lists of text manually with their eyes? Join the 21st century already, we have a wide variety of tools that make this work easier these days.
reply
Who actually uses menus like this? People who enjoy waiting? People who enjoy counting every pixel with their mouse? People who enjoy searching long lists of text manually with their eyes? Join the 21st century already, we have a wide variety of tools that make this work easier these days.
reply
it_industry
I am struggling about launching command line applications in DWM. For example termite --exec=vim launches vim, but after vim is initialised, DWM resizes the window but vim does not update and keeps using different window dimensions. Is there a trick for launching these applications?
reply
I am struggling about launching command line applications in DWM. For example termite --exec=vim launches vim, but after vim is initialised, DWM resizes the window but vim does not update and keeps using different window dimensions. Is there a trick for launching these applications?
reply
SimGunther
There is a video by Accursed Farms called -The GUI should be better. A lot better- that covers the qualms of the GUI on a desktop well (with props to linux for customization). Definitely worth a watch to get ideas on how to make the GUI more intuitive.
reply
There is a video by Accursed Farms called -The GUI should be better. A lot better- that covers the qualms of the GUI on a desktop well (with props to linux for customization). Definitely worth a watch to get ideas on how to make the GUI more intuitive.
reply
SlideRSB
I with think that there must be a way to generate a config by parsing all the .desktop files. Regardless, I'll just stick to my Rofi menu. That one also works in any window manager.
reply
I with think that there must be a way to generate a config by parsing all the .desktop files. Regardless, I'll just stick to my Rofi menu. That one also works in any window manager.
reply
Aurora
Interesting. I like dmenu for launching programs, or keybinding them to something if I use them too often. But this could find some use in my workflow possibly
reply
Interesting. I like dmenu for launching programs, or keybinding them to something if I use them too often. But this could find some use in my workflow possibly
reply
Add a review, comment















