Remove right-click menu from Openbox windows manager. [Solved]
Posted: Mon Dec 02, 2019 5:21 am
Getting rid of the right-click menu from the Openbox windows manager. Okay here's the deal, I don't use the thing anymore and having no use for it recently decided to get rid of it altogether. Removed the menu.xml file from my users home, located at /home/yourusername/.config/openbox. Thought hey that'll do it, click, nope it's still there. Thus began the search for any packages on my install(s) which might still be providing the thing, checked, nope, nope, nope, yet the thing was still there. Defiantly laughing at me anytime I right-clicked upon the desktop ! At this point I did what any uber-l33t techno commando or nix-ninja would do, GOOGLE HELP ME !!!! :D
Was shortly thereafter discovered the secret to ridding myself of the right-click nightmare( thank you Google.) The answer does lay in the .config/openbox directory but oddly it's in the rc.xml file, where user set keybinds are defined. So open that file and search for instances of ShowMenu in it, then someone has to smartly remove these from it. Here's an example of one of the annoying bastids !!!
Rid the file of all such entries related to ShowMenu in the rc.xml file. It's a good idea to make a backup before you start editing just to be on the safe side, I've got a file named rc.xml.bak sitting there in my openbox directory just in case I mess something up. There are also copies (in Debian gnu/Nix and assuming AntiX and MX too.) at /etc/xdg/openbox so someone can always copy those files to their users /home if they need to. Anyway after smartly removing all occurrences of ShowMenu entries from the rc.xml file, in terminal type "openbox --restart" to restart OB and reload configs for it and then test, right-click, .... NO MENU, WOOT ... PROFIT! :)
Was shortly thereafter discovered the secret to ridding myself of the right-click nightmare( thank you Google.) The answer does lay in the .config/openbox directory but oddly it's in the rc.xml file, where user set keybinds are defined. So open that file and search for instances of ShowMenu in it, then someone has to smartly remove these from it. Here's an example of one of the annoying bastids !!!
Code: Select all
<keybind key="A-space">
<action name="ShowMenu">
<menu>client-menu</menu>
</action>
</keybind>