wip: unify default configs
Some checks are pending
/ build (push) Waiting to run

the definitions are unified alright. it's just not supported yet :D

the idea being that tek offers to write out the default configs to
~/.config/tek-v0 where the user can customize them.
This commit is contained in:
🪞👃🪞 2025-07-30 19:12:45 +03:00
parent 9e147cda69
commit 2e5462c4e7
42 changed files with 426 additions and 411 deletions

73
config/templates.edn Normal file
View file

@ -0,0 +1,73 @@
(module "transport.edn"
(name "Transport")
(info "A JACK transport controller.")
(bind "keys/clock.edn")
(bind "keys/global.edn")
:view/transport)
(module "arranger.edn"
(name "Arranger")
(info "A grid of launchable clips arranged by track and scene.")
(bind "keys/editor.edn" :focused/editor)
(bind "keys/dialog.edn" :focused/dialog)
(bind "keys/message.edn" :focused/message)
(bind "keys/device_add.edn" :focused/device/add)
(bind "keys/browser.edn" :focused/browser)
(bind "keys/rename.edn" :focused/pool/rename)
(bind "keys/length.edn" :focused/pool/length)
(bind "keys/clip.edn" :focused/clip)
(bind "keys/track.edn" :focused/track)
(bind "keys/scene.edn" :focused/scene)
(bind "keys/mix.edn" :focused/mix)
(bind "keys/clock.edn")
(bind "keys/arranger.edn")
(bind "keys/global.edn")
:view/dialog
(bsp/w :view/meters/output (bsp/e :view/meters/input (stack/n
(fixed/y 2 :view/status/h2) :view/tracks/inputs
(stack/s :view/tracks/devices :view/tracks/outputs :view/tracks/names
(fill/xy (either :focused/editor (bsp/e :view/scenes/names :view/editor) :view/scenes)))))))
(module "groovebox.edn"
(name "Groovebox")
(info "A sequencer with built-in sampler.")
(bind "keys/browser.edn" :focused/browser)
(bind "keys/rename.edn" :focused/pool/rename)
(bind "keys/length.edn" :focused/pool/length)
(bind "keys/clock.edn")
(bind "keys/editor.edn")
(bind "keys/sampler.edn")
(bind "keys/global.edn")
:view/dialog
(bsp/w :view/meters/output (bsp/e :view/meters/input (bsp/w
(fill/y (align/n (stack/s :view/midi-ins/status :view/midi-outs/status
:view/audio-ins/status :view/audio-outs/status
:view/pool)))
(bsp/n (fixed/y :h-sample-detail (bsp/e (fill/y (fixed/x 20 (align/nw :view/sample/status)))
:view/sample/viewer))
(stack/e (fill/y (align/n (bsp/s :view/status/v :view/editor/status)))
:view/samples/keys :view/editor))))))
(module "sampler.edn"
(name "Sampler")
(info "A sampling soundboard.")
(bind "keys/sampler.edn")
(bind "keys/global.edn")
:view/dialog
(bsp/s (fixed/y 1 :view/transport) (bsp/n (fixed/y 1 :view/status)
(fill/xy :view/samples/grid))))
(module "sequencer.edn"
(name "Sequencer")
(info "A MIDI sequencer.")
(bind "keys/browser.edn" :focused/browser)
(bind "keys/rename.edn" :mode/pool-rename)
(bind "keys/length.edn" :mode/pool-length)
(bind "keys/editor.edn")
(bind "keys/clock.edn")
(bind "keys/global.edn")
:view/dialog
(bsp/s (fixed/y 1 :view/transport)
(bsp/n (fixed/y 1 :view/status)
(fill/xy (bsp/a (fill/xy (align/e :view/pool))
:view/editor)))))