{"id":18678832,"url":"https://github.com/lukapeschke/monitor-status","last_synced_at":"2025-11-07T12:30:49.725Z","repository":{"id":163875685,"uuid":"115616505","full_name":"lukapeschke/monitor-status","owner":"lukapeschke","description":"A tool to handle udev events","archived":false,"fork":false,"pushed_at":"2018-03-16T17:10:00.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-27T21:41:39.815Z","etag":null,"topics":["golang","i3wm","udev"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lukapeschke.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-12-28T11:24:39.000Z","updated_at":"2024-03-16T09:57:20.000Z","dependencies_parsed_at":"2023-07-10T16:32:20.399Z","dependency_job_id":null,"html_url":"https://github.com/lukapeschke/monitor-status","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/lukapeschke%2Fmonitor-status","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukapeschke%2Fmonitor-status/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukapeschke%2Fmonitor-status/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lukapeschke%2Fmonitor-status/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lukapeschke","download_url":"https://codeload.github.com/lukapeschke/monitor-status/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239530627,"owners_count":19654318,"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","i3wm","udev"],"created_at":"2024-11-07T09:41:34.149Z","updated_at":"2025-02-18T18:44:26.764Z","avatar_url":"https://github.com/lukapeschke.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"==============\nmonitor-status\n==============\n\n``monitor-status`` (please do a PR if you have a better name) is a tool which\nallows to watch for udev events. It was initially written to reset my i3\nworspaces when a monitor is plugged in, but it can be used for any kind of\ndevice.\n\nIt's still work in progress.\n\nInstalling and running\n======================\n\nThere are no binary packages yet, but the tootl can easily be built.\nDependencies are ``go`` (1.8 or higher version) and ``libudev-dev``\n(``systemd-devel`` on Fedora).\n\nOnce the depencies are installed, simply run ``go get\ngithub.com/lukapeschke/monitor-status`` and you're good to go.\n\n\nInstalling with docker\n======================\n\nIf you don't want to install go and dependencies, you can build this with\ndocker. A service file will also be generated::\n\n        $ git clone https://github.com/lukapeschke/monitor-status\n        $ cd monitor-status\n        # The image is also available on the docker hub, this step isn't mandatory\n        $ docker build -t lukapeschke/monitor-status .\n        $ docker run --rm -v $PWD:/root/monitor-status lukapeschke/monitor-status $USER\n        $ ./install.sh\n        $ sudo systemctl daemon-reload\n        $ sudo systemctl start monitor-status\n\nThe service should now be enabled and running.\n\nConfiguration\n=============\n\nThe tool will look for a config file in the following places::\n\n    \"./config.yml\",\n    \"~/.monitor-status/config.yml\",\n    \"~/.config/monitor-status.yml\",\n    \"~/.config/monitor-status/config.yml\",\n    \"$GOPATH/src/github.com/lukapeschke/monitor-status/config.yml\"\n\nIf your config file is located elsewhere, you can specify its path with the\n``-config`` flag.\n\nThe config file has the following format::\n\n    drm: # subsystem\n      card0-DP-3: # device\n        on_connect: ~/bin/reset_workspaces.sh # command for \"add\" event\n        on_disconnect: xrandr --output DP-1-1 --off # command for \"remove\" event\n      DEVICE2:\n        on_connect: echo \"hello world!\"\n        on_disconnect: echo \"bye!\"\n    SUBSYSTEM2:\n      [...]\n\nFor now, only ``on_connect`` and ``on_disconnect`` are supported, but more\nevents will be supported in the future.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukapeschke%2Fmonitor-status","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flukapeschke%2Fmonitor-status","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flukapeschke%2Fmonitor-status/lists"}