Skip to content

Slaps 0.4.0

Choose a tag to compare

@sam-phinizy sam-phinizy released this 13 Nov 14:14

A card at the side

A fourth alert style, beside full screen and the banners: a card in the top right of your main screen, under the menu
bar, like a notification that stays until you deal with it. It leaves your keyboard and the rest of the screen alone.
Choose it in Settings › General › Style.

Alerts you can answer

Other apps can now put buttons on their alerts, and Slaps opens that app's link with the one you press. Boiler Room
uses this: when one of your scripts asks "Rotate the key?", you can say Yes or No from the alert itself.

For apps and scripts that send alerts:

  • actions=Yes,No with a callback URL puts answer buttons on an alert. An alert can keep its link beside them.
  • id= names an alert: one sent again with the same id takes the old one's place, and slaps://dismiss?id= takes
    back just that one.
  • style= gives one alert its own style: fullscreen, banner, top, bottom or side.
  • Links and buttons open web pages, or apps Slaps knows answer alerts (Boiler Room for now).

A command line

slaps alert "Deploy done" --in 5, slaps dismiss --id q3, slaps pause --minutes 30, and slaps help for the rest.
Settings › General › Command line puts slaps in ~/.local/bin.