{"id":18697697,"url":"https://github.com/federicoceratto/nim-libnotify","last_synced_at":"2025-04-09T16:18:58.162Z","repository":{"id":2321344,"uuid":"46237543","full_name":"FedericoCeratto/nim-libnotify","owner":"FedericoCeratto","description":"A minimalistic libnotify wrapper","archived":false,"fork":false,"pushed_at":"2022-06-10T17:46:43.000Z","size":33,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-09T16:18:51.920Z","etag":null,"topics":["libnotify","nim","nim-lang","nim-libnotify","notifications"],"latest_commit_sha":null,"homepage":null,"language":"Nim","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/FedericoCeratto.png","metadata":{"files":{"readme":"README.adoc","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-15T21:51:52.000Z","updated_at":"2023-10-14T17:44:03.000Z","dependencies_parsed_at":"2022-08-18T01:55:17.085Z","dependency_job_id":null,"html_url":"https://github.com/FedericoCeratto/nim-libnotify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoCeratto%2Fnim-libnotify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoCeratto%2Fnim-libnotify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoCeratto%2Fnim-libnotify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/FedericoCeratto%2Fnim-libnotify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/FedericoCeratto","download_url":"https://codeload.github.com/FedericoCeratto/nim-libnotify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065282,"owners_count":21041872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["libnotify","nim","nim-lang","nim-libnotify","notifications"],"created_at":"2024-11-07T11:25:20.294Z","updated_at":"2025-04-09T16:18:58.142Z","avatar_url":"https://github.com/FedericoCeratto.png","language":"Nim","funding_links":[],"categories":[],"sub_categories":[],"readme":"### nim-libnotify\n\nA minimalistic libnotify wrapper for Linux desktop notifications written in Nim.\n\n#### Installation\n\n.You need to install libglib2:\n[source, bash]\n----\nsudo apt install libglib2.0-0\n----\n\n.Then run:\n[source, bash]\n----\nnimble install libnotify\n----\n\n#### Usage\n[source, bash]\n----\nimport libnotify\n\nwhen isMainModule:\n  let n = newNotifyClient(\"foo\")\n  n.set_app_name(\"hello\")\n\n  n.send_new_notification(\"low\", \"no big deal\", \"file://usr/share/icons/gnome/scalable/apps/user-info-symbolic.svg\",\n    urgency=NotificationUrgency.Low, timeout=1)\n\n  n.send_new_notification(\"normal\", \"hm\", \"STOCK_YES\",\n    urgency=NotificationUrgency.Normal, timeout=2)\n\n  n.send_new_notification(\"crit\", \"uh-oh\", \"STOCK_NO\",\n    urgency=NotificationUrgency.Critical, timeout=3)\n\n  n.uninit()\n  echo \"done\"\n----\n\n#### Testing\n[source, bash]\n----\ncd .nimble/pkgs/libnotify-\u003cversion\u003e \u0026\u0026 nim c -r test_libnotify\n----\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericoceratto%2Fnim-libnotify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedericoceratto%2Fnim-libnotify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericoceratto%2Fnim-libnotify/lists"}