{"id":22840520,"url":"https://github.com/shouya/vigilare","last_synced_at":"2025-03-31T04:28:12.918Z","repository":{"id":233761568,"uuid":"781248469","full_name":"shouya/vigilare","owner":"shouya","description":"X11 idle/sleep inhibition daemon","archived":false,"fork":false,"pushed_at":"2025-02-26T11:45:40.000Z","size":85,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T02:54:29.276Z","etag":null,"topics":["desktop-utilities","eww-widgets","logind","status-bar-indicator","xscreensaver"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shouya.png","metadata":{"files":{"readme":"README.org","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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-03T02:49:55.000Z","updated_at":"2025-02-26T11:45:43.000Z","dependencies_parsed_at":"2024-04-17T10:01:26.383Z","dependency_job_id":"80ca5dcd-2fc7-4d54-b0bf-3b4300c11b3d","html_url":"https://github.com/shouya/vigilare","commit_stats":null,"previous_names":["shouya/wake-guard","shouya/vigilare"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shouya%2Fvigilare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shouya%2Fvigilare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shouya%2Fvigilare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shouya%2Fvigilare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shouya","download_url":"https://codeload.github.com/shouya/vigilare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246417455,"owners_count":20773878,"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":["desktop-utilities","eww-widgets","logind","status-bar-indicator","xscreensaver"],"created_at":"2024-12-13T01:12:27.339Z","updated_at":"2025-03-31T04:28:12.902Z","avatar_url":"https://github.com/shouya.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"* Vigilare\n\nVigilare is a DBus based service to inhibit system sleep for desktop users. I wrote this program because I need a status bar widget that allows me:\n\n- to quickly adjust sleep inhibition time via mouse scroll\n- see the accurate remaining time in the status bar\n- has different ways to inhibit sleep\n\n** Main features\n\n- inhibit sleep modes:\n  + xscreensaver\n  + logind\n  + xfce4 power manager\n  + xfce4 screensaver\n  + simulated mouse activity\n- increase/decrease duration of inhibition\n- set duration of inhibition\n- monitor for real-time remaining inhibition time in json\n- asynchronous, efficient, light on system resources\n\n\n** Installation\n\n#+begin_src bash\ncargo build --release\ncp target/release/vigilare ~/.local/bin\n#+end_src\n\n** Usage\n\nHere's a sample eww widget just for reference:\n\n#+begin_src lisp\n(deflisten vigilare :initial\n  '{\"active\":false,\"mode\":null,\"remaining_seconds\":null,\"message\":\"\"}'\n  `vigilare monitor`)\n\n(defwidget vigilare-toggle []\n  (tooltip\n   (vigilare-toggle-tooltip)\n   (eventbox\n    :cursor \"hand\"\n    :onclick \"(notify-send 'Display off in 2 secs'; sleep 2; xset dpms force off) \u0026\"\n    :onrightclick \"(notify-send 'Suspending in 2 secs'; sleep 2; systemctl suspend) \u0026\"\n    :onscroll \"test {} = up \u0026\u0026 vigilare msg +15m || vigilare msg -15m\"\n    :class { vigilare.active ? \"toggle-enabled\" : \"toggle-disabled\" }\n    (box :space-evenly false\n         (label :visible {vigilare.mode!=\"null\"} :text \"${vigilare.mode}\")\n         (label :visible {vigilare.message!=\"\"} :text \"/${vigilare.message}\")))))\n\n(defwidget vigilare-toggle-tooltip []\n  (box\n   :orientation \"v\"\n   :space-evenly false\n   (label :xalign 0 :text \"Left-click: screen-off\")\n   (label :xalign 0 :text \"Right-click: suspend\")\n   (label :xalign 0 :text \"Scroll: adjust duration\")))\n#+end_src\n\nYou must start the dbus service with =vigilare daemon= for the widget to function. I recommend starting it in your X session startup script or systemd user service. An example systemd user service is provided in the repository.\n\nRun =vigilare --help= for detailed usage information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshouya%2Fvigilare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshouya%2Fvigilare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshouya%2Fvigilare/lists"}