Codebase list i3-gaps / e6d2486 man / i3-dmenu-desktop.1
e6d2486

Tree @e6d2486 (Download .tar.gz)

i3-dmenu-desktop.1 @e6d2486raw · history · blame

.\" Automatically generated by Pod::Man 4.10 (Pod::Simple 3.35)
.\"
.\" Standard preamble:
.\" ========================================================================
.de Sp \" Vertical space (when we can't use .PP)
.if t .sp .5v
.if n .sp
..
.de Vb \" Begin verbatim text
.ft CW
.nf
.ne \\$1
..
.de Ve \" End verbatim text
.ft R
.fi
..
.\" Set up some character translations and predefined strings.  \*(-- will
.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
.\" double quote, and \*(R" will give a right double quote.  \*(C+ will
.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and
.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,
.\" nothing in troff, for use with C<>.
.tr \(*W-
.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
.ie n \{\
.    ds -- \(*W-
.    ds PI pi
.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch
.    ds L" ""
.    ds R" ""
.    ds C` ""
.    ds C' ""
'br\}
.el\{\
.    ds -- \|\(em\|
.    ds PI \(*p
.    ds L" ``
.    ds R" ''
.    ds C`
.    ds C'
'br\}
.\"
.\" Escape single quotes in literal strings from groff's Unicode transform.
.ie \n(.g .ds Aq \(aq
.el       .ds Aq '
.\"
.\" If the F register is >0, we'll generate index entries on stderr for
.\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
.\" entries marked with X<> in POD.  Of course, you'll have to process the
.\" output yourself in some meaningful fashion.
.\"
.\" Avoid warning from groff about undefined register 'F'.
.de IX
..
.nr rF 0
.if \n(.g .if rF .nr rF 1
.if (\n(rF:(\n(.g==0)) \{\
.    if \nF \{\
.        de IX
.        tm Index:\\$1\t\\n%\t"\\$2"
..
.        if !\nF==2 \{\
.            nr % 0
.            nr F 2
.        \}
.    \}
.\}
.rr rF
.\" ========================================================================
.\"
.IX Title "I3-DMENU-DESKTOP 1"
.TH I3-DMENU-DESKTOP 1 "2019-08-30" "perl v5.28.1" "User Contributed Perl Documentation"
.\" For nroff, turn off justification.  Always turn off hyphenation; it makes
.\" way too many mistakes in technical documents.
.if n .ad l
.nh
.SH "NAME"
.Vb 1
\&    i3\-dmenu\-desktop \- run .desktop files with dmenu
.Ve
.SH "SYNOPSIS"
.IX Header "SYNOPSIS"
.Vb 1
\&    i3\-dmenu\-desktop [\-\-dmenu=\*(Aqdmenu \-i\*(Aq] [\-\-entry\-type=name]
.Ve
.SH "DESCRIPTION"
.IX Header "DESCRIPTION"
i3\-dmenu\-desktop is a script which extracts the (localized) name from
application .desktop files, offers the user a choice via \fBdmenu\fR\|(1) and then
starts the chosen application via i3 (for startup notification support).
The advantage of using .desktop files instead of \fBdmenu_run\fR\|(1) is that dmenu_run
offers \fBall\fR binaries in your \f(CW$PATH\fR, including non-interactive utilities like
\&\*(L"sed\*(R". Also, .desktop files contain a proper name, information about whether
the application runs in a terminal and whether it supports startup
notifications.
.PP
The .desktop files are searched in \f(CW$XDG_DATA_HOME\fR/applications (by default
\&\f(CW$HOME\fR/.local/share/applications) and in the \*(L"applications\*(R" subdirectory of each
entry of \f(CW$XDG_DATA_DIRS\fR (by default /usr/local/share/:/usr/share/).
.PP
Files with the same name in \f(CW$XDG_DATA_HOME\fR/applications take precedence over
files in \f(CW$XDG_DATA_DIRS\fR, so that you can overwrite parts of the system-wide
\&.desktop files by copying them to your local directory and making changes.
.PP
i3\-dmenu\-desktop displays the \*(L"Name\*(R" value in the localized version depending
on \s-1LC_MESSAGES\s0 as specified in the Desktop Entry Specification.
.PP
You can pass a filename or \s-1URL\s0 (%f/%F and \f(CW%u\fR/%U field codes in the .desktop
file respectively) by appending it to the name of the application. E.g., if you
want to launch \*(L"\s-1GNU\s0 Emacs 24\*(R" with the patch /tmp/foobar.txt, you would type
\&\*(L"emacs\*(R", press \s-1TAB,\s0 type \*(L" /tmp/foobar.txt\*(R" and press \s-1ENTER.\s0
.PP
\&.desktop files with Terminal=true are started using \fBi3\-sensible\-terminal\fR\|(1).
.PP
\&.desktop files with NoDisplay=true or Hidden=true are skipped.
.PP
\&\s-1UTF\-8\s0 is supported, of course, but dmenu does not support displaying all
glyphs. E.g., xfce4\-terminal.desktop's Name[fi]=Pääte will be displayed just
fine, but not its Name[ru]=Терминал.
.SH "OPTIONS"
.IX Header "OPTIONS"
.IP "\fB\-\-dmenu=command\fR" 4
.IX Item "--dmenu=command"
Execute command instead of 'dmenu \-i'. This option can be used to pass custom
parameters to dmenu, or to make i3\-dmenu\-desktop start a custom (patched?)
version of dmenu.
.IP "\fB\-\-entry\-type=type\fR" 4
.IX Item "--entry-type=type"
Display the (localized) \*(L"Name\*(R" (type = name), the command (type = command) or
the (*.desktop) filename (type = filename) in dmenu. This option can be
specified multiple times.
.Sp
Examples are \*(L"\s-1GNU\s0 Image Manipulation Program\*(R" (type = name), \*(L"gimp\*(R" (type =
command), and \*(L"libreoffice-writer\*(R" (type = filename).
.SH "VERSION"
.IX Header "VERSION"
Version 1.5
.SH "AUTHOR"
.IX Header "AUTHOR"
Michael Stapelberg, \f(CW\*(C`<michael at i3wm.org>\*(C'\fR
.SH "LICENSE AND COPYRIGHT"
.IX Header "LICENSE AND COPYRIGHT"
Copyright 2012 Michael Stapelberg.
.PP
This program is free software; you can redistribute it and/or modify it
under the terms of the \s-1BSD\s0 license.