25 ms·
If you don't switch between window managers is there any point in having a DM? Why not just login and run "sway" or "startx"
by howeyc 2y ago
If you don't switch between window managers is there any point in having a DM?
Why not just login and run "sway" or "startx"
- SushiHippie 2y agoI've used DMs only for eye candy, as it looks a bit better than using getty/greetd to login. But I've never got DMs working without any problems, so I just have if [[ $(tty) = /dev/tty1 ]]; then exec sway; logout fi in my .zprofile file, which just works (tm).
- gorgoiler 2y agoThis has the advantage of executing all your shell mcguffins too, so PYTHON4_LC_COLOR=Europe/Orange is set for the entire desktop session, not just the shells you launch from your desktop environment. (By the way, exec is a fundamental Unix syscall of interest in that it replaces the current process’s code with new code. Your logout call will never run. The exec is the last thing zsh does before being replaced by sway.)
- __float 2y ago(What if sway doesn't exist?)
- kelnos 2y agoThen you probably don't want the 'logout' there anyway, so you can get a shell and see the output that says why it didn't run.
- normaler 2y agoAlso if sway dies not exist just change to tty2 e.g. and log in there. This will not Start sway there.
- gorgoiler 2y agoThat’s a good point but I think the original intention was clearly “run sway until it’s done, then logout.”
- bean-weevil 2y agologout is unreachable here because the previous command is exec
- _lvbh 2y agoThis is exactly what I do. It’s also a lot faster