waycrate / swhkd

Sxhkd clone for Wayland (works on TTY and X11 too)
https://git.sr.ht/~shinyzenith/swhkd
BSD 2-Clause "Simplified" License
679 stars 47 forks source link

[feature]: Copy File Contents on `include ...` directive #177

Open TTWNO opened 1 year ago

TTWNO commented 1 year ago

Including a file currently adds that file to a list of files to consult once the first file has been processed.

I'd like to have, for example, different modes separated into their own files. Imagine the following example from Odilia:

capslock + i
    @enter mode
mode mode
include my_mode.conf
end mode

This allows us to separate the rather large file we're accumulating with a big list of screen reader events.

We could do this in our fork, if you don't think it is worthwhile in your version. Let us know :)

Shinyzenith commented 1 year ago

Cool stuff! Does this lazy load the configurations?

Shinyzenith commented 1 year ago

I'm all for feature patch sets. A pr would be amazing since it's gonna get implemented in sohkd anyways!