Coder Social home page Coder Social logo

Awesome menu not configured about archinstall HOT 7 OPEN

archlinux avatar archlinux commented on July 30, 2024
Awesome menu not configured

from archinstall.

Comments (7)

SkyyySi avatar SkyyySi commented on July 30, 2024 1

Digging around a bit, I found out about Arch's xdg-menu utility. It would be slightly simpler to maintain (since fewer lines are needed) and would provide a much more consistent solution across numerous window managers like Fluxbox, OpenBox or IceWM, not just awesome.

from archinstall.

SkyyySi avatar SkyyySi commented on July 30, 2024

Maybe changing the line

terminal = "xterm"

to

terminal = "alacritty"
webbrowser = "chromium"
filemanager = "nemo"

and changeing the part with

mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
                                    { "open terminal", terminal }
                                  }
                        })

to

mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
                                    { "open terminal", terminal },
                                    { "open web browser", webbrowser },
                                    { "open file manager", filemanager }
                                  }
                        })

is what you're looking for?

from archinstall.

Torxed avatar Torxed commented on July 30, 2024

Maybe changing the line

terminal = "xterm"

to

terminal = "alacritty"
webbrowser = "chromium"
filemanager = "nemo"

and changeing the part with

mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
                                    { "open terminal", terminal }
                                  }
                        })

to

mymainmenu = awful.menu({ items = { { "awesome", myawesomemenu, beautiful.awesome_icon },
                                    { "open terminal", terminal },
                                    { "open web browser", webbrowser },
                                    { "open file manager", filemanager }
                                  }
                        })

is what you're looking for?

Exactly that :)
My main issue with awesome is that the LUA changes from time to time, so patch management is a PITA.

from archinstall.

SkyyySi avatar SkyyySi commented on July 30, 2024

I guess the simplest thing to do would be to have a diff patch included, it could be used by making a temporary copy of /etc/xdg/awesome/rc.lua, patching it, then creating the directory /etc/skel/.config/awesome on the target and moving the patched one there. Since awesome gets so few stable releases (4.3 was released over two years ago), it will probably be fine to do it that way.

from archinstall.

Torxed avatar Torxed commented on July 30, 2024

I guess the simplest thing to do would be to have a diff patch included, it could be used by making a temporary copy of /etc/xdg/awesome/rc.lua, patching it, then creating the directory /etc/skel/.config/awesome on the target and moving the patched one there. Since awesome gets so few stable releases (4.3 was released over two years ago), it will probably be fine to do it that way.

I like that idea, In general we should probably have something like archinstall.apply_patch(installation, patch_file_path, destination_file_path) for wrapping this functionality, It's needed else where too.

from archinstall.

Torxed avatar Torxed commented on July 30, 2024

That looks like a solid solution to the problem! Nice find!

from archinstall.

SkyyySi avatar SkyyySi commented on July 30, 2024

Also thinking about it, perhaps the changes could be put into an external file? Instead of patching the file at install and then leaving it, it could be put into a global directory and then be loaded from there. The only thing that would be required then would be to actually add the file load command itself, and those tend to not change. That could also be updated, but that would require a seperate package (it wouldn't be a good idea to install archinstall for something other than installing archinstall, would it?). It's questionable if that will work consistently for all WMs, but most should work.

from archinstall.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.