10 ms·
dwm
- johnnyApplePRNG 5y agoKind of like ratpoison with a mouse? [0] [0] https://www.nongnu.org/ratpoison/ https://www.nongnu.org/ratpoison/
- skulk 5y agoThe zen of dwm is endlessly browsing this list of patches and eventually adding so many that any new patches cause merge errors that take a long time to untangle: https://dwm.suckless.org/patches/ https://dwm.suckless.org/patches/
- LargoLasskhyfv 5y agoIsn't that what https://github.com/bakkeby/dwm-flexipatch https://github.com/bakkeby/dwm-flexipatch is made for?
- smegsicle 5y agothat would make for a fun gentoo ebuild
- skulk 5y agoeh, perhaps, but I'd never use it. I used dwm because I loved staring at that code and modifying it to my needs, and all those preprocessor directives are frankly horrifying. I'm sure this would have been much more practical, but I stopped using dwm in the name of practicality anyways.
- Macha 5y agoReminds me of early 00s phpBB MODs (which they allcapped to avoid confusion with moderators). It ended up this horrific syntax (http://web.archive.org/web/20041010114405/http://www.phpbb.com/kb/article.php?article_id=39 http://web.archive.org/web/20041010114405/http://www.phpbb.c... ) that functioned as both a bbcode forum post for manual instructions that didn't look too out of place for people to manually apply but also parseable for auto installers like easy mod. Then it turned into this XML file format in 3.0, which was similar in spirit but a more regular language made it less easy to screw up. XSL was used to make the "go edit it yourself" instructions version: http://web.archive.org/web/20160310004103/https://www.phpbb.com/mods/modx/sample-30-126.XML http://web.archive.org/web/20160310004103/https://www.phpbb.... It looks like they've finally ported to a real plugin system (https://www.phpbb.com/extensions/ https://www.phpbb.com/extensions/), but I had my fill of extend by patching in those days.
- CyberRabbi 5y ago> Because dwm is customized through editing its source code, it's pointless to make binary packages of it. This keeps its userbase small and elitist. This is the zen of suckless. Unlike other projects that desperately reach for users anywhere they can get them and then suffer the resulting bloat, suckless knows exactly who they are building for. It’s a tough thing to swallow but embracing the opposite of the suckless zen is probably a large part of why modern software is so bad. The more we try to pretend it should be possible for all people to program or use computers in general, the worse software becomes.
- woodruffw 5y agoElitist (and not elite) is correct: my experience as an observer in the *nix "ricing" community is that there's a weak negative correlation between obsessive suckless tool use and programming competency. "Fetishistic" users are over-represented in suckless's userbase. Source: dmenu user.
- badsectoracula 5y ago> there's a weak negative correlation between obsessive suckless tool use and programming competency So basically what you're trying to say is that the people who use suckless tools are incompetent programmers?
- woodruffw 5y agoI wouldn't go as far as to say that categorically, since I know a lot of very competent programmers who use individual suckless tools. But it's been my observation that a lot of "hyper-minimal"/"code as configuration" ricer-types tend to both use suckless tools and not be great programmers.
- fouric 5y ago> embracing the opposite of the suckless zen is probably a large part of why modern software is so bad Yes, so don't embrace the opposite of suckless - shoot for a nice middle-ground. The suckless philosophy is antithetical to the purpose of computers, which is as time-saving, labor-saving, collaborative automation devices. Here's what I wrote on Lobsters: --------------------------------- Unfortunately, the suckless philosophy leads to software that doesn’t do what software is meant to do - alleviate human work by making the machine do it instead. The suckless philosophy of “simplicity” translates to “simplistic software that doesn’t do what you would need it to do, so either you waste time re-implementing features that other people have already written (or would have written), or you do the task by hand instead”. If, when required to choose exactly one of “change the software to reduce user effort” and “make the code prettier”, you consistently choose the latter, you’re probably not a software engineer - you’re an artist, making beautiful code art, for viewing purposes only. You definitely aren’t writing programs for other people to use, whether you think you are or not. This philosophy (and the results) are why I switched away from dmenu to rofi - because rofi provided effort-saving features that were valuable to me out-of-the-box, while dmenu did not. (I used dmenu for probably a year - but it only took me a few minutes with rofi to realize its value and switch) rofi is more valuable as a tool, as a effort-saving device, than dmenu is, or ever will be. In other words - the suckless philosophy, when followed, actively makes computers less useful as tools (because, among other things, computers are communication and collaboration devices, and the suckless philosophy excludes large collaborative projects that meet the needs of many users). This is fine if your purpose is to make art, or to only fulfill your own needs - just make sure that you clearly state to other potential users that your software is not meant for them to make use of. Also note that the most-used (and useful) tools follow exactly the opposite of the suckless philosophy - Firefox, Chromium, Windows, Libreoffice, Emacs, VSCode, Syncthing, qmk, fish, gcc, llvm, rustc/cargo, Blender, Krita, GIMP, Audacity, OBS, VLC, KiCad, JetBrains stuff, and more - not just the ones that are easy to use, but also ones that are hard to use (Emacs, VSCode, Audacity, Blender, JetBrains) but meet everyone’s needs, and are extensible by themselves (as opposed to requiring integration with other simple CLI programs). There’s a reason for this - these programs are more useful to more people than anything suckless-like (or built using the Unix philosophy, which shares many of the same weaknesses). So, if you’re writing software exclusively for yourself, suckless is great - but if you’re writing software for other people (either as an open-source project, or as a commercial tool), it sucks. To top it off, people writing open-source software using the suckless philosophy aren’t contributing to non-suckless projects that are useful to other people - so the rest of the open-source community loses out, too.
- ziggus 5y agoBefore you even ask: yes, there's a port for Wayland: https://github.com/djpohly/dwl https://github.com/djpohly/dwl
- jchassoul 5y agojust use bspwm!
- kriops 5y agodwm is not my daily driver, but it’s incredibly easy to be productive with the default config – it’s my go-to on my distro of choice (Fedora) on machines that aren’t both mine and intended for long-term use. bspwm is somewhat more painful to install and configure in my experience (though also great once it’s set up), and afaik it does not have an easy config for the right-side window stack that is a key selling point of dwm to me.
- mcbuilder 5y agoI would say you use DWM for the suckless philosophy of it at this point, but it is historically important as one of the major early tiling window managers during this current wave that starting around the late naugties. deserves some recognition. It a bit later that bspwm was written, and now it has gained some traction in the "ricing" community. DWM was sort of a default choice for the minimal tiling WM. However, it wasn't for me, I used Subtle for its features and than XMonad for the Haskell experience. Now I've actually settled into enjoying EXWM the most, feels very natural to have everything to at least appear to be inside emacs. My point is that there is no right tiling window manager.
- alfiedotwtf 5y agoCame here to say this. Bspwm is like Emacs - it's the basis to make your own window manager however you want it! I think I'll forever be on bspwm <3
- argc 5y agoDefinitely, I use bspwm for my work computer and its great.
- racingmars 5y agoI've used dwm as my window manager for a couple years now, after switching from i3, and have never looked back (i3 was fine, but it had a bug that was affecting me too often--I don't even remember what now). For me, the killer feature (aside from tiling vs overlapping) is that on my three monitors, I can switch virtual desktops independently on each monitor. After being able to do this, I don't understand why every window manager doesn't offer this. It's not uncommon with tiling WMs that have good multi-monitor support, but you really can't find it in traditional WMs. There's an unmaintained patch of openbox--openbox-multihead--that added the feature, and there's an "experimental" hybrid window manager written in Go (by the same author of the openbox patch), but no mainstream window managers appear to have the feature. Apparently it goes against a requirement/assumption in the EWMH spec and breaks existing pagers. But that's okay, because I don't use a pager. Anyway, it really is critical to how I work now. I can keep a set of windows on my right monitor, and flip between virtual desktops on my center monitor without the right monitor changing at all. (And no, using the "sticky" feature of other WMs doesn't work for me because sometimes I do want to flip to a different virtual desktop on the right monitor and have that set of windows for whatever context I'm switching to). Along the same lines, the pertag patch is part of making dwm the perfect windows manager for me. (If you're interested in the particular set of patches I use and my config, I maintain it at https://github.com/racingmars/dwm https://github.com/racingmars/dwm)
- sbysb 5y agoThis is something I have come to realize I unconsciously have gotten very dependent on - MacOS let's you swap virtual desktops for the monitor you are currently focused on without swapping any of the others. I never realized how intuitive this is until switching back to my XFCE linux installation and getting very frustrated with virtual desktops entirely. I might have to give dwm a try again on my linux machine if it supports this.
- racingmars 5y agoYes! Before I went all-in on desktop Linux, I was a Mac user, and MacOS definitely got virtual desktops exactly right in this regard.
- fouric 5y ago> In contrast to ion, larswm, and wmii [...] dwm has no Lua integration, no 9P support, no shell-based configuration, no remote control, and comes without any additional tools, such as for printing the selection or warping the mouse Holy cow, some of these features seem really useful. I should look at some of those other window managers! > customized through editing its source code Yikes, this is a very bad idea. This kind of customization is very hard to split off from the tool, share, version-control, and verify. Customization in a full, general-purpose imperative programming language is also a bad idea. Either make the tool a platform (Emacs) or use a declarative configuration language. > Because dwm is customized through editing its source code, it's pointless to make binary packages of it. This keeps its userbase small and elitist. Suckless tools are developed for the needs (and the benefit) of their own developers, and nobody else. Remember that.
- tedunangst 5y agoI have nevertheless been a happy user of the binary openbsd package for more than 10 years.
- jovial_cavalier 5y ago>Suckless tools are developed for the needs (and the benefit) of their own developers, and nobody else. Remember that. Another way of putting it is: if you can use it, you become a suckless developer :)
- fouric 5y agoAnother way of putting that is "you are required to become a developer in order to use the tool." Great for developer community, but not great for the average user (or even the above-average user - say, 98th percentile) who wants to use computers for the purpose for which they were intended (and are amazing at) - labor-saving devices. Heck, even as a developer, I would always rather use a tool that doesn't require me to learn the internals in order for me to use it at a basic level of proficiency. Wouldn't you? (probably not in your specific case - I'm addressing the median HN user) Isn't that the point of abstraction and API boundaries? If your goal is to make software that artificially requires others to invest a lot of needless time and effort in order to use it, or if you like creating beautiful pieces of code-art then suckless is for you. If your goal is to build software that saves other humans time and effort, the suckless philosophy is absolutely the opposite thing of what you want[1]. [1] https://news.ycombinator.com/item?id=29941395 https://news.ycombinator.com/item?id=29941395
- micahcc 5y agoI cycled through dwm at one point. The thing that killed me was that on my nvidia machine, for some reason it would flash when I changed desktops, like the draw order was wrong. i3 is the only tiling window manager that didn't, I think because it uses xcb instead of xlib. I love the magical bullshit in the description. Each line contains some face palm. > dwm doesn't distinguish between layers: there is no floating or tiled layer. Whether or not the clients of currently selected tag(s) are in tiled layout, you can rearrange them on the fly. Popup and fixed-size windows are always floating, however. Ok so it does have floating then? > Because dwm is customized through editing its source code, it's pointless to make binary packages of it. This keeps its userbase small and elitist. No novices asking stupid questions. There are some distributions that provide binary packages though. Ok so you can package then....? > dwm is only a single binary, and its source code is intended to never exceed 2000 SLOC. Strange flex but ok. > dwm has no Lua integration, no 9P support, no shell-based configuration, no remote control, and comes without any additional tools, such as for printing the selection or warping the mouse. It uses x, x warps the mouse. > dwm is customized through editing its source code, which makes it extremely fast and secure - it does not process any input data which isn't known at compile time, except window titles and status text read from the root window's name. ok so there is input that could hacked (not saying there IS, but if you process strings or floats from the user those can contain unexpected values). All that said, suckless tools are nice, just think the mindset is hilarious.
- jovial_cavalier 5y agoTo package it would defeat the point. The point is that the software that you're using to manage your computer is simple enough that you can read all of it and understand it -- not that you have to, but you could. The official method for "extensions" to DWM is in the form of Git patches (https://dwm.suckless.org/patches/ https://dwm.suckless.org/patches/). You apply the patch and re-compile. If you had dwm through your package manager, you wouldn't be able to apply any patches, because you would just have the binary. >Ok so it does have floating then? What's meant by the quoted text is that you can cycle through all windows on your current workspace, including the floating ones, using only your keyboard. Yes, it does have floating. edit: I should also say, the real power move for me is that I can just fork the dwm git repo on github, and have my exact desktop configuration available to me 24/7 from anywhere, and I can deploy it on a potato.
- Lingunixtix 5y agoDwm has inspired many users to exercise freedom 1 with own modifications (patches), forks and rewrites in other languages: for instance Xmonad, awesome, and even a Microsoft Windows port. And adaptions for emacs, too. Of course. Hell, even for vim! :o
- hiptobecubic 5y agoIt "inspired" them because dwm is functionally incomplete and requires a complete redesign. Something like xmonad also does the "my wm is actually library and I wrote the wm with it" approach, but is designed in a way to support code reuse and sharing. It's infinitely better, imo.
- stonogo 5y agoThe feature everyone overlooks in this window manager is that it presents windows according to the set of selected tags, and tags can be added or removed from windows on the fly (this is the 'd' in 'dwm'). Aside from its predecessor wmii, I have not been able to find another window manager with this functionality, and I really miss it on my Wayland systems. Once you're accustomed to dynamic tagging it's difficult to return to the restrictive 'workspace/desktop' paradigm.
- ghostpepper 5y agoAccording to this[0] comment there is a wayland equivalent called dwl[1]? Have not tried it myself - latest commit 3 months ago [0] https://news.ycombinator.com/item?id=29940855 https://news.ycombinator.com/item?id=29940855 [1] https://github.com/djpohly/dwl https://github.com/djpohly/dwl
- Naac 5y agodwm requires you to configure your environment in C, and recompile the project. >> You don't have to learn Lua/sh/ruby or some weird configuration file format (like X resource files), beside C, to customize it for your needs: you only have to learn C (at least in order to edit the header file). From a usability perspective, that's pretty awful. Stick with i3 for a happier time.
- betwixthewires 5y agoI am an avid user of dmenu, it is absolutely fantastic, there's nothing as easy as pressing a key (or two) and then typing what I'm trying to launch, with autocompletion as well. I know a lot of DEs are incorporating a launch box in the menu directly, and I like the double utility but usually these menus are just too busy. A simple menu like the good ol gnome 2 days with a text box would be perfect, but alas this does not really exist, its either all or nothing. DWM though, having to compile it every time you want to change the configuration is too much.
- jbmny 5y agoI've been using dwm for years. Oddly enough, I almost always keep it in monocle mode (one window at a time that takes up the entire screen). I rarely find myself wanting to look at two or more windows at once. More often, tmux seems the more appropriate place to split windows. Monocle mode also seems to help me stay focused. Of course, when I do really need multiple windows, tiling mode is an Alt-t away. I enjoy using a simple program to meet my simple needs.
- timetraveller26 5y agoCheck also Awesome WM, which is a successor of dwm configurable/scriptable with lua.
- ognarb 5y agoJust in case you thought about using Suckless/dwm: They’re doing literal torch hikes through southern Germany at their conferences, fighting online against "cultural marxism", and their mail server has the hostname "Wolfsschanze" (see: https://twitter.com/pid_eins/status/1113738766471057408 https://twitter.com/pid_eins/status/1113738766471057408) Source: https://twitter.com/kuschku/status/1156488420413362177 https://twitter.com/kuschku/status/1156488420413362177
- raspyberr 5y ago
- squarefoot 5y agoFrom linked page: "This keeps its userbase small and elitist. No novices asking stupid questions." From Wikipedia's definition of Eugenics: "Eugenics is a set of beliefs and practices that aim to improve the genetic quality of a human population, historically by excluding people and groups judged to be inferior or promoting those judged to be superior."
- okasaki 5y agoFiltering out the inexperienced has nothing at all to do with genetics.
- squarefoot 5y agoThe mindset behind that attitude, however, is pretty much the same.
- okasaki 5y agoAnd what would that be?
- squarefoot 5y agoDisrespect for people perceived as inferior because of limited knowledge in one field. Those elitists totally ignore that the newbie asking stupid questions about a Linux app could be the heart surgeon who one day saves their mommy's life.
- seanw444 5y agoI tried DWM, and I think it's pretty cool. But extending the functionality through C, and the limited set of patches, kind of bothered me. I wanted to essentially DIY my own window manager, but with a language that's a bit quicker to write, and less a burden to think about. For this, I highly recommend AwesomeWM. Been my daily driver for half a year now. I absolutely love it. It's scripted with Lua, so it's still snappy, while being easy to extend. The only downside is the *meh* documentation, but it's still usable.
- taauji 5y agoAwesomeWM has been my daily driver for 6 years now. was using i3 for a few years before that. Awesome definitely hits the sweet spot for me.
- errantmind 5y agoPlease check out DWM flexipatch for a painless way to try out patches and get your setup right! You can turn patches on and off at will, without having to mess with diffs. Once you get it right you can finalize your config with a separate script. It is like magic. There are also flexipatch repos for st and dmenu https://github.com/bakkeby/dwm-flexipatch https://github.com/bakkeby/dwm-flexipatch