{"id":21542885,"url":"https://github.com/horacehylee/shutd","last_synced_at":"2025-03-17T23:53:32.314Z","repository":{"id":43616353,"uuid":"454750896","full_name":"horacehylee/shutd","owner":"horacehylee","description":"Auto shutdown utility tool for Windows with popup and snooze features","archived":false,"fork":false,"pushed_at":"2022-10-01T07:51:41.000Z","size":364,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-24T08:43:42.951Z","etag":null,"topics":["golang","shutdown","shutdown-helper","shutdown-manager","shutdown-timer","snooze","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/horacehylee.png","metadata":{"files":{"readme":"README.md","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":"2022-02-02T11:38:46.000Z","updated_at":"2024-08-14T21:39:31.000Z","dependencies_parsed_at":"2022-08-03T03:01:47.972Z","dependency_job_id":null,"html_url":"https://github.com/horacehylee/shutd","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horacehylee%2Fshutd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horacehylee%2Fshutd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horacehylee%2Fshutd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/horacehylee%2Fshutd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/horacehylee","download_url":"https://codeload.github.com/horacehylee/shutd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244130283,"owners_count":20402753,"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":["golang","shutdown","shutdown-helper","shutdown-manager","shutdown-timer","snooze","windows"],"created_at":"2024-11-24T05:11:56.017Z","updated_at":"2025-03-17T23:53:32.286Z","avatar_url":"https://github.com/horacehylee.png","language":"Go","readme":"# 🛑 Shutd\n\n\u003e Auto shutdown utility tool for Windows with popup and snooze features\n\n![Screenshot](./screenshot.png)\n\n## 🔨 Build\n\n`-ldflags -H=windowsgui` compile flags is to avoid opening a console at application startup\n\n```\ngo install -ldflags -H=windowsgui ./cmd/shutd\n```\n\n## 🛠 Usage\n\nIf wanted to run it sliently (i.e. without any console popup) at start up, you may do the following\n\n(Not sure why simply running `shutd.exe` in Startup with `-ldflags -H=windowsgui` could not trigger the shutdown properly)\n\n1. Create a `shutd.vbs` at any folder\n```\nSet WshShell = CreateObject(\"WScript.Shell\") \ngopath = WshShell.ExpandEnvironmentStrings(\"%GOPATH%\")\nWshShell.Run chr(34) \u0026 gopath \u0026 \"\\bin\\shutd.exe\" \u0026 Chr(34), 0\nSet WshShell = Nothing\n```\n\n2. Create a shortcut and choose `shutd.vbs` that you created as target\n\n3. Move the shortcut to start up folder, simply search `Startup` from Windows explorer\n\n4. You should be able to see `shutd.exe` running in task manager next time when it starts up\n\n## ⚙ Configuration\n\nFollowing set of default configurations will be generated under home directory `%USERPROFILE%/.shutd.yaml`\n\nFeel free to tweak it for your liking\n\nAfter updated the configuration, `shutd` will automatically pick up the latest config, no need to restart it manually\n\n```yaml\nstartTime: \"01:00\"\nsnoozeInterval: 15\nnotification:\n  before: 10\n  duration: 10\n```\n\n| Property                | Default Value | Remarks                                                             |\n| ----------------------- | ------------- | ------------------------------------------------------------------- |\n| `startTime`             | \"01:00\"       | Time for auto shutdown                                         |\n| `snoozeInterval`        | 15            | Minutes that will snooze for shutdown                      |\n| `notification.before`   | 10            | Minutes before shutdown for snooze popup notification     |\n| `notification.duration` | 10            | Minutes for snnoze popup notification to default to not snooze |\n\n## 📃 Logging\n\nLog file will be generated under you home directory `%USERPROFILE%/.shutd.log`\n\nTroubleshoot error there if wanted\n\n## 🚢 Release\n\n```\ngo install github.com/mitchellh/gox@latest\n\ngox -os=windows -ldflags -H=windowsgui -output ./build/{{.Dir}}_{{.OS}}_{{.Arch}} ./cmd/shutd\n```\n\n## 📜 License\n\nDistributed under the MIT License. See [LICENSE](./LICENSE) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoracehylee%2Fshutd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoracehylee%2Fshutd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoracehylee%2Fshutd/lists"}