Hacker News new | ask | show | jobs
by s_gourichon 2040 days ago
Long story short, this is related to keeping focus when you're working as a freelancer, with the same laptop used for work and personal life.

There's a simple solution that has been working well for me for years: have 2 local accounts on the machine, with everything separated, even different visual themes (like, bright for personal time, grey for professional time), and a different base color, e.g. blue and green.

On principle the pro account has no login on any of the websites where I have a personal account and vice versa. Same for e-mails.

That way, when on the pro account, no personal notification, only professional stuff, and vice versa. Has been helping me being concentrating on pro stuff for the last 4 years.

To be precise, the separation is not totally strict, but it does not have to be 100% to be effective. Visual theme and only relevant notifications make a big part of the benefit.

4 comments

great advise! I am doing this now using Linux/sway and Linux/i3. The i3 (X11 based) I use for work and the sway (where some video conf apps are still not supported) is for playtime. One has a rick+morty theme the other a sober business one.

But for when I still had family and kids this set-up would be not strict enough. Now with WFO everyone is a "freelancer" and work time bleeds into private time. Here is the only thing that worked for me.

1) hardware separation: My private laptop is upstairs, no access to my work world. My work laptop is chained to my work desk.

2) my work desk is in my office

3) my office is downstairs

it has taken me some decades to refine that because initially I was sitting in the living room coding while also attending to my toddler kids. later I started hiding away in the "study" which was in the same flat but another room and I was still reachable to whenever my partner felt like popping in with a questions such as "what do you want for dinner dear?" or "do you think my black shoes go with my grey shirt", etc. After moving I hid away downstairs. In the past years I made sure there is 100% hardware compartmentalization in all my gear, and ideally that also includes modifications to location.

Finally I have managed to train my surrounding so that they no longer ask why I didn't bring a phone. To which I usually respond, so that I can be here in the moment. I don't judge others for doing it but when I sit down for a cup of coffee with anyone or am in a meeting, I would never disrespect them by browsing on my phone while pretending to listen to them.

Even more extreme my partner has stopped sending me updates on messenger because they know I prefer talking about what happened in person, and I do not want to dilute the moment. I've gone from burnt out, unfocused and distracted to in-the-moment, hyperfocused and it had a huge effect on how people treat me and how I remember things (most importantly I am able to form long term memories which multi-tasking has killed).

I decided to try this when I got a new Macbook recently. There are a few hiccups: - Firefox simply does not work in macos after switching accounts. This seems like a completely unacceptable bug, but it has apparently existed for years. - home brew does not seem to expect to be used by two users, so I've had to switch into my personal account to use it. - configuring my os, shell, browser, etc now requires doing everything twice.

So it's not a perfect solution, but overall it's worth the effort.

For anyone interested, the problem with homebrew is it relies on "/usr/local" being owned by the current user to allow installing software without needing a password every time you invoke "brew". Naturally this requires you only use that user to invoke homebrew.

Macports does things in a more conventional way, requiring sudo to elevate privileges to root before installing software, but should also work properly on a multi-user system, whereas homebrew sort of assumes a single-user install.

(I think homebrew has some capacity for being used multi-user -- years back my CS professor had a lab of macs and managed to get this working I believe)

I don't use a Mac, but couldn't you put both users in the same Unix group, set group-write permissions, and set the setGId bit if it's not the default group of both users (chmod g+w -R /usr/local; find /usr/local -type d -exec chmod g+s '{}' \;) ?
Could you do you something like

alias brew='sudo -u personalaccount brew'

I’ve had good results with the following method: https://gist.github.com/claui/ada85e696029cfa8cba9b91723ce2e...
I know it's not a novel complaint but a really dislike this about homebrew, and I think it should be reason enough to opt for Macports if you need a macOS package manager.

It's just so fragrantly violating the Unix model.

It's possible to configure Homebrew to only install stuff in your home folder. But you do need a "manual" installation to achieve it. I have done it.
I've started zapping the X server on my personal computer when I get up in the morning to keep me from checking things like hackernews too often.

It doesn't take too much separation to break bad habits, but it does take some care to maintain the separation.

I tried this but found switching ttys was too easy.
Disable the extra TTYs and then erase this information from your long, medium, and short term memory.

‘’’ for i in {2..6}; do systemctl mask getty@tty${i}.service; done ‘’’