You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
278 B

  1. #pragma once
  2. //#include <libnotify/notify.h>
  3. #include <string>
  4. const std::string exec = "notify-send";
  5. namespace util {
  6. uint notify(std::string summary, std::string body /* */) {
  7. std::string cmd = exec + " " + summary + " " + body;
  8. return system(cmd.c_str());
  9. }
  10. }