Skip to content

Commit

Permalink
Added trouble shooting section
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandoks committed Oct 18, 2023
1 parent edbb75f commit 93025eb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ To update, you can just `git pull` inside of `~/.hammerspoon/hammer-control` dir
git pull
```

Remember to reload [hammerspoon](https://github.com/Hammerspoon/hammerspoon) config after pulling.

## Usage

### Blocklist
Expand Down Expand Up @@ -143,3 +145,7 @@ uses as the blacklist. _Ideally_, the path to the `.selfcontrol` file is absolut
location from the home (`~`) directory.

**NOTE:** The hour needs to be 2 digits. `2:00` won't work. `02:00` will work.

## Troubleshooting

- Restarting your system may help
2 changes: 1 addition & 1 deletion selfcontrol.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ local function selfControlCallback(exit_code, std_output, std_error)
print(std_output)
if exit_code == 0 then
print("SelfControl started")
hs.alert.show("SelfControl started")
hs.alert.show("SelfControl started", 2)
elseif string.match(std_error, "Blocklist is empty, or block does not end in the future") then
local block_file_attributes = hs.fs.attributes(BLOCK_FILE)
if not (block_file_attributes and block_file_attributes["mode"] == "file") then
Expand Down

0 comments on commit 93025eb

Please sign in to comment.