New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuration Generator GUI #1223
Comments
actually you can modify those 4 kinds of stuff without modifying your rc.lua:
|
@actionless |
yup |
Ok so there is currently no gui for generating configuration :) Maybe I can create something here? Would you prefer a WEB-GUI with creating accounts and saving/sharing your awesome configs or would you like to have a desktop applikation? |
IMO, given Awesome configs are code, it's rather pointless. You won't be able to parse the config back without some using dark, dark art. Then, most Awesome users use it for that very reason, so they would not use such tool. |
as a side note i would recommend looking on i3/sway they have config (in the same format) on top of which it's easy to imagine some obconfig-like tools |
@actionless true, it would be much easier, but if someone really needs it they can still do for Awesome WM: function test()
local lgi = require('lgi')
local Gtk = lgi.Gtk
local GObject = lgi.GObject
-- Create model.
local column = {
NAME = 1,
VALUE = 2,
}
local model = Gtk.TreeStore.new {
[column.NAME] = GObject.Type.STRING,
[column.VALUE] = GObject.Type.STRING,
}
-- Add values
for k,v in pairs(beautiful.get()) do
model:append(nil, { [column.NAME] = k, [column.VALUE] = tostring(v) })
end
-- Create window and add widgets
local window = Gtk.Window {
title = 'Theme properties',
default_width = 400,
default_height = 300,
on_destroy = Gtk.main_quit,
Gtk.Grid {
Gtk.ScrolledWindow {
expand = true,
Gtk.TreeView {
model = model,
Gtk.TreeViewColumn {
title = "Key",
{ Gtk.CellRendererText(), { text = column.NAME } },
},
Gtk.TreeViewColumn {
title = "Value",
{ Gtk.CellRendererText(), { text = column.VALUE } },
}
}
}
}
}
window:show_all()
end |
but theme is a table while config is a function however i don't see a problem to have a separate configuration table for GUI it could be used the same as beautiful for example in theme.lua: theme.font = gui.font or "Sans 8" and that |
@actionless indeed, much easier to create a theme editor/generator, and we have instruments for such purposes. My example shows how to use them, sad it is impossible to apply changes without restarting Awesome WM. I like "Configuration Generator GUI" idea, but I think it is not worth the time. |
@Elv13 awesome config is a lua script. Lua is a script language that was build to embed it into other languages so it should be no problem to do so: http://moonshinejs.org/ But anyway, my intention was not to build a Generator+Parser. My idea was to ONLY create a generator. So unidirectional not bidirectional. |
i don't like it in a such way |
Closing this as this would be a separate project. @lawful-lazy did some work toward this if I am not mistaken |
Hi awesome community,
first: awesome is the best WM for linux I know! I love it! I just have one problem with it like many other people I know around me. It is very time consuming to modify simple things like: "Autostart programms", "background images", "colors", "font-sizes"... . Now my question: Is there an easy to use rc.lua config generator based on a small GUI? I googled this many times but did not find anything. I mean it is amazing that you can modify everything with your lua configuration skript. But most of the users don't want to do that all the time.
The text was updated successfully, but these errors were encountered: