You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,7 @@
1
1
# Hyper Focus
2
2
3
+

4
+
3
5
Hyper Focus is a command line tool that watches what you are doing on your computer and prevents you from doing distracting things.
4
6
5
7
It allows you define what "distracting things" are for you. For example, you might want to prevent yourself from using social media between 9am and 5pm. Or making certain google searches. Or using specific macOS applications. You can define what activities are distracting on a schedule.
@@ -153,16 +155,20 @@ Having a first wake script allows you to tie into something like [clean browsers
153
155
154
156
Instead of UI, I've opted to a simple HTTP API that can be used to power a [Raycast](https://www.raycast.com/iloveitaly/hyper-focus)-based UI.
155
157
158
+
-`/reload` reload the configuration file
156
159
-`/pause` pause the currently running schedule
157
160
-`/override` force a blocking profile to run for a period of time
158
161
-`/ping` is this thing on?
159
162
-`/configurations` array of names of all blocking profiles. To change the order of the results, change the order of the inputs in your config file.
160
163
164
+
You can hit the API locally for testing using: `http localhost:9029/status`
165
+
161
166
## Development
162
167
163
168
- Run the binary manually `swift run`
164
169
- Copy local config `cp ./config.json ~/.config/focus/config.json`
165
170
- Generate a new release `git tag v0.1.3 && git push --tags origin HEAD`
171
+
- Delete last tag remotely and locally `TAG=$(git describe --tags --abbrev=0); git tag -d $TAG; git push --delete origin $TAG`
0 commit comments