Live data from Hacker News

How to force yourself to leave the computer using the leave command

stefanjudis.com

21–30 of 34 posts

Re: How to force yourself to leave the computer using the leave command

#21

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…

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 ‘’’

Re: How to force yourself to leave the computer using the leave command

#22

I'd like something I could use to lock me out of everything but a whitelisted set of programs & websites for a set period of time. I can't tell you what a relief it would be to have little choice but to focus on work tasks instead of get distracted. Sure, I would need to have the key to the lock in case I really needed it, but it would need to be something mildly time consuming, like answering a set of relatively sim…

I've found this problem WFH. At work all social media is blocked but at home its a huge distraction.

Re: How to force yourself to leave the computer using the leave command

#23
post #16

Earlier quoted context omitted.

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 every…

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…

Could you do you something like

alias brew='sudo -u personalaccount brew'

Re: How to force yourself to leave the computer using the leave command

#24

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…

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.

Re: How to force yourself to leave the computer using the leave command

#25
Not exactly the same use case but there's also `at` for generic one-time scheduling. For example, to send a notification at a specific time you can use:

  echo "notify-send 'Tea is ready'" | at 15:30
To view and edit your currently scheduled jobs there are `atq` and `atrm`.

Re: How to force yourself to leave the computer using the leave command

#26

I'd like something I could use to lock me out of everything but a whitelisted set of programs & websites for a set period of time. I can't tell you what a relief it would be to have little choice but to focus on work tasks instead of get distracted. Sure, I would need to have the key to the lock in case I really needed it, but it would need to be something mildly time consuming, like answering a set of relatively sim…

[deleted]

Re: How to force yourself to leave the computer using the leave command

#27

Earlier quoted context omitted.

I use ColdTurkey, you can block any website or program you want on a schedule, or on a timer. You can add breaks, allowances and Pomodoro style setups. You can remove them whenever you want, but you can add a password I believe, or choose the option to be unable to remove the block while it is active(if you do this, make sure you leave a way to delete it). I too wanted something like that, must solve an equation or s…

Any suggestions for iOS?

I use Forest. It doesn’t actually lock you out, but I’m reminded not to look at my phone when I start a timer.

https://www.forestapp.cc/

Re: How to force yourself to leave the computer using the leave command

#28

I'd like something I could use to lock me out of everything but a whitelisted set of programs & websites for a set period of time. I can't tell you what a relief it would be to have little choice but to focus on work tasks instead of get distracted. Sure, I would need to have the key to the lock in case I really needed it, but it would need to be something mildly time consuming, like answering a set of relatively sim…

I use ColdTurkey, you can block any website or program you want on a schedule, or on a timer. You can add breaks, allowances and Pomodoro style setups. You can remove them whenever you want, but you can add a password I believe, or choose the option to be unable to remove the block while it is active(if you do this, make sure you leave a way to delete it). I too wanted something like that, must solve an equation or s…

Seconding ColdTurkey. I started using it when I began working from home a few years ago. It’s great for keeping me on track.

Re: How to force yourself to leave the computer using the leave command

#29

Earlier quoted context omitted.

I use ColdTurkey, you can block any website or program you want on a schedule, or on a timer. You can add breaks, allowances and Pomodoro style setups. You can remove them whenever you want, but you can add a password I believe, or choose the option to be unable to remove the block while it is active(if you do this, make sure you leave a way to delete it). I too wanted something like that, must solve an equation or s…

Seconding ColdTurkey. I started using it when I began working from home a few years ago. It’s great for keeping me on track.

Working from home has really been what increased the need for me to have something like this. I was prone to distraction anyway, but now it's 10x worse, especially as I've got kids to keep track of, home schooling etc. It's took easy to have a 2 minute distraction to help my kids and come back to my computer and say "well let me just check out X" before I get back to work

Re: How to force yourself to leave the computer using the leave command

#30
post #16

Earlier quoted context omitted.

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 every…

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…

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.

Post reply on HN