rofi/1.7.5/rofi-dmenu.5/index.html

1483 lines
35 KiB
HTML

<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<link rel="prev" href="../rofi-theme.5/">
<link rel="next" href="../rofi-script.5/">
<link rel="icon" href="../../assets/images/favicon.png">
<meta name="generator" content="mkdocs-1.4.2, mkdocs-material-9.0.6">
<title>Dmenu - Rofi Documentation</title>
<link rel="stylesheet" href="../../assets/stylesheets/main.558e4712.min.css">
<link rel="stylesheet" href="../../assets/stylesheets/palette.2505c338.min.css">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,300i,400,400i,700,700i%7CRoboto+Mono:400,400i,700,700i&display=fallback">
<style>:root{--md-text-font:"Roboto";--md-code-font:"Roboto Mono"}</style>
<script>__md_scope=new URL("../..",location),__md_hash=e=>[...e].reduce((e,_)=>(e<<5)-e+_.charCodeAt(0),0),__md_get=(e,_=localStorage,t=__md_scope)=>JSON.parse(_.getItem(t.pathname+"."+e)),__md_set=(e,_,t=localStorage,a=__md_scope)=>{try{t.setItem(a.pathname+"."+e,JSON.stringify(_))}catch(e){}}</script>
</head>
<body dir="ltr" data-md-color-scheme="default" data-md-color-primary="" data-md-color-accent="">
<input class="md-toggle" data-md-toggle="drawer" type="checkbox" id="__drawer" autocomplete="off">
<input class="md-toggle" data-md-toggle="search" type="checkbox" id="__search" autocomplete="off">
<label class="md-overlay" for="__drawer"></label>
<div data-md-component="skip">
<a href="#rofi-dmenu-5-rofi-dmenu" class="md-skip">
Skip to content
</a>
</div>
<div data-md-component="announce">
</div>
<header class="md-header" data-md-component="header">
<nav class="md-header__inner md-grid" aria-label="Header">
<a href="../.." title="Rofi Documentation" class="md-header__button md-logo" aria-label="Rofi Documentation" data-md-component="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
</a>
<label class="md-header__button md-icon" for="__drawer">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M3 6h18v2H3V6m0 5h18v2H3v-2m0 5h18v2H3v-2Z"/></svg>
</label>
<div class="md-header__title" data-md-component="header-title">
<div class="md-header__ellipsis">
<div class="md-header__topic">
<span class="md-ellipsis">
Rofi Documentation
</span>
</div>
<div class="md-header__topic" data-md-component="header-topic">
<span class="md-ellipsis">
Dmenu
</span>
</div>
</div>
</div>
<div class="md-header__source">
<a href="https://github.com/davatorium/rofi/" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg>
</div>
<div class="md-source__repository">
GitHub
</div>
</a>
</div>
</nav>
</header>
<div class="md-container" data-md-component="container">
<main class="md-main" data-md-component="main">
<div class="md-main__inner md-grid">
<div class="md-sidebar md-sidebar--primary" data-md-component="sidebar" data-md-type="navigation" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--primary" aria-label="Navigation" data-md-level="0">
<label class="md-nav__title" for="__drawer">
<a href="../.." title="Rofi Documentation" class="md-nav__button md-logo" aria-label="Rofi Documentation" data-md-component="logo">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 8a3 3 0 0 0 3-3 3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3m0 3.54C9.64 9.35 6.5 8 3 8v11c3.5 0 6.64 1.35 9 3.54 2.36-2.19 5.5-3.54 9-3.54V8c-3.5 0-6.64 1.35-9 3.54Z"/></svg>
</a>
Rofi Documentation
</label>
<div class="md-nav__source">
<a href="https://github.com/davatorium/rofi/" title="Go to repository" class="md-source" data-md-component="source">
<div class="md-source__icon md-icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc.--><path d="M439.55 236.05 244 40.45a28.87 28.87 0 0 0-40.81 0l-40.66 40.63 51.52 51.52c27.06-9.14 52.68 16.77 43.39 43.68l49.66 49.66c34.23-11.8 61.18 31 35.47 56.69-26.49 26.49-70.21-2.87-56-37.34L240.22 199v121.85c25.3 12.54 22.26 41.85 9.08 55a34.34 34.34 0 0 1-48.55 0c-17.57-17.6-11.07-46.91 11.25-56v-123c-20.8-8.51-24.6-30.74-18.64-45L142.57 101 8.45 235.14a28.86 28.86 0 0 0 0 40.81l195.61 195.6a28.86 28.86 0 0 0 40.8 0l194.69-194.69a28.86 28.86 0 0 0 0-40.81z"/></svg>
</div>
<div class="md-source__repository">
GitHub
</div>
</a>
</div>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../COPYING/" class="md-nav__link">
License
</a>
</li>
<li class="md-nav__item">
<a href="https://github.com/davatorium/rofi/issues" class="md-nav__link">
Issue Tracker
</a>
</li>
<li class="md-nav__item">
<a href="https://github.com/davatorium/rofi/discussions" class="md-nav__link">
Discussions Forum
</a>
</li>
<li class="md-nav__item">
<a href="../../downloads/" class="md-nav__link">
Downloads
</a>
</li>
<li class="md-nav__item">
<a href="../../INSTALL/" class="md-nav__link">
Installation
</a>
</li>
<li class="md-nav__item">
<a href="../../CONFIG/" class="md-nav__link">
Configuration
</a>
</li>
<li class="md-nav__item">
<a href="../../themes/themes/" class="md-nav__link">
Themes
</a>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " data-md-toggle="__nav_8" type="checkbox" id="__nav_8" >
<label class="md-nav__link" for="__nav_8" tabindex="0" aria-expanded="false">
Guides
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Guides" data-md-level="1">
<label class="md-nav__title" for="__nav_8">
<span class="md-nav__icon md-icon"></span>
Guides
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../guides/Transparency/theme3-transparency/" class="md-nav__link">
Transparency
</a>
</li>
<li class="md-nav__item">
<a href="../../guides/Positioning/theme3-positioning/" class="md-nav__link">
Positioning
</a>
</li>
<li class="md-nav__item">
<a href="../../guides/Plugins/2017-04-19-rofi-140-sneak-preview-plugins/" class="md-nav__link">
Plugins
</a>
</li>
<li class="md-nav__item">
<a href="../../guides/DynamicThemes/dynamic_themes/" class="md-nav__link">
Dynamic Theme
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " data-md-toggle="__nav_9" type="checkbox" id="__nav_9" >
<label class="md-nav__link" for="__nav_9" tabindex="0" aria-expanded="false">
Current
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="Current" data-md-level="1">
<label class="md-nav__title" for="__nav_9">
<span class="md-nav__icon md-icon"></span>
Current
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../current/rofi.1/" class="md-nav__link">
Rofi
</a>
</li>
<li class="md-nav__item">
<a href="../../current/rofi-theme.5/" class="md-nav__link">
Themes
</a>
</li>
<li class="md-nav__item">
<a href="../../current/rofi-dmenu.5/" class="md-nav__link">
Dmenu
</a>
</li>
<li class="md-nav__item">
<a href="../../current/rofi-script.5/" class="md-nav__link">
Script
</a>
</li>
<li class="md-nav__item">
<a href="../../current/rofi-debugging.5/" class="md-nav__link">
Debugging
</a>
</li>
<li class="md-nav__item">
<a href="../../current/rofi-keys.5/" class="md-nav__link">
Keys
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--active md-nav__item--nested">
<input class="md-nav__toggle md-toggle " data-md-toggle="__nav_10" type="checkbox" id="__nav_10" checked>
<label class="md-nav__link" for="__nav_10" tabindex="0" aria-expanded="true">
1.7.5
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="1.7.5" data-md-level="1">
<label class="md-nav__title" for="__nav_10">
<span class="md-nav__icon md-icon"></span>
1.7.5
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../rofi.1/" class="md-nav__link">
Rofi
</a>
</li>
<li class="md-nav__item">
<a href="../rofi-theme.5/" class="md-nav__link">
Themes
</a>
</li>
<li class="md-nav__item md-nav__item--active">
<input class="md-nav__toggle md-toggle" data-md-toggle="toc" type="checkbox" id="__toc">
<label class="md-nav__link md-nav__link--active" for="__toc">
Dmenu
<span class="md-nav__icon md-icon"></span>
</label>
<a href="./" class="md-nav__link md-nav__link--active">
Dmenu
</a>
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#name" class="md-nav__link">
NAME
</a>
</li>
<li class="md-nav__item">
<a href="#description" class="md-nav__link">
DESCRIPTION
</a>
</li>
<li class="md-nav__item">
<a href="#basic-concept" class="md-nav__link">
BASIC CONCEPT
</a>
</li>
<li class="md-nav__item">
<a href="#usage" class="md-nav__link">
USAGE
</a>
<nav class="md-nav" aria-label="USAGE">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#dmenu-drop-in-replacement" class="md-nav__link">
DMENU DROP-IN REPLACEMENT
</a>
</li>
<li class="md-nav__item">
<a href="#dmenu-vs-script-mode" class="md-nav__link">
DMENU VS SCRIPT MODE
</a>
</li>
<li class="md-nav__item">
<a href="#dmenu-specific-commandline-flags" class="md-nav__link">
DMENU SPECIFIC COMMANDLINE FLAGS
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#return-value" class="md-nav__link">
RETURN VALUE
</a>
</li>
<li class="md-nav__item">
<a href="#see-also" class="md-nav__link">
SEE ALSO
</a>
</li>
<li class="md-nav__item">
<a href="#author" class="md-nav__link">
AUTHOR
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="../rofi-script.5/" class="md-nav__link">
Script
</a>
</li>
<li class="md-nav__item">
<a href="../rofi-debugging.5/" class="md-nav__link">
Debugging
</a>
</li>
<li class="md-nav__item">
<a href="../rofi-keys.5/" class="md-nav__link">
Keys
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " data-md-toggle="__nav_11" type="checkbox" id="__nav_11" >
<label class="md-nav__link" for="__nav_11" tabindex="0" aria-expanded="false">
1.7.4
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="1.7.4" data-md-level="1">
<label class="md-nav__title" for="__nav_11">
<span class="md-nav__icon md-icon"></span>
1.7.4
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../1.7.4/rofi.1/" class="md-nav__link">
Rofi
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.4/rofi-theme.5/" class="md-nav__link">
Themes
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.4/rofi-dmenu.5/" class="md-nav__link">
Dmenu
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.4/rofi-script.5/" class="md-nav__link">
Script
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.4/rofi-debugging.5/" class="md-nav__link">
Debugging
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.4/rofi-keys.5/" class="md-nav__link">
Keys
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " data-md-toggle="__nav_12" type="checkbox" id="__nav_12" >
<label class="md-nav__link" for="__nav_12" tabindex="0" aria-expanded="false">
1.7.3
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="1.7.3" data-md-level="1">
<label class="md-nav__title" for="__nav_12">
<span class="md-nav__icon md-icon"></span>
1.7.3
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../1.7.3/rofi.1/" class="md-nav__link">
Rofi
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.3/rofi-theme.5/" class="md-nav__link">
Themes
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.3/rofi-dmenu.5/" class="md-nav__link">
Dmenu
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.3/rofi-script.5/" class="md-nav__link">
Script
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.3/rofi-debugging.5/" class="md-nav__link">
Debugging
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.3/rofi-keys.5/" class="md-nav__link">
Keys
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " data-md-toggle="__nav_13" type="checkbox" id="__nav_13" >
<label class="md-nav__link" for="__nav_13" tabindex="0" aria-expanded="false">
1.7.2
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="1.7.2" data-md-level="1">
<label class="md-nav__title" for="__nav_13">
<span class="md-nav__icon md-icon"></span>
1.7.2
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../1.7.2/rofi.1/" class="md-nav__link">
Rofi
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.2/rofi-theme.5/" class="md-nav__link">
Themes
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.2/rofi-script.5/" class="md-nav__link">
Script
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " data-md-toggle="__nav_14" type="checkbox" id="__nav_14" >
<label class="md-nav__link" for="__nav_14" tabindex="0" aria-expanded="false">
1.7.1
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="1.7.1" data-md-level="1">
<label class="md-nav__title" for="__nav_14">
<span class="md-nav__icon md-icon"></span>
1.7.1
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../1.7.1/rofi.1/" class="md-nav__link">
Rofi
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.1/rofi-theme.5/" class="md-nav__link">
Themes
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.1/rofi-script.5/" class="md-nav__link">
Script
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item md-nav__item--nested">
<input class="md-nav__toggle md-toggle " data-md-toggle="__nav_15" type="checkbox" id="__nav_15" >
<label class="md-nav__link" for="__nav_15" tabindex="0" aria-expanded="false">
1.7.0
<span class="md-nav__icon md-icon"></span>
</label>
<nav class="md-nav" aria-label="1.7.0" data-md-level="1">
<label class="md-nav__title" for="__nav_15">
<span class="md-nav__icon md-icon"></span>
1.7.0
</label>
<ul class="md-nav__list" data-md-scrollfix>
<li class="md-nav__item">
<a href="../../1.7.0/rofi.1/" class="md-nav__link">
Rofi
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.0/rofi-theme.5/" class="md-nav__link">
Themes
</a>
</li>
<li class="md-nav__item">
<a href="../../1.7.0/rofi-script.5/" class="md-nav__link">
Script
</a>
</li>
</ul>
</nav>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-sidebar md-sidebar--secondary" data-md-component="sidebar" data-md-type="toc" >
<div class="md-sidebar__scrollwrap">
<div class="md-sidebar__inner">
<nav class="md-nav md-nav--secondary" aria-label="Table of contents">
<label class="md-nav__title" for="__toc">
<span class="md-nav__icon md-icon"></span>
Table of contents
</label>
<ul class="md-nav__list" data-md-component="toc" data-md-scrollfix>
<li class="md-nav__item">
<a href="#name" class="md-nav__link">
NAME
</a>
</li>
<li class="md-nav__item">
<a href="#description" class="md-nav__link">
DESCRIPTION
</a>
</li>
<li class="md-nav__item">
<a href="#basic-concept" class="md-nav__link">
BASIC CONCEPT
</a>
</li>
<li class="md-nav__item">
<a href="#usage" class="md-nav__link">
USAGE
</a>
<nav class="md-nav" aria-label="USAGE">
<ul class="md-nav__list">
<li class="md-nav__item">
<a href="#dmenu-drop-in-replacement" class="md-nav__link">
DMENU DROP-IN REPLACEMENT
</a>
</li>
<li class="md-nav__item">
<a href="#dmenu-vs-script-mode" class="md-nav__link">
DMENU VS SCRIPT MODE
</a>
</li>
<li class="md-nav__item">
<a href="#dmenu-specific-commandline-flags" class="md-nav__link">
DMENU SPECIFIC COMMANDLINE FLAGS
</a>
</li>
</ul>
</nav>
</li>
<li class="md-nav__item">
<a href="#return-value" class="md-nav__link">
RETURN VALUE
</a>
</li>
<li class="md-nav__item">
<a href="#see-also" class="md-nav__link">
SEE ALSO
</a>
</li>
<li class="md-nav__item">
<a href="#author" class="md-nav__link">
AUTHOR
</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<div class="md-content" data-md-component="content">
<article class="md-content__inner md-typeset">
<h1 id="rofi-dmenu-5-rofi-dmenu">ROFI-DMENU 5 rofi-dmenu</h1>
<h2 id="name">NAME</h2>
<p><strong>rofi dmenu mode</strong> - Rofi dmenu emulation</p>
<h2 id="description">DESCRIPTION</h2>
<p>To integrate <strong>rofi</strong> into scripts as simple selection dialogs,
<strong>rofi</strong> supports emulating <strong>dmenu(1)</strong> (A dynamic menu for X11).</p>
<p>The website for <code>dmenu</code> can be found <a href="http://tools.suckless.org/dmenu/">here</a>.</p>
<p><strong>rofi</strong> does not aim to be 100% compatible with <code>dmenu</code>. There are simply too many flavors of <code>dmenu</code>.
The idea is that the basic usage command-line flags are obeyed, theme-related flags are not.
Besides, <strong>rofi</strong> offers some extended features (like multi-select, highlighting, message bar, extra key bindings).</p>
<h2 id="basic-concept">BASIC CONCEPT</h2>
<p>In <code>dmenu</code> mode, <strong>rofi</strong> reads data from standard in, splits them into separate entries and displays them.
If the user selects a row, this is printed out to standard out, allowing the script to process it further.</p>
<p>By default separation of rows is done on new lines, making it easy to pipe the output a one application into
<strong>rofi</strong> and the output of rofi into the next.</p>
<h2 id="usage">USAGE</h2>
<p>By launching <strong>rofi</strong> with the <code>-dmenu</code> flag it will go into dmenu emulation mode.</p>
<pre><code class="language-bash">ls | rofi -dmenu
</code></pre>
<h3 id="dmenu-drop-in-replacement">DMENU DROP-IN REPLACEMENT</h3>
<p>If <code>argv[0]</code> (calling command) is dmenu, <strong>rofi</strong> will start in dmenu mode.
This way, it can be used as a drop-in replacement for dmenu. Just copy or symlink <strong>rofi</strong> to dmenu in <code>$PATH</code>.</p>
<pre><code>ln -s /usr/bin/rofi /usr/bin/dmenu
</code></pre>
<h3 id="dmenu-vs-script-mode">DMENU VS SCRIPT MODE</h3>
<p>Script mode is used to extend <strong>rofi</strong>, dmenu mode is used to extend a script.
The two do share much of the same input format. Please see the <strong>rofi-script(5)</strong> manpage for more information.</p>
<h3 id="dmenu-specific-commandline-flags">DMENU SPECIFIC COMMANDLINE FLAGS</h3>
<p>A lot of these options can also be modified by the script using special input. See the <strong>rofi-script(5)</strong> manpage
for more information about this syntax.</p>
<p><code>-sep</code> <em>separator</em></p>
<p>Separator for <code>dmenu</code>. Example: To show a list of 'a' to 'e' with '|' as a separator:</p>
<pre><code>echo "a|b|c|d|e" | rofi -sep '|' -dmenu
</code></pre>
<p><code>-p</code> <em>prompt</em></p>
<p>Specify the prompt to show in <code>dmenu</code> mode. For example, select 'monkey', a,b,c,d, or e.</p>
<pre><code>echo "a|b|c|d|e" | rofi -sep '|' -dmenu -p "monkey"
</code></pre>
<p>Default: <em>dmenu</em></p>
<p><code>-l</code> <em>number of lines to show</em></p>
<p>Maximum number of lines the menu may show before scrolling.</p>
<pre><code>rofi -dmenu -l 25
</code></pre>
<p>Default: <em>15</em></p>
<p><code>-i</code></p>
<p>Makes <code>dmenu</code> searches case-insensitive</p>
<p><code>-a</code> <em>X</em></p>
<p>Active row, mark <em>X</em> as active. Where <em>X</em> is a comma-separated list of python(1)-style indices and ranges, e.g. indices start at 0, -1 refers to the last row with -2 preceding it, ranges are left-open and right-close, and so on. You can specify:</p>
<ul>
<li>A single row: '5'</li>
<li>A range of (last 3) rows: '-3:'</li>
<li>4 rows starting from row 7: '7:11' (or in legacy notation: '7-10')</li>
<li>A set of rows: '2,0,-9'</li>
<li>Or any combination: '5,-3:,7:11,2,0,-9'</li>
</ul>
<p><code>-u</code> <em>X</em></p>
<p>Urgent row, mark <em>X</em> as urgent. See <code>-a</code> option for details.</p>
<p><code>-only-match</code></p>
<p>Only return a selected item, do not allow custom entry.
This mode always returns an entry. It will not return if no matching entry is
selected.</p>
<p><code>-no-custom</code></p>
<p>Only return a selected item, do not allow custom entry.
This mode returns directly when no entries given.</p>
<p><code>-format</code> <em>format</em></p>
<p>Allows the output of dmenu to be customized (N is the total number of input entries):</p>
<ul>
<li>'s' selected string</li>
<li>'i' index (0 - (N-1))</li>
<li>'d' index (1 - N)</li>
<li>'q' quote string</li>
<li>'p' Selected string stripped from Pango markup (Needs to be a valid string)</li>
<li>'f' filter string (user input)</li>
<li>'F' quoted filter string (user input)</li>
</ul>
<p>Default: 's'</p>
<p><code>-select</code> <em>string</em></p>
<p>Select first line that matches the given string</p>
<p><code>-mesg</code> <em>string</em></p>
<p>Add a message line below the filter entry box. Supports Pango markup.
For more information on supported markup, see <a href="https://docs.gtk.org/Pango/pango_markup.html">here</a></p>
<p><code>-dump</code></p>
<p>Dump the filtered list to stdout and quit.
This can be used to get the list as <strong>rofi</strong> would filter it.
Use together with <code>-filter</code> command.</p>
<p><code>-input</code> <em>file</em></p>
<p>Reads from <em>file</em> instead of stdin.</p>
<p><code>-password</code></p>
<p>Hide the input text. This should not be considered secure!</p>
<p><code>-markup-rows</code></p>
<p>Tell <strong>rofi</strong> that DMenu input is Pango markup encoded, and should be rendered.
See <a href="https://developer.gnome.org/pygtk/stable/pango-markup-language.html">here</a> for details about Pango markup.</p>
<p><code>-multi-select</code></p>
<p>Allow multiple lines to be selected. Adds a small selection indicator to the left of each entry.</p>
<p><code>-sync</code></p>
<p>Force <strong>rofi</strong> mode to first read all data from stdin before showing the selection window. This is original dmenu behavior.</p>
<p>Note: the default asynchronous mode will also be automatically disabled if used with conflicting options,
such as <code>-dump</code>, <code>-only-match</code> or <code>-auto-select</code>.</p>
<p><code>-window-title</code> <em>title</em></p>
<p>Set name used for the window title. Will be shown as Rofi - <em>title</em></p>
<p><code>-w</code> <em>windowid</em></p>
<p>Position <strong>rofi</strong> over the window with the given X11 window ID.</p>
<p><code>-keep-right</code></p>
<p>Set ellipsize mode to start. So, the end of the string is visible.</p>
<p><code>-display-columns</code></p>
<p>A comma seperated list of columns to show.</p>
<p><code>-display-column-separator</code></p>
<p>The column separator. This is a regex. </p>
<p><em>default</em>: '\t'</p>
<p><code>-ballot-selected-str</code> <em>string</em></p>
<p>When multi-select is enabled, prefix this string when element is selected.</p>
<p><em>default</em>: "☑ "</p>
<p><code>-ballot-unselected-str</code> <em>string</em></p>
<p>When multi-select is enabled, prefix this string when element is not selected.</p>
<p><em>default</em>: "☐ "</p>
<h2 id="return-value">RETURN VALUE</h2>
<ul>
<li><strong>0</strong>: Row has been selected accepted by user.</li>
<li><strong>1</strong>: User cancelled the selection.</li>
<li><strong>10-28</strong>: Row accepted by custom keybinding.</li>
</ul>
<h2 id="see-also">SEE ALSO</h2>
<p>rofi(1), rofi-sensible-terminal(1), dmenu(1), rofi-theme(5), rofi-script(5), rofi-theme-selector(1), ascii(7)</p>
<h2 id="author">AUTHOR</h2>
<p>Qball Cow <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#113;&#98;&#97;&#108;&#108;&#64;&#103;&#109;&#112;&#99;&#108;&#105;&#101;&#110;&#116;&#46;&#111;&#114;&#103;">&#113;&#98;&#97;&#108;&#108;&#64;&#103;&#109;&#112;&#99;&#108;&#105;&#101;&#110;&#116;&#46;&#111;&#114;&#103;</a></p>
<p>Rasmus Steinke <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#114;&#97;&#115;&#105;&#64;&#120;&#115;&#115;&#110;&#46;&#97;&#116;">&#114;&#97;&#115;&#105;&#64;&#120;&#115;&#115;&#110;&#46;&#97;&#116;</a></p>
<p>Morgane Glidic <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#115;&#97;&#114;&#100;&#101;&#109;&#102;&#102;&#55;&#43;&#114;&#111;&#102;&#105;&#64;&#115;&#97;&#114;&#100;&#101;&#109;&#102;&#102;&#55;&#46;&#110;&#101;&#116;">&#115;&#97;&#114;&#100;&#101;&#109;&#102;&#102;&#55;&#43;&#114;&#111;&#102;&#105;&#64;&#115;&#97;&#114;&#100;&#101;&#109;&#102;&#102;&#55;&#46;&#110;&#101;&#116;</a></p>
<p>Original code based on work by: Sean Pringle <a href="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#115;&#101;&#97;&#110;&#46;&#112;&#114;&#105;&#110;&#103;&#108;&#101;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;">&#115;&#101;&#97;&#110;&#46;&#112;&#114;&#105;&#110;&#103;&#108;&#101;&#64;&#103;&#109;&#97;&#105;&#108;&#46;&#99;&#111;&#109;</a></p>
<p>For a full list of authors, check the AUTHORS file.</p>
</article>
</div>
</div>
</main>
<footer class="md-footer">
<div class="md-footer-meta md-typeset">
<div class="md-footer-meta__inner md-grid">
<div class="md-copyright">
Made with
<a href="https://squidfunk.github.io/mkdocs-material/" target="_blank" rel="noopener">
Material for MkDocs
</a>
</div>
</div>
</div>
</footer>
</div>
<div class="md-dialog" data-md-component="dialog">
<div class="md-dialog__inner md-typeset"></div>
</div>
<script id="__config" type="application/json">{"base": "../..", "features": [], "search": "../../assets/javascripts/workers/search.e5c33ebb.min.js", "translations": {"clipboard.copied": "Copied to clipboard", "clipboard.copy": "Copy to clipboard", "search.result.more.one": "1 more on this page", "search.result.more.other": "# more on this page", "search.result.none": "No matching documents", "search.result.one": "1 matching document", "search.result.other": "# matching documents", "search.result.placeholder": "Type to start searching", "search.result.term.missing": "Missing", "select.version": "Select version"}}</script>
<script src="../../assets/javascripts/bundle.51d95adb.min.js"></script>
<script src="../../search/main.js"></script>
</body>
</html>