conky icon indicating copy to clipboard operation
conky copied to clipboard

SDL GUI backend

Open mmuman opened this issue 3 years ago • 30 comments

The idea is to be able to run Conky on ancient OSes and hardware (thinking about MiNT (not the GNU/Linux distro, the Atari OS) or AmigaOS), in a regular window but with minimal coding required, and also to allow testing the GUI backend without X11. I used SDL 1.2 because SDL2 only runs on Windows, OSX and Linux, which limits the interest for old platforms.

For now it only draws text with a hardcoded font. It also still needs to be compiled with X11 due to some variables here and there.

mmuman avatar Oct 13 '22 12:10 mmuman

Deploy Preview for conkyweb canceled.

Name Link
Latest commit 7f55591ece3afd65d8c82401d5ec7ef47ea92741
Latest deploy log https://app.netlify.com/sites/conkyweb/deploys/66892184b9b7570008e950b6

netlify[bot] avatar Oct 13 '22 12:10 netlify[bot]

I added some way to locate and load TTF files by the font name, it kinda works. Screenshot_20221129_223721

mmuman avatar Nov 29 '22 21:11 mmuman

Just rebased, had to change some #ifdef info #if defined(BUILD_WAYLAND) || defined(BUILD_SDL) so maybe we'd need some BUILD_NONX11 define around to avoid these lists everywhere?

mmuman avatar Jan 22 '23 16:01 mmuman

Just rebased, had to change some #ifdef info #if defined(BUILD_WAYLAND) || defined(BUILD_SDL) so maybe we'd need some BUILD_NONX11 define around to avoid these lists everywhere?

That could work, though it seems messy. There's also BUILD_GUI, but it sounds like that won't help here.

brndnmtthws avatar Jan 24 '23 00:01 brndnmtthws

The recent changes on color stuff just got rid of the #ifdef thing.

mmuman avatar Aug 04 '23 23:08 mmuman

And we have colors :-)

mmuman avatar Aug 05 '23 00:08 mmuman

Hi, I changed how registration of output displays works to avoid linker magic, you can check out how other backends are registered on main branch for reference.

Main differences are:

  • sdl-output.cc should be guarded by build flag in CMakeLists.txt
  • You need to provide a log message template fallback in display-output.cc for feature gated outputs

Caellian avatar Apr 24 '24 10:04 Caellian