{"id":18936886,"url":"https://github.com/moustacheful/myrmidon","last_synced_at":"2025-04-15T18:31:42.359Z","repository":{"id":63724804,"uuid":"161428555","full_name":"moustacheful/myrmidon","owner":"moustacheful","description":"A rofi task / command executor","archived":false,"fork":false,"pushed_at":"2020-09-03T19:53:08.000Z","size":12,"stargazers_count":91,"open_issues_count":8,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-29T00:41:14.487Z","etag":null,"topics":["bash","command-line-tool","configuration","i3","linux","rofi","task-runner"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/moustacheful.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":"2018-12-12T03:38:26.000Z","updated_at":"2025-03-24T08:55:58.000Z","dependencies_parsed_at":"2022-11-24T18:40:12.265Z","dependency_job_id":null,"html_url":"https://github.com/moustacheful/myrmidon","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/moustacheful%2Fmyrmidon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moustacheful%2Fmyrmidon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moustacheful%2Fmyrmidon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moustacheful%2Fmyrmidon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moustacheful","download_url":"https://codeload.github.com/moustacheful/myrmidon/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129147,"owners_count":21217294,"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":["bash","command-line-tool","configuration","i3","linux","rofi","task-runner"],"created_at":"2024-11-08T12:09:09.599Z","updated_at":"2025-04-15T18:31:37.349Z","avatar_url":"https://github.com/moustacheful.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Myrmidon\n\nA dead-simple, tiny task executor for Rofi.\n\n## What\n\nMyrmidon executes tasks for you, displaying something similar to modern text editor's command palette. You define the task names and commands, and let myrmidon make a fuzzy search list to select and execute tasks.\n\n\u003cimg align=\"center\" alt=\"demo\" src=\"https://user-images.githubusercontent.com/4857535/50374333-3d82e800-05cb-11e9-8f14-1338cac3d290.gif\"/\u003e\n\n## Why\n\nI've been looking for something like this for a while since I started using i3. Sometimes not everything merits yet another keybinding to remember, nor a bunch of shell files laying around.\n\n## Requirements\n\nMyrmidon currently depends on:\n\n- [Rofi](https://github.com/DaveDavenport/rofi)\n- [jq](https://stedolan.github.io/jq/)\n\n## Installation / defining tasks\n\nCopy both shell scripts in the same directory (e.g: ~/bin)\n\nDefine your tasks in a json file. The default location of the json file will be `$HOME/.myrmidon-tasks.json`, but you can pass an optional argument as a custom path for the configuration file (e.g: `./myrmidon.sh ~/my-custom-path/tasks.json`).\n\nEach task is comprised of a `name`, `command` and whether or not it needs a confirmation screen (`confirm`):\n\nExample:\n\n```json\n[\n  {\n    \"name\": \"Area screenshot\",\n    \"command\": \"gnome-screenshot -a\"\n  },\n  {\n    \"name\": \"Window screenshot\",\n    \"command\": \"gnome-screenshot -w\"\n  },\n  {\n    \"name\": \"Power off\",\n    \"confirm\": true,\n    \"command\": \"systemctl poweroff\"\n  },\n  {\n    \"name\": \"Reboot\",\n    \"confirm\": true,\n    \"command\": \"systemctl reboot\"\n  },\n  {\n    \"name\": \"Suspend\",\n    \"confirm\": true,\n    \"command\": \"systemctl suspend\"\n  }\n]\n```\n\nAfter configuring your tasks file, you would have to set up a keybinding, if needed, to make it work.\n\nFor example, in `i3`:\n\n```\nbindsym $mod+p exec --no-startup-id ~/bin/myrmidon.sh\n```\n\n## Multiple config files\n\nAs it is possible to provide an optional location of the config file, you can keep multiple keys for different task \"categories\", for example:\n\n```\nbindsym $mod+p exec --no-startup-id ~/bin/myrmidon.sh ~/common-tasks.json\nbindsym $mod+Esc exec --no-startup-id ~/bin/myrmidon.sh ~/power-tasks.json\nbindsym $mod+Print exec --no-startup-id ~/bin/myrmidon.sh ~/screenshot-tasks.json\n```\n\nThis way, for example, $mod+Esc will now only show tasks related to power (Power off, restart, suspend, etc), as to not pollute the task pool.\n\n## Contribute\n\nIf you feel there's any missing feature you'd like to see in Myrmidon, feel free to propose it or open a pull request!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoustacheful%2Fmyrmidon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoustacheful%2Fmyrmidon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoustacheful%2Fmyrmidon/lists"}