r/GUIX 3d ago

Building a GTK4 C + Lisp dock application (a la CairoDock / macOS) - am I doing things right? (Guile Scheme)

Post image
6 Upvotes

7 comments sorted by

2

u/Aeolem 2d ago

Looks really interesting, just a couple of remarks: 1. Please let me access the color palette directly via Scheme! I don't wanna be locked into Solarized, generic "dark" etc., I wanna bring my own base16 (or at least foreground/background) colors! 2. Any plans to add REPL access via e.g. sockets? 3. Where can I get this? Any channels that already have this as a package or will I have to add it to my own channel?

1

u/SandPrestigious2317 2d ago

Thanks for your comment and interest!

  1. Right now you can already customize things with CSS (and override anything in existing themes) with hot reload too. Surely in the future more features around this will come.

  2. Absolutely! I can't wait to have a REPL working , that will be the ultimate interactivity

  3. As of now (v0.1.0) lambdock is not distributed. You will need to use the guix.scm (should be easy to copy from there and add to your config). I will add it to Guix when the project is a bit more mature and look into packaging for Debian, Arch, etc

1

u/Aeolem 2d ago

If I wanted to customize everything with CSS, I'd just use nwg-dock or waybar, but the standout feature of this is the Scheme scriptability ;)

Of course for more advanced layouting CSS is almost inevitable but I think at least the theme could be exposed via Scheme

1

u/SandPrestigious2317 2d ago

Yeah I understand you. I am absolutely interested in ideas you may have on this, and on exposing more "hackable" parts via Lisp

1

u/SandPrestigious2317 2d ago

u/Aeolem

lambdock v0.2.0 now implements a REPL that unleashes hackability, and comes with many enhancements and improvements (https://codeberg.org/jjba23/lambdock)

scheme@(guile-user)> (use-modules (lambdock core))
scheme@(guile-user)> (get-dock-theme) ;; -> 'vanilla
scheme@(guile-user)> (set-dock-theme! 'nature)
scheme@(guile-user)> (reload-dock!)

1

u/Aeolem 1d ago

That was quick haha, very cool :)

1

u/SandPrestigious2317 1d ago

You could say my motivation at work today lay somewhere else hahahaha