Powershell script for timebox/pomodoro/deepwork (15 minute sessions)

usecase

1. idea: simply start-job && start-sleep

2. script

function start-dive {                       
kill -Name msedge -ErrorAction Ignore #01
vlc --intf dummy c:\Users\Admin\Music\rain.mp3 #02
start "C:\Users\Admin\AppData\Local\TogglDesktop\TogglDesktop.exe" #03
Start-Job -ScriptBlock { #04
sleep 900; #05
kill -Name vlc -ErrorAction Ignore #06
$url = "file:///C:/Users/Admin/tools/The%20Most%20Dangerous%20Writing%20App.html#/write?limit=1&type=minutes" #07
start msedge $url #08
ii "C:\Users\Admin\Documents\workspace\SNOW\SNOW-logs\ordo.md" #09
}
cls #10
}

requirements

--

--

Infrastructure Support Engineer/Technical Writer (snowplow.io) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pavol Kutaj

Infrastructure Support Engineer/Technical Writer (snowplow.io) with a passion for Python/writing documentation. More about me: https://pavol.kutaj.com