1
0

initial commit

This commit is contained in:
2026-02-25 21:51:27 +01:00
commit 863063f124
15 changed files with 1330 additions and 0 deletions

25
Notifications.cs Normal file
View File

@@ -0,0 +1,25 @@
using System.Diagnostics;
namespace Toak;
public static class Notifications
{
public static void Notify(string summary, string body = "")
{
try
{
var pInfo = new ProcessStartInfo
{
FileName = "notify-send",
Arguments = $"-a \"Toak\" \"{summary}\" \"{body}\"",
UseShellExecute = false,
CreateNoWindow = true
};
Process.Start(pInfo);
}
catch (Exception ex)
{
Console.WriteLine($"[Notifications] Failed to send notification: {ex.Message}");
}
}
}