this post was submitted on 15 Jan 2024
48 points (96.2% liked)
Linux
48078 readers
1034 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
You know how hard it is to explain personal preferences when we talk about tiling WM but, as I mentioned in my first post, I would say that bspwm offer some further granularity. I didn't thought that was possible after using dwm but to come back to my example I have bspwm listening to the state of my media player. Everytime it becomes floating, bspwm resize the window, place it on a specific position, and add a border to it. This is just one example. Also, even though you can use it with any tiling WM, sxhkd has been developed with bspwm in mind and offers the best keybindings management I've ever tested. Thanks to chords, several commands can be associated to independent keybindings within the same piece of code like so:
Control and a number will switch you to a workspace. If you also press Shift the active window will be sent to a given workspace.
I'm already using sxhkd with dwm but it's probably underdeveloped. I want something like that above but with an additional hotkey to change send the active window to a workspace and then switch to that workspace but I haven't worked it up. I debated using a QMK tapdance feature for that but have never switched to my QMK keyboard.
I guess to get at my real question, dwm (or maybe more accurately some of the applications I run) generate windows in weird ways. Zoom for instance doesn't generate notifications for things like unstable wifi, but rather tiles a new window for 2 seconds which is REALLY annoying. Also the window swallowing feature is pretty finicky for things like (n)vim+latex in continuous compiling situations.
It's all fixable... But it's just a massive headache since (on my work pc) changing a dwm config means logging out and back in to see the results.
I would need to go back to my old dwm config file but I think what you're looking for is this patch. In bspwm this is achieved with the "follow" option as shown in my example.
To restart dwm without login out and back in you'll need this in your .xinitrc:
Then whenever you kill dwm with
kill -HUP $(pidof -s dwm)
it will actually be reloaded. Seems like there's also 2 patches to do that now (note that they both mention the above method as well).https://dwm.suckless.org/patches/restartsig/
https://dwm.suckless.org/patches/selfrestart/
@dream_weasel Did that help?