I am not the author of dwl. Since dwl is based on wlroots (just like the popular Sway) it already supports making screenshots using grim and screencasts using wf-recorder.

You can try out dwl from within your current WM. The default modkey is Alt. If you want to use the Super key, change #define MODKEY WLR_MODIFIER_ALT in config.h to #define MODKEY WLR_MODIFIER_LOGO and recompile. The default terminal emulator is kitty but you can change termcmd to alacritty if you want.

Currently, only native Wayland applications run on it. You can enable experimental Wayland support for Firefox with MOZ_ENABLE_WAYLAND=1, see Running programs natively under Wayland in Sway Wiki.

Do not hover over the edges of windows – this will crash dwl.

  • sping@lemmy.sdf.org
    link
    fedilink
    arrow-up
    1
    arrow-down
    2
    ·
    1 year ago

    Hmmm, it says:

    Like dwm, dwl is:

    • Easy to understand, hack on, and extend with patches
    • One C source file (or a very small number) configurable via config.h
    • Limited to 2200 SLOC to promote hackability
    • Tied to as few external dependencies as possible

    But dwm is not easy to understand and hack on, it’s terrible code with one and two-letter identifiers and sparse documentation that leaves you having to reverse-engineer it to understand it. Browsing this code it doesn’t look as bad on identifiers, but it’s still largely un-commented and requires reverse engineering to get any understanding of it.

    One source file is definitely not a plus point, neither is limiting the lines of code, that just encourages people to use obtuse terse constructs over clarity. This one code file is a mass of unrelated functions and data structures just thrown together in one place for no good reason - presumably for people who find it challenging to work on more than one file at once?

    These are things that chased me off dwm. It seemed like the bad coders’ idea of good code, and the whole “if you want an optional feature just apply a patch (and fix conflicts, etc…)” was utter bullshit too.

    Sorry to be so negative, but dwm really rubs me the wrong way and I resent the time I wasted trying to live with it. This looks to have the same wrong-headed development aims. To each their own, if anyone likes it, good for them!