News for hackers. Stuff that matters.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by dahdum on Friday December 16, 2022 @05:47PM (#34021683)
I started using 4 virtual desktops to manage distractions many years ago and it’s worked wonderfully for me.

Desktop 1 is for chat, email, Spotify, and general web browsing.

Desktop 2 is for software development only, nowadays VSCode. A separate browser profile is used here and only for development related browsing (docs, stack overflow, live testing).

Desktop 3 is data and system administration. Remote terminals, Excel, database clients, and similar go here.

Desktop 4 is a catch-all. I use it for infrequent activity, like the occasional Photoshop, Word or vendor tooling.

I’ve used this same setup on Windows, OSX, and Linux for 15+ years. I always setup Alt-1,2,3,4 to switch and tweak the OS to remove all animations so it switches instantly.

I’ve found it much easier to stay in the zone this way.

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by NotPractical on Friday December 16, 2022 @06:00PM (#34021787)
How do you remove the desktop-switching animation on macOS? I'd like to use the virtual desktops feature but the animation is unbearably slow, and I was unable to find a way to disable it online even after extensive searching.

Afaik "just use Linux" still isn't an option on my 2019 (Intel) MBP due to lack of support for basic stuff like Wi-Fi and keyboard :(

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by edavis on Friday December 16, 2022 @06:05PM (#34021840)
System Preferences > Accessibility > Display > enable "Reduce motion"

Though I think this reduces motion on everything, not just the virtual desktop animations. I don't mind that but YMMV.

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by kodisha on Friday December 16, 2022 @06:16PM (#34021945)
Omg, THANKS!
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by stephenitis on Sunday December 18, 2022 @01:41AM (#34035563)
Wow. Thank you so much too!
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by firloop on Friday December 16, 2022 @06:22PM (#34022020)
I have the animations off entirely, be warned though, it requires disabling SIP which is a non starter for many corporate environments.

If you install yabai[0] with its scripting addition, you can configure hotkeys to change spaces with no animations. It's pretty powerful, and I have specific keybinds[1] to do things such as transition to a space with a specific application running.

[0]: https://github.com/koekeishiya/yabai

[1]: https://github.com/worm-emoji/dotfiles/blob/140c9fd614ebfc54...

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by dahdum on Friday December 16, 2022 @06:10PM (#34021893)
It’s been a while since I set OSX up but there are Super User threads about it. I end up searching each time for the latest methods because I haven’t been able to get it quite as instant as Win/Linux but close enough.

https://superuser.com/questions/35144/speed-up-osx-spaces-by...

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by nrdvana on Friday December 16, 2022 @11:20PM (#34024611)
If you really want to run linux, get a Lenovo Thinkpad. They actually test the hardware with linux distros and even have bios options for Linux sleep states, labeled as such. Give the Macbook to someone who wants to run MacOS. The X1 Carbon line is my favorite, with excellent battery life for basic coding and video watching. Also, power options to set the maximum charge to 80% to preserve the life of the battery. (lithium ion batteries last nearly forever if you keep the charge between 20% and 80%) And yes, it has so much battery to spare that that middle 60% is enough to last a day of coding.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by srcreigh on Saturday December 17, 2022 @12:31AM (#34025077)
There is an app for this. Reduce motion is still slow fade animation. The app was a little buggy but mostly worked like Linux tiling window managers.

I believe it was a few bucks. I can’t remember the name of it, but I’m looking an will edit if I find it.

Edit: no dice. All I can do is assure you it’s technically possible and some external WM apps out there may do it for you

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by wil421 on Saturday December 17, 2022 @07:13AM (#34027120)
Can’t you just do the 3 finger side swipe to move between desktops?
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by dpbriggs on Friday December 16, 2022 @06:26PM (#34022071)
I've had this exact setup for nearly a decade. Sometimes Slack (or Google Chat) ends up on desktop four.

It really cuts down on distractions.

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by dahdum on Friday December 16, 2022 @07:14PM (#34022523)
It’s cool to see others have ended up with similar setups. Desktop four started as either a vm or vnc/rdp client for software that wouldn’t run locally. So that’s why it remains as the catch-all.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by dpbriggs on Friday December 16, 2022 @07:41PM (#34022776)
For me it housed mocp (later Spotify) and a GUI file manager on occasion. It's nice to leave the first three desktops clean.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by MuffinFlavored on Friday December 16, 2022 @06:23PM (#34022029)
How often do you use “do not disturb” or some similar mechanism to disable notifications?
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by ansc on Friday December 16, 2022 @06:08PM (#34021877)
Funny, this is exactly to the point how I have it. Unfortunately I haven't found a way to remove animations on OSX, but works well regardless.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by kbuchanan on Friday December 16, 2022 @06:57PM (#34022368)
How do you prevent ⌘+Tab from automatically jumping you between desktops? At that point, the desktops feel like impediments, not boundaries.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by miniBill on Friday December 16, 2022 @08:47PM (#34023375)
There is some software to have a windows-like alt-tab experience, and you can decide to filter to current desktop or not
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by clscott on Friday December 16, 2022 @10:52PM (#34024425)
What is this miracle software?
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by hxugufjfjf on Saturday December 17, 2022 @02:05AM (#34025546)
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by swah on Saturday December 17, 2022 @05:04AM (#34026472)
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by porker on Saturday December 17, 2022 @02:09AM (#34025572)
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by clscott on Saturday December 17, 2022 @09:46AM (#34028147)
Thank you all with the suggestions!
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by cimnine on Saturday December 17, 2022 @03:38AM (#34026009)
It's possible to disable that, see https://discussions.apple.com/thread/4995042
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by jbverschoor on Friday December 16, 2022 @05:59PM (#34021779)
Similar here. I’ve blocked all distractions in ublock on my dev and general browsers.

Stage manager actually helps a lot

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by Jarwain on Friday December 16, 2022 @06:10PM (#34021889)
How do you manage virtual desktops on windows? I used to but found it annoying to maintain which windows go where, when restarting would always reset the settings
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by dahdum on Friday December 16, 2022 @06:15PM (#34021939)
Win10+ has virtual desktops built in, before that I used the SysInternals Desktops utility.

To get Alt-1,2,3,4 working I use AutoHotKey. I can’t recall which script I use (been ages since I changed it) but it works like this one with some edits for keys.

https://github.com/pmb6tz/windows-desktop-switcher

For windows I definitely recommend also installing PowerToys. You can set up different snap grids for each desktop. Keeps things tidy with no overlapping windows.

https://learn.microsoft.com/en-us/windows/powertoys/

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by Jarwain on Saturday December 17, 2022 @12:27AM (#34025058)
Yeah I used to use W10's virtual desktops; I got tired of having to reconfigure the desktops every time I rebooted the laptop. Big fan of powertoys, although I keep forgetting all the tools it has to utilize though xP

I'll hafta see if they've updated it, and look into fancy zones. They look like the tiling manager I've always wanted in windows

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by nickjj on Friday December 16, 2022 @06:19PM (#34021980)
https://dexpot.de/?lang=en is really good.

It has hotkey support and pretty much everything you can ask for to quickly manage and switch between desktops and toggle common window attributes like "always on top".

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by WheelsAtLarge on Friday December 16, 2022 @06:46PM (#34022271)
This is pretty good advice. But if you are going to hide the slack desktop while you are working then you should let people know. Otherwise, people will expect a response real time and wonder why you are ignoring them. It's human nature.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by dahdum on Friday December 16, 2022 @06:59PM (#34022381)
If you always respond instantly you set that expectation for the future. I wouldn’t be expected to respond immediately if I were presenting over Zoom, had just left for a bathroom/drink break, on an important call, or was in the middle of an careful process anyway.

It’s not as if I ignore it completely, I can check Desktop 1 for flashing notifications with a simple left hand only Alt-1, and be back on my working desktop in like a second. That quickly becomes as autonomic as Ctrl-l, n, e, Enter when I’m in a browser.

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by helij on Friday December 16, 2022 @06:59PM (#34022386)
Really depends. At our company there's no expectation that you'll answer Slack messages in real time.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by throwaway_au_1 on Friday December 16, 2022 @10:40PM (#34024334)
IMHO expecting synchronous behaviour from asynchronous tools is flawed way to operate; I'd be very comfortable taking a stand against manning these communication channels at all times.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by interroboink on Friday December 16, 2022 @07:09PM (#34022475)
Me too, more or less!

Workspace 1: main project, development #2: secondary project, if any #3,4: wildcards, depending on what I need #5: VM management #6: remote screen sessions, admin stuff #7: music #8: email, communications

FireFox browser profile for main work stuff has redirects to keep me off of reddit, etc.

Multi-desktop-crew unite (:

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by bob_theslob646 on Friday December 16, 2022 @09:00PM (#34023518)
This is an interesting take. What type of virtual desktop do you use?
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by tra3 on Friday December 16, 2022 @10:44PM (#34024362)
macOS has it built in, as does windows. There’s a mention of yabai upthread which takes it to the next level.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by civilized on Friday December 16, 2022 @10:05PM (#34024013)
I don't know how anyone lives without this. I have six desktops on my MBP with a similar organization:

1. Communication apps

2. Project management, todo lists

3+. Data science and work tools - RStudio, Excel, etc

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by generic_dev_47 on Saturday December 17, 2022 @06:12AM (#34026805)
Thanks for explaining the reasoning of the left to right ordering, makes total sense! Will try this setup on Monday :-)
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by civilized on Saturday December 17, 2022 @12:25PM (#34029917)
Yeah, I think for multiple desktops the key is a stable organization. Otherwise there's a lot of frustration because much of what you're doing is not on your current desktop and you're going to be hunting for it, and where is it this time?

The left-to-right principle also helps with the organization of the work desktops, which is more fluid and project-dependent.

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by johntash on Saturday December 17, 2022 @05:43PM (#34033053)
Do you tile your windows as well, or just keep one-ish app in each desktop? I.e. do you switch between desktops and windows all the time, or only between desktops usually?
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by civilized on Saturday December 17, 2022 @06:08PM (#34033233)
I don't really tile but it might be mostly because of lack of imagination. Sometimes I manually tile two windows side by side, like if I'm scrolling through something and taking notes on it on the side.

RStudio is tiled by design, and that is super helpful.

Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by sacnoradhq on Saturday December 17, 2022 @02:47AM (#34025749)
Desktops, monitors, or any amount of tech doesn't solve the organizational problem of constantly interrupting employees with excessive distractions.
Re:Ask HN: I have diagnosed ADHD and cannot work with Slack ... by taneliv on Saturday December 17, 2022 @02:52AM (#34025783)
Super interesting! I've had pretty much the exact same division of virtual desktops for many, many years. Small variation in what is on the desktops, but it's more like, 40 years old editor instead of VSCode and Jupyter notebooks instead of Excel. The intent of the distinct desktops is very, very similar.