DEV Community

Lloyd
Lloyd

Posted on

Resetting your Room

Think of your Desktop as your Room. Got it, great!

Ok now setup your clear script that will remove all social media, outlook, teams, slack, any electron app. Now before you leave for the coffee you need to start your coding run that script.

Windows version

Here's a list of all tasks running in command line.
tasklist

Now all we are going to do is add the executables that are associated with distraction and create time confetti.

Here's my top five
taskkill /f /im chrome.exe
taskkill /f /im outlook.exe
taskkill /f /im slack.exe
taskkill /f /im teams.exe
taskkill /f /im code.exe

and save that file as clear.bat or better yet reset-the-room.bat

Remove the /f if you want a prompt to give the program a changes to prompt you to save anything.

Now you have a way of resetting the room. Make sure you reset the physical room as well. And go to a greenspace every now and then.

Top comments (0)