-
-
Notifications
You must be signed in to change notification settings - Fork 385
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
WIP: Implement Preset
for Window Configuration
#219
base: master
Are you sure you want to change the base?
WIP: Implement Preset
for Window Configuration
#219
Conversation
no, the s-expression stuff uses a fully custom parsing thing - that'll take some more adjustments, not much point in thinking about this right now. The config rework will still take some time for now. |
Preset
for Window ConfigurationPreset
for Window Configuration
46750d9
to
b561e41
Compare
actually yea, what's the current state of this? the config rework was,... quite the change, that commit history on this PR is rather,.... well,... messy ^^' |
well, I kind of messed up the rebasing of this branch onto master, so I ended up overwriting it with master and I am in the process of porting the changes using |
tho, seeing how many conflicts there are, I think it might be better to change this PR to directly merge with master |
I think so too - trying to rebase all of this sounds like utter pain |
hey I am back, I'm going to be implementing the last part of this PR (ie. generate the other structs from the preset) There are 2 questions
For the first question, off the top of my head, these come to mind, but I am unsure as to what params they should expose enum WindowPreset {
Bar(Side), // polybar-like
Embed{???}, // conky-like
Float{???},
Popup{???},
Normal{???},
} Got any ideas ? |
Also, I just remembered, since the preset is a high level abstraction, shouldn't the other configs now expose low-level api's ? Once this is implemented, we can assume that anyone that uses directly |
how would those lower-level APIs look like? as in, what addtional options would you want to provide? |
Not sure if Popup and Normal need to be separate.
|
ba795e6
to
d49a286
Compare
hey I am back after a while, I got done rebasing everything with master. In terms of progress, it isn't far off from I last left it off. I made some changes to avoid relying on external crates (ie. derive_builder and merge). For now, doing it by hand isn't cumbersome, but might become tedious and hard to maintain in the future as the config gets more and more complex If this feature is still relevant, I should be able to get something working fairly soon; just let me know
I was thinking of exposing a 1 to 1 mapping to the backend configs (eg. these for X11) eww/crates/eww/src/display_backend.rs Lines 181 to 203 in fb0e57a
But actually scratch that, that's out of the scope of this PR and probably unnecessary for now |
This PR works with #217 to implement what's being discussed in #216
Target features :
preset