News for hackers. Stuff that matters.
Re:A terminal-based workflow for research, writing, and prog... by asciimov on Thursday December 03, 2020 @09:40PM (#25298312)
A good alternative to strictly terminal-based workflows are tiled window managers.

The big gain is that you don't have to give up all those gui apps as they blend in next to the terminal apps quite well.

Re:A terminal-based workflow for research, writing, and prog... by desmap on Thursday December 03, 2020 @11:17PM (#25298867)
I was one or two years on Arch with i3 and all was great except when an app (eg a browser or Inkscape) opens a dialogue/modal/popup or whatever and this got stretched over the entire pane, yuck. AFAIK this could be configured somehow but I found configuration not as mature and rock-solid as with tmux or nvim but good though. It was rather a rabbit-hole.

While I prefer the paradigm of tiling wms I eventually stuck with Windows (and WSL2) with its built-in window management but yeah.

Re:A terminal-based workflow for research, writing, and prog... by ghgr on Friday December 04, 2020 @01:29AM (#25299633)
That's odd, I've been using i3 for years now and modals always open as a floating window. Even GIMP (and its many windows) works fine. I don't remember tweaking anything in particular to make it work.
Re:A terminal-based workflow for research, writing, and prog... by desmap on Friday December 04, 2020 @03:47AM (#25300327)
Nice to hear and need to try it again. I stopped using it 2017. Another gripe I had with i3 was that setting up proper hidpi support was a mess, maybe this improved as well. I know that the latest Ubuntu got here quite well, allowing also 25% steps etc.
Re:A terminal-based workflow for research, writing, and prog... by asciimov on Friday December 04, 2020 @04:08AM (#25300430)
Hidpi is still a total crapshoot on linux (depending on distro and window manager).

My current setup uses xrandr to scale my 4k to 1440p.

It's not perfect, but it's better than other options.

Re:A terminal-based workflow for research, writing, and prog... by desmap on Friday December 04, 2020 @04:21AM (#25300493)
Yeah hidpi on Linux is pretty underwhelming and it seems that nobody really cares. I think Windows needed years to match macOS and is now on the same level. Still Windows notebooks barely have more then 200dpi unless there are from the premium segment. Whatever, at least the software side is great now. But on Linux, Ubuntu just had until last year hidpi only in 100% steps paired with dozens of glitches here and there. Sad since especially a terminal looks just terrific in 300dpi (UHD on 13" or 8k on 32").
Re:A terminal-based workflow for research, writing, and prog... by dijit on Friday December 04, 2020 @04:49AM (#25300645)
I think you're probably right, but my experience (Sway on Arch) has been nothing other than pretty excellent.

It supports fractional scaling and different scales for different attached screens.. You have to tell the system you want it (`swaymsg 'output <x> scale 1.5'`) but it works.

Re:A terminal-based workflow for research, writing, and prog... by desmap on Friday December 04, 2020 @05:35AM (#25300907)
Just checked out Sway's intro video, this looks promising! Would you mind to elaborate if Sway is ready for being a daily driver + how is multi-monitor support (all monitors same dpi and also with different dpi levels).
Re:A terminal-based workflow for research, writing, and prog... by dijit on Friday December 04, 2020 @07:42AM (#25301618)
I’ve been using it as a daily driver for 2-ish years professionally. I have crashed it but those were super rare.

You still need Xwayland installed for some stuff though. Most tools have adequate wayland replacements.

Re:A terminal-based workflow for research, writing, and prog... by ekianjo on Thursday December 03, 2020 @09:50PM (#25298364)
Tiled windows managers have issues though. Last time I tried i3wm for example, there was no default support for sleep, energy saving and hardware keyboard shortcuts and you had to take care of all of that instead of the usual GNOME/KDE to do it for you. The best option is to install tiled windows managers plugins within GNOME or KDE on Linux.
Re:A terminal-based workflow for research, writing, and prog... by 188201 on Thursday December 03, 2020 @10:00PM (#25298413)
All are supported. You just need to edit the config file.

Adding keyboard shortcuts is easiest in window manager comparing to full desktop environment where the setting is hide behind the some Setting GUI.

Energy saving feature is basically setting P-state on Intel CPU, and does not work on AMD. You could do it manually by using kernel interface.

Re:A terminal-based workflow for research, writing, and prog... by swirepe on Thursday December 03, 2020 @10:08PM (#25298461)
i3 is one of those things that supports everything, you just have to configure it. If you want i3 with sane defaults and a pretty style out of the box, you should try i3-regolith[1]

[1]https://regolith-linux.org/

Re:A terminal-based workflow for research, writing, and prog... by asciimov on Thursday December 03, 2020 @10:49PM (#25298666)
I use dwm, you get keybinding support inside the config file and then you can use scripts or commands to manage everything else.

Dwm isn't for everybody, you modify the c source and compile to get the changes you want. The best part is that the source is small enough to understand for when you want to do something to it.

Re:A terminal-based workflow for research, writing, and prog... by generalizations on Thursday December 03, 2020 @10:03PM (#25298433)
I found i3 to be the easiest WM for setting arbitrary keyboard shortcuts. The .config file makes it really convenient, and you can just set the key to run an arbitrary shell command.
Re:A terminal-based workflow for research, writing, and prog... by cptnapalm on Thursday December 03, 2020 @10:09PM (#25298465)
Regolith has at least some of that. I'm using it on Ubuntu. https://regolith-linux.org/
Re:A terminal-based workflow for research, writing, and prog... by rusticpenn on Friday December 04, 2020 @02:07AM (#25299796)
I installed the i3 version of Manjaro and it came with everything out of the box.
Re:A terminal-based workflow for research, writing, and prog... by HungSu on Friday December 04, 2020 @02:09PM (#25306355)
For those who enjoy experimenting with window managers, might I suggest PaperWM for your next experiment?

Instead of fitting all your windows within your monitor's boundaries, PaperWM sets all windows to take full height and gives you an infinite horizontal axis to arrange them on. I'm thoroughly enjoying it and vastly prefer it to tiling and floating windows

https://github.com/paperwm/PaperWM