TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: How to make my macOS less distracting?

48 pointsby tomcat27over 3 years ago
I want to get into a zone solving interesting problems. Sometimes that involves think deeply on research papers, practice algorithmic questions, writing on something, building a prototype, or simply allow mind to day-dream.<p>I gotta say, I&#x27;ve been unsuccessful at consistently doing any of these things. Then one time I went to a buddhist monastery for a weekend leaving tech behind. That was a revelation. Time to time I had the urge to look at phone I didn&#x27;t have, but soon felt like a blessing.<p>When I look at my computer, I see a device not designed to help me with these goals. I constantly check email, messages, read toxic forums which I guess is partly because of being alone and lonely. Hard to make friends after college. Seems impossible to make good ones.<p>I wonder what you think about getting my box in order.

40 comments

Casteilover 3 years ago
&gt; When I look at my computer, I see a device not designed to help me with these goals. I constantly check email, messages, read toxic forums which I guess is partly because of being alone and lonely. Hard to make friends after college. Seems impossible to make good ones.<p>This doesn&#x27;t sound like a computer problem so much as an attention &#x2F; habitual problem (perhaps even addiction to the noted distractions). That said, there are numerous aspects of MacOS designed specifically for this...<p>1. MacOS has its do not disturb functionality, use it.<p>2. You can also hide your dock so you&#x27;re not seeing those pesky red dots constantly.<p>3. Leverage the virtual desktop functionality of your OS. On MBPs, 4-finger swipe functionality makes it extremely smooth to switch between desktops and use &quot;Mission control&quot; to peek at your open apps for a given desktop.<p>Have one virtual desktop set up for browsing&#x2F;communication apps (Safari or Edge + slack, discord, email, etc), then additional virtual desktops for your other, more focused tasks, e.g. your text editor of choice, design software, cad software, or whatever else.<p>On my &#x27;main&#x27; virtual desktop, I use Rectangle (window position management) to have Edge on half the screen, with chat applications on the right upper&#x2F;lower quarters). Then on my second virtual desktop I&#x27;ll have VS Code on half the screen, and Terminal &#x2F; Finder in the quarters on the right, Maximized Fusion360 on the third, etc...
评论 #30045577 未加载
AndrewSwiftover 3 years ago
• Option click in the top right corner of the screen to enable do not disturb.<p>• use Spaces and put all the chattery apps in one Space (right click in Dock &gt; only this space)<p>• Hide the Dock<p>• Set cmd-lower right corner of screen (in screensaver prefs) to turn off screen, so you can easily create a void when you need to think<p>• Turn off all extra toolbars in programs, reduce visual clutter as much as possible<p>• Hide Desktop icons (simple Terminal command, Google it)<p>• Use Sticky Notes App to jot down quick thoughts — you can get in and out instantly<p>• Launch apps w&#x2F; Spotlight (cmd space) so you don&#x27;t see cluttered Dock or Launchpad or Apps folder<p>• Solid color dark gray desktop so it&#x27;s not a distraction<p>• Mute the computer<p>• Accessibility &gt; display &gt; reduce transparency makes the system more bland<p>• prefs &gt; general set graphite accent color
评论 #30045274 未加载
ksecover 3 years ago
I am not sure what iMac has to do with it?<p>Do you mean how to make your <i>macOS</i> less distracting?<p>Hide your Dock, Dark Mode ( if that is your thing ), go into Full Screen Mode. Make your Apps act like a Full Screen Single purpose program.
execatover 3 years ago
&gt; I want to get into a zone solving interesting problems.<p>I know this question is about macOS, but you could consider how to have this method implemented in your Mac. I recently installed FreeBSD on my MBP 2015 since it was quite dead anyway. The wifi on it doesn&#x27;t work, I haven&#x27;t tried to see if Bluetooth works, but it feels like my computer in 1998-2005. This has become my primary driver to learn new technologies.<p>I have a USB wifi adapter that I can use to get temporary Internet connection. I usually use it to download PDFs of books I am using to learn, or to load a full HTML formatted book, and disconnect the adapter. This has also made me a more structured learner because I have to think of all the sites I need open before I disconnect the adapter. My learning process has never been this efficient in so long. Also, keep your phone away, or check once every 25 mins using Pomodoro app.<p>In the first 2-3 days, I instinctively used to open a new tab and just try visiting Twitter (I am also not logged in to any of my accounts on this machine) only to be greeted by a &quot;no connection&quot; screen.<p>Also, going through the solutions in other comments, I think the easiest thing to control is to turn off Internet access -- no additional software required.<p>&gt; constantly check email, messages, read toxic forums<p>I think no Internet during the phase of learning is the perfect solution for this. I had very little issue with this on (non-Internet) computer applications but websites&#x2F;forums are much more addictive in nature as opposed to applications IMO.
seanhunterover 3 years ago
I use hammerspoon (<a href="https:&#x2F;&#x2F;www.hammerspoon.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.hammerspoon.org&#x2F;</a>) and have a section in my ~&#x2F;.hammerspoon&#x2F;init.lua that puts things into &quot;focus mode&quot; where it centers my current focussed window and minimizes everything else. If I used notifications (I turn them all off all the time) I would put it into do not disurb mode during this time also. Here&#x27;s a snippet that does this:<p><pre><code> focusTimer = nil -- A timer for when we are in &quot;Focus Mode&quot; function focusModeOff() all = hs.window.allWindows() for _, w in pairs(all) do if(w:isMinimized()) then w:unminimize() end end applyStandardLayout() if(focusTimer ~= nil) then focusTimer:stop() focusTimer = nil end end -- Focus mode function focusMode() if(focusTimer == nil) then hs.alert(&quot;Setting focus for 25mins.&quot;) local focused = hs.window.focusedWindow() if(focused ~= nil) then focused:centerOnScreen() end all = hs.window.allWindows() for _, w in pairs(all) do if(focused ~= nil and w:id() ~= focused:id()) then w:minimize() end end focusTimer = hs.timer.doAfter(25 * 60, function() focusModeOff() hs.alert(&quot;Take a 5min break. Record what you just did.&quot;) --TODO: Make a pomodoro recording thing end) else local remaining = focusTimer:nextTrigger() local remainingSec = math.floor(remaining % 60) local remainingMin = math.floor(remaining &#x2F; 60) hs.alert(&quot;Focus timer expires in &quot; .. remainingMin .. &quot;m &quot; .. remainingSec .. &quot;s.&quot;) end end --focus mode hs.hotkey.bind({&quot;cmd&quot;, &quot;ctrl&quot;}, &quot;Return&quot;, focusMode)</code></pre>
jksover 3 years ago
Here&#x27;s one macOS-specific tip: I want to use Facebook to connect with some relatives and friends, but I don&#x27;t want to be drawn to it all the time. I have set up another account on my Mac, but in greyscale mode (System Preferences, Accessibility, Display, Colour Filters, Greyscale). I have logged into Facebook in a browser in that account and not in my main account, and I don&#x27;t keep my Facebook credentials in my usual password manager. I find that having to go through Fast User Switching and enter a password adds enough friction that I don&#x27;t mindlessly open Facebook, and the greyscale mode makes it sufficiently less fun to browse the web that it is easy for me to stop after doing what I was going to do.
JKCalhounover 3 years ago
I find it is the internet that is the problem. When I&#x27;ve had my laptop on the road and no connectivity, I have no choice but to create on the device. Fortunately too I keep a number of projects on the machine for such occasions. Photos to sort, a backlog of old magazines (in PDF form) I want to peruse, code projects, etc....<p>I remember the 90&#x27;s, having to delete solitaire games from my computer because I wasted too much time playing them. Now with the web always there....<p>Also, morning walks are good. Leave the phone at home (I only take the cellular-less Apple Watch with me that is recording my &quot;workout&quot;).
评论 #30043937 未加载
Syonykover 3 years ago
SelfControl app [0]. Give it a list of sites you wish to block, email providers, etc, and it&#x27;s a bit of a pain to work around unless you really know MacOS networking deeply or cheat and search for it. You can increase the block length time with some quick tweaks.<p>Use the Accessibility Color Filters to make your machine greyscale. Works fine. Reduces brightly colored distractions.<p>But... really, read Cal Newport&#x27;s stuff on Deep Work and stop using a computer for a lot of those tasks.<p>[0]: <a href="https:&#x2F;&#x2F;selfcontrolapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;selfcontrolapp.com&#x2F;</a>
georgewsingerover 3 years ago
Partial solution[1] that may be of interest: working in VR instead of a laptop <a href="https:&#x2F;&#x2F;simulavr.com&#x2F;blog&#x2F;why-vrcs-are-better-than-pcs-and-laptops&#x2F;" rel="nofollow">https:&#x2F;&#x2F;simulavr.com&#x2F;blog&#x2F;why-vrcs-are-better-than-pcs-and-l...</a><p>There are two reasons VR computing can be less distracting than PCs&#x2F;Laptops. The first is that they block out external distractions:<p>&gt; VR Computers are like &quot;high-quality, noise-cancelling headphones for your eyes&quot;. They&#x27;re especially good for distracting work environments, and when you want to signal to you and your coworkers that you&#x27;re &quot;locked down and focused&quot;.<p>The second is that VR UX (at least for Simula) is very bare-bones and simple at this stage of its development. There aren&#x27;t a ton of bells and whistles and notifications built into the OS to distract you from your core work.<p>[1] Working in VR isn&#x27;t a total solution to distraction (it doesn&#x27;t prevent you from browsing Twitter all day, etc). But it does have some nice features built into it that can make it less distracting.
halotropeover 3 years ago
The closest one can reasonably get to the late 90’ power user desktop experience is getting Linux. In my experience MacOS and Windows have just so many nags and distractions built in. They are great digital assistants and platforms but not necessarily the best tools anymore. That being said it is much easier to switch for developers than other professions.
notapennyover 3 years ago
Part of it you won&#x27;t be able to fix by making changes to your device, because its you. You can take away all the distractions, but you&#x27;re a human being, you will be looking for them at some point and you need to be able to stop yourself at that time.<p>For me, the following has helped:<p>* Turn off all notifications, that means on all devices.<p>* Leave your phone in silent mode, better yet hide the screen from your view so you don&#x27;t see incoming notifications<p>* Log out of any social media, for me having to log in and do 2FA again is usually the barrier where I remember why I was logged out in the first place<p>* People have said it but set your dock on auto-hide, you can also turn off the red dots on most applications<p>* Tons of apps now allow you to go full screen, some writing apps are super minimal, so you really only see text.<p>* I use a pomodoro timer if I need real focus, there&#x27;s videos on YouTube that will also just run 45 mins then have 15 minute break, though that might be too distracting an environment initially.
godDLLover 3 years ago
If you sit and don&#x27;t engage your reptilian moving-about system it will engage anyway. You&#x27;ll be looking for distractions in front of you. And then you&#x27;ll be stuck on those, tripping out.<p>On the other hand if you were to step out for 15 minutes and then come back, just walking and looking around, thinking of what you&#x27;ll be doing when back at the computer; then when you&#x27;re back you&#x27;ll have something to do. Good luck not getting stuck doing that. Because you will.<p>Turn off all notifications, time-box all calls and emails to twice a day, and reduce the use of color in the UI. Don&#x27;t let yourself be prompted into getting stuck on something. You have your own agenda and the world around you can manage for 3-4 hours without your input. It really can. Make sure it can.<p>Being prepared is half the job.
skinkestekover 3 years ago
Earlier I used the hosts file extensively on my devices to nuke time wasting web sites from my work zone.<p>On Mac I also used to use a program called vitamin-R which helped me somewhat back im the day, but it doesn&#x27;t make the computer less distracting, only helps me cope with it. (Yes, it still exists, I was pleasantly surprised that it still existed when I got a Mac mini last year after being away from Macs for almost a decade. Now if someone could recreate Alarms, the visual countdown program I used until it broke on Snow Leopard I&#x27;d probably happily pay for it again.)<p>With reference to toxic forums, as the saying goes: it is not a problem if the submarine is in the ocean but a big problem if the ocean is in the submarine. Stick to places where your hull tolerates the pressure and where you can do something useful.<p>I&#x27;ve seen plenty of nasty posts the places I go and I can also say I and others have succeeded somewhat in flagging and smacking down trolls and (actual) nazis that at least one place that used to be ugly is now somewhat safe (i.e. no complaints anymore about Hitler dying to young after articles about the middle east).
tanelpoderover 3 years ago
I sometimes print out papers that I want to thoroughly understand. Read on the couch when feeling chilled out enough - reading the same papers on a computer or iPad always has more intensity, feeling like I have to finish the reading as quickly as possible, so that I could switch back to checking email or twitter…
评论 #30044176 未加载
inospeakover 3 years ago
&gt; I guess is partly because of being alone and lonely. Hard to make friends after college. Seems impossible to make good ones.<p>This is something you&#x27;re going to want to solve eventually. You recognise these are what you long for when you engage in behaviour that distracts yourself. I would strongly recommend doubling down and solving your loneliness and belonging problem (and i realise its not easy. I struggle with it too. But you have to start somewhere and it gets better. Use the internet, use your head, solve it little at a time)<p>Take care of your needs and the tendency to escape reality will slowly subside and this will likely be the most sustainable solution.<p>Of course you&#x27;re also going to want to incorporate the countless suggestions here which give you a more hands on approach to tweaking your OS and your environment to maximise focus.
gnicholasover 3 years ago
Hiding the dock is very helpful for me. You can also use DND or simply close applications like Mail to avoid distractions.<p>Using apps in full screen mode helps also. I use spaces for web browsing, communications, writing, etc. so that I&#x27;m not constantly bombarded by irrelevant windows.
afrazkhanover 3 years ago
I&#x27;m glad you asked :D<p>Having all notifications go through the Macs native Notifications is great, because now I have only a single place to ignore. I effectively set Notifications to &quot;off&quot; by setting a schedule of 4:00am until 3:59am. When I want to check notifications (which is almost never) I simply enable Notifications temporarily with a shortcut on the touchbar.<p>The only thing that remains is non-native notifications like Java&#x27;s &quot;Update now or the world ends!&quot;. Window focus stealing is completely unacceptable, and I suspect the reason Apple does nothing to fix it is to coerse you into using full screen, which I think is grooming you for their locked down iOS-like world for the Mac.
pacifikaover 3 years ago
Change your behaviour by making it harder &#x2F; more involved to access the distracting apps you need:<p>- use slack in the browser so you need to type in its address<p>You can think of other creative things like:<p>- use automation to only allow mail when some other app is running so now you start two apps?<p>- run messages under a second user account?<p>- slower browser in a vm for social media sites?<p>The sky is the limit. The key is to make it still possible to use the app, just more involved, breaking the habit.<p>The final advice from me is to write down what you are going to do and write down the currrbt situation and the approach you’re going to take, then all that’s left to do is act on it which sets up a nice internal focus mode
ladinoover 3 years ago
1.) command + option + d to hide the dock<p>2.) Camouflage App to hide desktop elements: <a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;de&#x2F;app&#x2F;camouflage&#x2F;id445264274?mt=12" rel="nofollow">https:&#x2F;&#x2F;apps.apple.com&#x2F;de&#x2F;app&#x2F;camouflage&#x2F;id445264274?mt=12</a><p>3.) <a href="https:&#x2F;&#x2F;selfcontrolapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;selfcontrolapp.com&#x2F;</a> - to block sides like Facebook system wide for some time!<p>4.) <a href="https:&#x2F;&#x2F;heyfocus.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;heyfocus.com&#x2F;</a> to play the complete game :)
brailsafeover 3 years ago
Maybe the problems aren&#x27;t as compelling as you&#x27;d like to imagine they are. I had this problem for a long time, always reading such and such thing because I felt like it should be important. But then I realized none of it really mattered at all, not even email mostly, and I just try and do one or two things that have a tangible value. So email stays closed, and I chat with people in moderation. The other tool I&#x27;d really recommend is SelfControl, which allows you to block everything you don&#x27;t want to engage with.
jlturnerover 3 years ago
Don’t connect to the internet. If you need it for reference or reading, gather it before your “work session” where you want to get in the zone. If you need Internet (ie for what you are working on) simply don’t open a browser, or if you need it for work as well, don’t open other tabs.<p>I always take a laptop camping, but it’s a outdoor converted (Pixel Qi display) circa ‘08 netbook. Its slow but fast enough, and I do a lot of great work on it, distraction free with no internet connection in the woods.
samwillisover 3 years ago
Having been there I found there are two side, removing distractions and mentally retraining yourself. The latter takes time.<p>To remove distractions I have turned off all notifications (you don’t need them), declutterd my desktop (delete unnesesry apps, remove distracting ones you still need from the dock on macOS). The biggest for me though was blocking sites like Reddit, just point them to the loop back ip in your host file, no need for clever blocking software, just pertinently block them.
onion2kover 3 years ago
<i>read toxic forums</i><p>Harsh but fair.<p>More seriously, just turn the computer off. Print papers to read, write notes when you&#x27;re thinking rather than typing them, and use your time <i>actively</i>.
vemvover 3 years ago
I have a macOS-specific script to help me focus. I had it in mind for years, finally went and implemented it and coudldn&#x27;t be happier these days, as far as productivity goes.<p>You might find some interesting ideas and links in the README which is quite generously verbose.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;reducecombine&#x2F;work.sh" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;reducecombine&#x2F;work.sh</a>
incanus77over 3 years ago
One rule I&#x27;ve started using on my devices is to deny notifications when a new app first asks unless the notifications are a key part of why I&#x27;m using the software. If something comes up later where you wish you had notifications, just turn them on.<p>Taking this approach has radically changed how distracting my computing environments are.
_haoover 3 years ago
Somewhat related, but I&#x27;d recommend you to read Digital Minimalism by Cal Newport. I was already underway of doing some of the things he proposes before finding that book because I also felt that this machine I have grown up with is actually eating my precious time away. He proposes very concrete steps and I&#x27;ve pushed things a bit further for myself after reading it.
codeptualizeover 3 years ago
Have you considered therapy? It sounds like you might benefit from it.<p>If that&#x27;s a bit too much, maybe try pomodoro or similar techniques. Basically create small achievable goals for yourself; &quot;I&#x27;m going to read 10 minutes without distraction&quot;, &quot;I&#x27;ll practice one question&quot; etc. After you could reward yourself with a 5-10min distraction break.<p>Also maybe try mindfulness.
tomcat27over 3 years ago
I was thinking to install Ubuntu, to get rid of addictive stuff, make it harder to go beyond bare bones writing, coding and reading.
评论 #30044084 未加载
评论 #30044013 未加载
评论 #30044041 未加载
betadreamerover 3 years ago
A lot of solutions here involves diving deeper into tech. I don’t think this is a good idea since you will start going down a similar rabbit hole.<p>This is a focus problem. Everyone have a different way of solving this. For me, the best way is to write what I want to achieve on paper and start doing it right away. I don’t do anything else until I cross out all of them.
soheilover 3 years ago
I think every computer should have a paper and pencil mode. Where it reduces all its functionality instantly to that of a piece of paper and pen (well maybe a keyboard instead of a pen.) Once it that mode it should stay there for at least 30mins or x mins without a way to force it out of that mode (well at least not without a serious amount of work.)
pkdpicover 3 years ago
$ defaults write com.apple.finder QuitMenuItem -bool true<p>then quit the finder... forever : p<p>Seriously changed my relationship to mac os. As semi-non-voluntary mac user from 199X to present. It used to be a love-hate relationship. Now macs are just aesthetically appealing unix hardware vectors.<p>Idunno Im sure some other HN entities have smarter thoughts on this.
beebmamover 3 years ago
I&#x27;d recommend talking to a therapist. If you&#x27;re behaving in a way that you find self-destructive, a therapist can help. Good luck and I wish you the best in your efforts
learningmoreover 3 years ago
Lots of options out there. I’ve found the iOS focus option helpful, as well as groups with fellow ADHDers. Counseling, meds, meetup groups. All the boring, standard stuff.
sorokodover 3 years ago
I think that the first line of defense should be you rather than a macos app.<p>A self discipline is something that needs to be built up and exercised over time.
dkjaudyeqooeover 3 years ago
What you need is Self Control: <a href="https:&#x2F;&#x2F;selfcontrolapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;selfcontrolapp.com&#x2F;</a>
freedom2099over 3 years ago
It’s called self discipline! When I am working and focused on something I ignore everything else… no mails, no massages no notifications!
sAbakumoffover 3 years ago
Your question is completely wrong. Instead you should ask:<p>How to stop my mind from being a monkey jumping from one distraction to another?<p>The answer is simple - meditation
sidcoolover 3 years ago
I use the Freedom App for my phones, tablets and laptops
dhruvmittalover 3 years ago
Not iMac specific, but if your focus issues are similar to mine maybe some of the typical ADHD hacks might help. I think a lot of other folks I know (especially SWEs) that I know do things like this, but everyone has their own system that kind of works for them.<p>- Get rid of as many of the notifications as you can. Quit or log out of desktop email, discord, messages, whatever. Stuff shouldn&#x27;t intrude when you&#x27;re trying to focus. The relationship I try to have with social media is that I check it, it shouldn&#x27;t check me.<p>- Instead of cutting distractions completely out of my life, I set aside specific times and places for them. I usually browse forums and things for about 30 minutes while I sip coffee in the morning, and then I&#x27;m done until just before bed. I find that making that place means I don&#x27;t really get the urge to check the forums intruding into my workday. Sometimes if there&#x27;s high drama or if I&#x27;m having a really pleasant interaction it might intrude, but I try to keep that confined to lunch.<p>- When I&#x27;m at work, I check Outlook near the bottom of each hour to see if there&#x27;s anything I need to deal with, and when I&#x27;m done I close the program. This frequency works for me because nobody typically emails me about something that needs to happen asap, your mileage might vary. I usually leave a single, less-distracting &quot;work channel&quot; open. In my case, that&#x27;s Zoom. If someone needs to message me on this, it&#x27;s a work thing and it&#x27;s not really a &quot;distraction&quot; to me. Nobody really messages me for fun on it, anyway.<p>- At home, when I&#x27;m working on classwork using my own computer, I just &quot;get rid of&quot; everything. Shut off all the desktop notifiers. Since Chrome&#x27;s logged in to all my gmail&#x2F;twitter&#x2F;whatever accounts, I switch to Firefox to get stuff done. I haven&#x27;t put the Bitwarden add-on to Firefox, so it&#x27;s just mildly more difficult to log in and get distracted. While the barrier isn&#x27;t really that much higher, it&#x27;s just enough that I have to think twice before letting myself get sidetracked. Opening reddit and finding myself logged out is enough to remind me that I did this on purpose, and taking any more steps to pursue that distraction just feels like losing which is usually enough to dissuade me. I think there&#x27;s &quot;focus&quot; software you can use to enforce your rules if you need a higher barrier?<p>- I do Pomodoro splits when I have trouble motivating myself to focus. It&#x27;s easier to make a small promise to try for 25 minutes than it is to make the large promise to focus for a few hours. A lot of the time I find that it just takes getting started to actually get interested, and then I don&#x27;t need the crutch to keep going. I use a physical timer for this because it&#x27;s less to fiddle with on my computer i.e. alt-tabbing, using the computer at all if I&#x27;m trying to read a textbook, etc.<p>- I try not to put my phone on the desk when I&#x27;m working &amp; I don&#x27;t wear a smartwatch. I gave the smartwatch thing a shot a while back since people were saying they were less distracting than a phone but I found the notifications really intrusive and distracting. The phone&#x27;s usually in my pocket on do not disturb at work, with a few specific people who I usually do want to talk to allowed through. I&#x27;m okay with getting a little distracted if my girlfriend texts me at work.
Flankkover 3 years ago
A bad workman always blames his tools.
评论 #30044559 未加载
评论 #30044406 未加载