News for hackers. Stuff that matters.
Re:Berry is a healthy, byte-sized window manager written in ... by pluc on Saturday June 11, 2022 @09:47PM (#31710464)
I really don't get the popularity of virtual desktops/workspaces. Like this thing has 5 features and one of them is it. Seems to come default in most distros/WMs out there and I just don't get it. One workspace/desktop has always been enough for me, and I find having to navigate to other workspaces/desktop just wastes time when you can just find the relevant window...
Re:Berry is a healthy, byte-sized window manager written in ... by Kerrick on Saturday June 11, 2022 @10:57PM (#31710877)
I use virtual desktops/workspaces for context switching. Because I don't like to micromanage opening and closing a multitude of windows each time I switch tasks, I just... leave everything open until I'm done with it. My computer is powerful enough that it doesn't usually struggle with that. Even if it'll be hours until I'll use a certain context, I just leave everything up on that virtual desktop/workspace until I need it next. So, I have a workspace for each of:

- Leisure (browsing Hacker News, reading the news, listening to music, chatting with friends, etc.)

- Play (usually an idle game I enjoy)

- Software development (code editor, terminal, browsing code documentation, debugging tools)

- Virtual office work (writing documents, checking email, managing my calendar, managing projects)

- Learning (these days that means formal schoolwork as I've gone back to school to chase a graduate degree)

Re:Berry is a healthy, byte-sized window manager written in ... by boloust on Saturday June 11, 2022 @10:39PM (#31710769)
With most tiling WMs, multiple workspaces are necessary since there's often no way to minimize windows. So without virtual desktops you'd quickly run out of space.

If you're using a standard overlapping window system, virtual desktops are more of an optional workflow preference than an absolute necessity.

Re:Berry is a healthy, byte-sized window manager written in ... by usr1106 on Sunday June 12, 2022 @05:09AM (#31713052)
i3 has tabbing so that's a way to hide windows. However, I still prefer work spaces as a high level concept. One window I have always tabbed, namely my command line window for different machines. Occasionally during debugging I also move a tab on top of the monitor.

Long before I used a tiling window manager I tried workspaces, too. But it just made the general chaos worse, not able to quickly find what I wanted. It's "too easy" to open a new window in the wrong workspace. Maybe just a psychological difference, with tiling I have learned not to create a mess.

Re:Berry is a healthy, byte-sized window manager written in ... by hedora on Sunday June 12, 2022 @11:21AM (#31715166)
I prefer a large format 4K monitor (eg 65" TV) with key bindings to warp windows to each of the nine cells in a 3x3 grid.

Short of that, I really want virtual desktops.

Re:Berry is a healthy, byte-sized window manager written in ... by pluc on Saturday June 11, 2022 @10:58PM (#31710882)
Yeah that's probably the best point so far... but if you run out of tiling space with the standard two+ monitors, I'd argue you have too many windows!
Re:Berry is a healthy, byte-sized window manager written in ... by pjmlp on Sunday June 12, 2022 @04:07AM (#31712618)
A standard where?
Re:Berry is a healthy, byte-sized window manager written in ... by Crestwave on Saturday June 11, 2022 @11:47PM (#31711223)
Two monitors as a standard being the assumption. Lots of people don't have 'em, especially back when workspaces were first gaining traction. Also note that it's not particularly practical to do intensive window shuffling on tiling WMs.

When you take a break from, e.g. gaming, you would probably want all the related windows to be out of sight. Rather than close all of them and open a new batch for work then later close all the windows and reopen all of the gaming ones, you can simply switch between workspaces.

Berry seems to be a stacking WM, but there doesn't seem to be any way to minimize or otherwise access opened windows from a centralized "task bar" either, so similar workflows apply.

Re:Berry is a healthy, byte-sized window manager written in ... by LAC-Tech on Sunday June 12, 2022 @01:00AM (#31711578)
Two+ monitors is the standard?
Re:Berry is a healthy, byte-sized window manager written in ... by hedora on Sunday June 12, 2022 @11:19AM (#31715146)
Re:Berry is a healthy, byte-sized window manager written in ... by longrod on Saturday June 11, 2022 @10:10PM (#31710602)
Here's how I use workspaces (I am on KDE by the way):

I have 1 workspace dedicated to programming. It has all the terminals, the code editor, and everything else.

The 2nd workspace is for browsing. Incidentally this also includes web app preview (if I am working on a web app).

I have mapped the Ctrl + ` for easy switching between the 2. So I make a change in the editor, press a key and see the preview. Nice and easy. My code editor is never minimized or in the background so all good.

I have to do all this when I am working on a small laptop screen where switching between windows is too annoying. I am aware that there are other ways to accomplish somewhat the same functionality but workspaces work for me.

Re:Berry is a healthy, byte-sized window manager written in ... by greggman3 on Sunday June 12, 2022 @01:11AM (#31711622)
This wouldn't work for me. I need to see my browser at the same time as my code. I could be referencing docs, looking up a snippet for chat, reviewing code and looking something up, all manor of things require both to be visible at the same time for me.
Re:Berry is a healthy, byte-sized window manager written in ... by usr1106 on Sunday June 12, 2022 @05:18AM (#31713095)
I also prefer the browser on a separate workspace with nothing but the browser. However, in rare cases where copy-paste from the browser is not possible/good I just move the editor temporarily next to the browser: Win-Shift-2 Win-2 in i3, it's quick. Would there even be a shortcut for "move to workspace and display"? If so I have never learned it.
Re:Berry is a healthy, byte-sized window manager written in ... by kelnos on Saturday June 11, 2022 @11:04PM (#31710922)
I love workspaces. My top-left one is my "home" workspace where I keep a browser window with mail, calendar, chat, etc., as well as any other random browser windows/tabs with "general" personal stuff.

Then the other three workspaces (I just have four arranged in a 2x2 grid) are for a particular topic or project. One of them is devoted to some ESP32 rust hacking I've been playing with. Another has a window open for a consulting gig I was working on recently (though that project has concluded, so I can probably clean that one up). And the fourth one is for a different coding project I'm working on.

I find this much easier organizationally than having them all in the same workspace, and having to dig through the various windows to get things where I want it when I switch context.

Perhaps I'm a little odd, though: this is a laptop with a 13" screen, and I do all my work and play on it, without an external monitor. So keeping unrelated things separate is useful for me to keep clutter down.

Re:Berry is a healthy, byte-sized window manager written in ... by LAC-Tech on Sunday June 12, 2022 @01:03AM (#31711594)
How far away do you sit from a 13" screen?
Re:Berry is a healthy, byte-sized window manager written in ... by kelnos on Sunday June 12, 2022 @03:03AM (#31712233)
It depends on if I'm using it on my lap or on a desk/table, but usually between 18" and 24". It does help that I've had PRK, so I have 20/20 vision, despite being in my 40s. (It was 20/15 when I got it done 7 years ago, but it's slipped a little since then.) Certainly people with vision problems might not be able to work comfortably on a 13" screen.
Re:Berry is a healthy, byte-sized window manager written in ... by LAC-Tech on Sunday June 12, 2022 @04:33AM (#31712808)
Yes I am definitely a bit more short sighted than that. I'm most comfortable with reading stuff on my 14" laptop about 12" from my face, so I only ever use it when lounging around, or playing videos.

Never needed to wear glasses, though I was borderline when I did my last check for my drivers license. Maybe eye surgery is something to consider!

Re:Berry is a healthy, byte-sized window manager written in ... by JasonFruit on Saturday June 11, 2022 @10:01PM (#31710545)
I really like to use virtual desktops to isolate windows for a particular task: one for programming, one for social media, one for music notation, one for writing. Sometimes I have one of my kids making a Minecraft texture pack or something like that on my computer, and I'll stick that on a desktop of its own. It may be that I'm easily distracted, but I really love that feature.
Re:Berry is a healthy, byte-sized window manager written in ... by spc476 on Saturday June 11, 2022 @10:06PM (#31710570)
I've been using a 3x3 virtual desktop setup for 20 years on my Linux system. Upper left for email, lower left for a real time view on system logs (useful for debugging), lower right for long running programs in on the CLI, the middle row for work; the rest on an ad-hoc basis. By now it's muscle memory to switch screens (it doesn't hurt that it's easy to switch spaces via the keyboard). It's what you get used to.
Re:Berry is a healthy, byte-sized window manager written in ... by userbinator on Sunday June 12, 2022 @02:26AM (#31712047)
I think it could be because some people love hierarchies, and others hate them; most are somewhere in between, and I would certainly expect those who are more hierarchically-oriented to prefer working with the virtual desktops than those who want a flat "everything at once" model. You can see this in how different projects' source code is organised too --- some are full of deeply-nested directories and very "branchy", while others have lots of files in one directory, or few files with lots of code in them. I'm personally on the "flat" side; I prefer there being fewer levels of hierarchy, with more on each level. Even tabbed browsing, which seems quite popular, is something I make little use of --- I'd rather open new windows so I can see them all in the taskbar among everything, and switching is thus a single action rather than two.
Re:Berry is a healthy, byte-sized window manager written in ... by jjav on Sunday June 12, 2022 @01:40AM (#31711766)
> having to navigate to other workspaces/desktop just wastes time when you can just find the relevant window

How are you navigating to another workspace, that it could possibly be slower than finding the right window if they're all piled one on top of another?

Since forever (early 90s), I've use 9 workspaces in a 3x3 grid. Because that conveniently maps to the numeric keypad on the keyboard (which I've never used for number entry). So it's one keystroke to jump to any of the nine workspaces, nothing could be faster.

Each workspace is dedicated to a specific project or workflow, so when I switch working from something to something else it's just one keystroke away to have all those windows in their correct locations ready to go.

Re:Berry is a healthy, byte-sized window manager written in ... by shric on Saturday June 11, 2022 @10:00PM (#31710538)
It's useful when you have a large screen with multiple windows that are tiled and dedicated to a single work function. For example a terminal on one side and a browser on the other that's dedicated to specific work. You may then have another virtual desktop dedicated to messaging, video editing, whatever...

In well designed WMs like i3 each desktop is typically bound to a key for instant switching, unlike the full screen atrocity of macOS where there is an unremovable delay when switching.

Re:Berry is a healthy, byte-sized window manager written in ... by jandrese on Sunday June 12, 2022 @01:37AM (#31711752)
Back when my screen was 800x600 I used to have hotkeys that would let me switch between virtual desktops in an instant. It was super useful to have the reference page up on one screen and the code down on another. There wasn't enough space for both at once. I would also have other code windows open on different screens. People sometimes commented that it was impossible to watch me work because the screen kept flashing to different things.

I've not bothered with that setup in many years. I have enough pixels that it is no longer necessary or even helpful.

Re:Berry is a healthy, byte-sized window manager written in ... by ravenstine on Saturday June 11, 2022 @10:02PM (#31710551)
I get the motivation behind it, but I have to agree with you. I tried virtual desktops several times back when I used Linux desktops and the habit never stuck. What's more important to me is being able to easily switch between apps. Maybe there was a time where virtual desktops made more sense, but so many apps use tabs now that VDs seem pointless.
Re:Berry is a healthy, byte-sized window manager written in ... by loloquwowndueo on Saturday June 11, 2022 @10:30PM (#31710716)
How do you find the relevant window? Alt-tabbing or searching by name sounds like more work than “I know which workspace it’s in, so I just go to it (1 keystroke for me) and then find the window” (much less alt-tabbing when there are only a couple of windows in a workspace vs. dozens in a no-workspace arrangement)
Re:Berry is a healthy, byte-sized window manager written in ... by Gigachad on Saturday June 11, 2022 @10:58PM (#31710881)
I find that using multiple workspaces makes it harder for me to find the window. Normally I just trigger the activities overview in gnome and it shows all the windows. If I use workspaces, it only shows what’s on my current workspace and I have to either search multiple times or remember which workspace things are on and dedicate to a scheme.
Re:Berry is a healthy, byte-sized window manager written in ... by rusticpenn on Sunday June 12, 2022 @02:57AM (#31712201)
You Organise each workspace for a specific task. I have one for communication ( email, slack, Webex, calendar), one for learning, one for coding, one for Devon’s etc.
Re:Berry is a healthy, byte-sized window manager written in ... by pluc on Saturday June 11, 2022 @11:03PM (#31710918)
Pengaru mentioned MRU in the replies and that's largely how I find the relevant window, but instinctively knowing where the relevant app will find itself in the MRU using alt-tab. Either that or I just click on it in the taskbar, I never have more than 5-6 windows open. If I really need to be productive, I'll tile them up.
Re:Berry is a healthy, byte-sized window manager written in ... by politician on Saturday June 11, 2022 @10:03PM (#31710557)
The way that I use workspaces might be helpful in explaining their usefulness. I dedicated one workspace to each application and run that application maximized in the workspace. So: email, slack, calendar, browser, vscode, terminal, each in their own workspace. I will actively reorder the workspaces depending on where my focus is at the moment. For example, when programming I make the terminal, browser, and editor workspaces adjacent. However, when dealing with management situations, I’ll bring slack, calendar, email, and the browser together.

Full screen applications, adjacent workspaces, and a simple left or right swipe to switch workspace allows me to find relevant apps using our fast spatial reasoning wetware and avoids the problem of having to context switch into a hunt for the right window mode.

Re:Berry is a healthy, byte-sized window manager written in ... by pluc on Saturday June 11, 2022 @10:40PM (#31710783)
Why bother having apps you need in a given context be in a separate workspace instead of, say, tiling them so you can look at them all at once? I have one monitor for Slack/shells and one monitor for browser/IDE.. I see everything without needing to touch a thing
Re:Berry is a healthy, byte-sized window manager written in ... by politician on Saturday June 11, 2022 @10:47PM (#31710829)
Tiling can work if you have a large enough screen. Consider, however, folks that use a larger font size to reduce eye strain and work on a smaller laptop screen for portability. Also, there's a lot to be said for arranging your work area for focus and productivity -- eliminate unproductive pixels.

If I was 22 years old and had a large wraparound gaming monitor, then a tiling approach would probably work well. Truly, that approach did work for me when I was in my 20s. I'm still pretty interested in the VR office idea, but haven't bit bullet on it yet.

Re:Berry is a healthy, byte-sized window manager written in ... by pluc on Saturday June 11, 2022 @11:05PM (#31710928)
I actually hadn't considered laptops at all, since even those are usually hooked up to multiple monitors in work scenario but you have good points both on the screen and font sizes!
Re:Berry is a healthy, byte-sized window manager written in ... by fsckboy on Saturday June 11, 2022 @11:11PM (#31710966)
let's say you have a set of apps for a given context tiled on your screen, a shell or two, debugger, ide, editor, webpages for documentation...

now you want to look at a different context with the same windowing complexity. You just switch to a different workspace and it's all laid out for you. Then you can go back.

How would you accomplish that without workspaces?

Re:Berry is a healthy, byte-sized window manager written in ... by pluc on Saturday June 11, 2022 @11:41PM (#31711182)
I get that use case, but I haven't seen the need for a different context with the same windowing complexity. I'm not sure I would want a set of windows I can confuse with another? Maybe for working on different branches/environments or when running complex infrastructure diffs?
Re:Berry is a healthy, byte-sized window manager written in ... by michaelmrose on Sunday June 12, 2022 @12:22AM (#31711414)
If you are switching between 3 applications placing each in turn maximized on your display indeed I would see no benefit from virtual desktops in this instance however the benefit is proportional to the average work needed to switch between states * the frequency of such a switch.

With the complexity of keeping track of which together rising with the number of windows.

If S1 consists of a single window maximized and S2 a different window maximized the cost of switching workspaces is just as high as clicking on say a taskbar or hitting alt tab.

Let us consider a very simple stacking window manager with 2 workspaces and a task bar.

Let us first disregard the second workspace.

Suppose one has taken the trouble to size 7 windows to fit on 3 monitors. First you drag one window to the left-hand side of the leftmost monitor. Then we drag one side then the other. Repeat 7 times over for each window to be placed on each monitor.

Now suppose we only have 3 applications we ought to be able to see together separate from the other 7. This is easier as they can be dragged to a display and maximized.

Now consider the hassle to recreate the state repeatedly. You don't need to resize it but you have to manually select first 7 then 3 then 7 then 3 applications to bring them to the forefront.

Now what if you want to show 3 windows from the rightmost monitor then put them back. Now we are stuck resizing each in turn.

Now let us fully utilize the workspaces and separate the states on different desktops. Suddenly the switch between S1 and S2 is a click. The operation of moving the applications displayed on one end of S1 and showing them on the other end of S2 is of course just as much of a hassle as it ever was because workspaces encompass all monitors at once.

Now let us lastly switch to using per monitor workspaces. Now the last operation is as trivial as the first at the expense of making the process of changing all 3 at once more expensive. To decide which makes sense we would consider how frequently we want to do each operation.

If we find that we frequently need to switch multiple monitors at once we can trivially add that back but not the reverse.

Re:Berry is a healthy, byte-sized window manager written in ... by LAC-Tech on Sunday June 12, 2022 @01:04AM (#31711598)
I'm self employed, so keeping different client stuff separate from my general business development stuff separate from coffee break stuff is a no brainer.
Re:Berry is a healthy, byte-sized window manager written in ... by xvedejas on Saturday June 11, 2022 @09:59PM (#31710532)
It makes a lot more sense if you have multiple screens, and want to effectively have certain windows open in particular groups.
Re:Berry is a healthy, byte-sized window manager written in ... by pluc on Saturday June 11, 2022 @10:01PM (#31710541)
But having multiple screens _is_ having additional workspaces already...
Re:Berry is a healthy, byte-sized window manager written in ... by michaelmrose on Saturday June 11, 2022 @11:22PM (#31711041)
It is but a given task may easily benefit from placement of its central tools on the primary monitor and subsidiary components on adjacent monitors.

Without workspaces this means re-arranging even more windows yet to accomplish this task switching.

Re:Berry is a healthy, byte-sized window manager written in ... by vukgr on Saturday June 11, 2022 @10:16PM (#31710637)
Keeping a certain layout in tiling wms is the main thing I'd say. And also it's just a faster way of organizing windows compared to alt tabbing, it just takes a bit of getting used to since most people grow up with single workspace OSs.
Re:Berry is a healthy, byte-sized window manager written in ... by pengaru on Saturday June 11, 2022 @10:11PM (#31710605)
I really don't get how you can not appreciate the potential utility of virtual desktops.

In my window manager I took virtual desktops a step further and added contexts, each of which has its own set of virtual desktops. Windows, virtual desktops, and contexts all get kept in most-recently used (MRU) order.

So when I'm working within a virtual desktop, usually it's kept to a very localized specific topic involving multiple windows, Mod+Tab switches through those windows with the hot ones always staying at the top of the MRU-ordered list. Sometimes I end up with a slightly tangential set of windows so I spin up a virtual desktop within that context and keep those windows there, and the virtual desktop switching within the context can be achieved with Mod+Space, also in MRU-order.

But I also usually have multiple contexts active, each with one or more virtual desktops. Those contexts are for entirely disparate topics. Usually one context is communications, I'll have email, IRC, browser, etc. in one or more virtual desktops within that context. Another context will be one development project, with one or more virtual desktops full of terminals, kcachegrind, testing, etc. Usually I have two or three active development contexts repeating that mess. I can switch between the contexts using Mod+Grave, also in MRU-order.

The major value this all brings to me is it organizes my virtual spaces in the same way I organize my thinking and logically switch contexts. Due to everything always being kept in MRU-order, and having explicit keyboard controls for switching to the next recently used {window,virtual-desktop,context}, whenever I switch between these things, what's put immediately in front of me is the last item I was focused on within that context/virtual-desktop. And when I'm cycling through just windows or virtual-desktops, I don't get distracted by ever seeing the stuff put elsewhere.

But I do somewhat agree in the sense that many window managers offering virtual desktops utterly fail to deliver the obvious potential workflow advantages. It's totally ubiquitous for Mod+Tab to cycle window focus in MRU-order, but for some unclear reason nobody seems to do the same for virtual desktops, and I've never seen any before that grouped virtual desktops into another MRU-ordered and iterable/focusable thing which I've termed contexts.

Something I've come to really appreciate with how my window manager works is I'll sometimes spend over a month just living within the three MRU contexts getting shit done. Then I'll finally come up for air and hit Mod-Grave that fourth time without releasing Mod and rediscover that project I was working on last month still sitting there waiting for me to resume working on it, with the last focused window still sitting on top and focused ready to go. The entire month I spent in the top three MRU contexts I didn't have that backburner context's windows/virtual-desktops entering my cognition one iota, despite it being there all running and waiting happily.

Re:Berry is a healthy, byte-sized window manager written in ... by jmprspret on Saturday June 11, 2022 @11:42PM (#31711189)
I've always been more of a fan of the "grouping" motif that WMs like cwm have.