{"id":13407508,"url":"https://github.com/jluttine/rofi-script-to-dmenu","last_synced_at":"2025-05-01T21:30:48.162Z","repository":{"id":148165709,"uuid":"257045111","full_name":"jluttine/rofi-script-to-dmenu","owner":"jluttine","description":"Run rofi scripts with dmenu (or with dmenu mode of rofi)","archived":false,"fork":false,"pushed_at":"2020-04-25T11:05:52.000Z","size":5,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-07-31T20:27:29.666Z","etag":null,"topics":["dmenu","dmenu-scripts","rofi","rofi-scripts"],"latest_commit_sha":null,"homepage":null,"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/jluttine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-04-19T16:16:32.000Z","updated_at":"2024-03-05T19:16:03.000Z","dependencies_parsed_at":"2023-05-19T08:30:35.156Z","dependency_job_id":null,"html_url":"https://github.com/jluttine/rofi-script-to-dmenu","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jluttine%2Frofi-script-to-dmenu","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jluttine%2Frofi-script-to-dmenu/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jluttine%2Frofi-script-to-dmenu/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jluttine%2Frofi-script-to-dmenu/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jluttine","download_url":"https://codeload.github.com/jluttine/rofi-script-to-dmenu/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224278474,"owners_count":17285080,"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":["dmenu","dmenu-scripts","rofi","rofi-scripts"],"created_at":"2024-07-30T20:00:41.294Z","updated_at":"2024-11-12T13:09:32.902Z","avatar_url":"https://github.com/jluttine.png","language":"Shell","funding_links":[],"categories":["Other"],"sub_categories":[],"readme":"# Rofi Script to Dmenu\n\nA simple executable that can run a rofi script with dmenu (or with dmenu mode of\nrofi).\n\nJust give a normal rofi script **that can be used in rofi script mode** as an\nargument and rofi-script-to-dmenu will take care of the rest. It'll also pass\nany options to dmenu. In addition, mode options printed with the special\nrofi-script syntax by starting a line with the null byte are handled correctly\nand passed to rofi/dmenu. See rofi-script man page for more information.\n\n**Note that this tool will not work with many rofi scripts that are stand-alone\nscripts (i.e., they call rofi themselves) instead of being written for the rofi\nscript mode.**\n\n\n## Usage\n\n```\nrofi-script-to-dmenu - run a rofi script with dmenu mode\n\nUsage: rofi-script-to-dmenu SCRIPT [OPTIONS]\n\nGiven a script SCRIPT that works in Rofi script mode, rofi-script-to-dmenu runs\nit with dmenu mode. The first argument must the script but other arguments and\noptions are passed to dmenu (or rofi) as such.\n\nFor example, given the rofi-file-browser.sh script in Rofi repository, you can\nrun it as follows in dmenu mode:\n\n  rofi-script-to-dmenu rofi-file-browser.sh -i -p 'Cool File Browser'\n\nIf you want to pass arguments to your script, just enclose the script and its\narguments with quotes.\n\nIf no arguments are given, this help text is shown.\n\nIf rofi executable is in PATH, it is used (with -dmenu option), otherwise dmenu\nexecutable is used.\n```\n\n\n## `ROFI_SCRIPT_TO_DMENU_AUTOEXIT`\n\nNote that rofi works in script mode so that it exits when the script doesn't\ngive any output, but it will always show up after the first script invocation\nwhether or not the script had any output. By default, this tool works similarly,\nbut if you set environment variable `ROFI_SCRIPT_TO_DMENU_AUTOEXIT=1`, then\ndmenu/rofi will not show up at all if the script had empty output in the first\nrun. This might be useful, for instance, if you browse some tree structure and\njust want the script to do its job when reaching a leaf node (e.g., open the\nselected file). For more details, see:\nhttps://github.com/davatorium/rofi/issues/1093\n\n\n## Why?\n\nThere are a few reasons why you might be interested in this small tool:\n\n- You want to use dmenu options with a rofi script. That's not possible when\n  running the script in rofi script mode.\n\n- You don't have rofi available and want to use dmenu, but still you found some\n  interesting rofi scripts.\n\n- You want to rofi to exit if the script doesn't give any output on the first\n  call.\n\n- You don't know how to run rofi scripts (well, you should learn!) so this tool\n  might make it simpler for you.\n\n\n## Copyright\n\nCopyright (c) 2020 Jaakko Luttinen\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjluttine%2Frofi-script-to-dmenu","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjluttine%2Frofi-script-to-dmenu","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjluttine%2Frofi-script-to-dmenu/lists"}