Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
revelaction authored Oct 19, 2023
1 parent dfe08a3 commit e8a98f1
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,33 +80,35 @@ play_sound()

and uncomment the call to the function in `change_handler`

change_handler()
{
# put commands here that are executed when a change in the pixel happens
# notify_desktop
play_sound
}
```bash
change_handler()
{
# put commands here that are executed when a change in the pixel happens
# notify_desktop
play_sound
}
```

# Customize

Modify the script to run arbitrary commands by first creating a bash function:

my_commands()
{
# my commands
}

Add the function call to the `change_handler` function

change_handler()
{
# put your commands function here
my_commands

# notify_desktop
# play_sound
}

```bash
my_commands()
{
# my commands
}
```

Add the function call to the `change_handler` function:

```bash
change_handler()
{
# put your commands function here
my_commands

# notify_desktop
# play_sound
}
```

0 comments on commit e8a98f1

Please sign in to comment.