.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" 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 .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . 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 2024-05-01 "perl v5.38.2" "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] [\-\-show\-duplicates] .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 "sed". 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 "applications" 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 "Name" value in the localized version depending on LC_MESSAGES as specified in the Desktop Entry Specification. .PP You can pass a filename or URL (%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 "GNU Emacs 24" with the patch /tmp/foobar.txt, you would type "emacs", press TAB, type " /tmp/foobar.txt" and press ENTER. .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 UTF\-8 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) "Name" (type = name), the command (type = command) or the (*.desktop) filename (type = filename) in dmenu. This option can be specified multiple times. Duplicates will be removed, see '\-\-show\-duplicates'. .Sp Examples are "GNU Image Manipulation Program" (type = name), "gimp" (type = command), and "libreoffice-writer" (type = filename). .IP \fB\-\-show\-duplicates\fR 4 .IX Item "--show-duplicates" Show duplicates if '\-\-entry\-type' is specified multiple times. .SH VERSION .IX Header "VERSION" Version 1.5 .SH AUTHOR .IX Header "AUTHOR" Michael Stapelberg, \f(CW\*(C`\*(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 BSD license.