Difference between revisions of "DMenu"

imported>Stagiros
(Marked this version for translation)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<languages/>
__TOC__


<translate>
=Overview= <!--T:1-->


<br />
<!--T:2-->
=Overview=
dmenu is a dynamic menu for X, originally designed for dwm. It manages large numbers of user-defined menu items efficiently.


=Tips & Tricks= <!--T:3-->
==warning: no locale support== <!--T:4-->
Sometimes for no apparent reason users face the following dmenu problem:
Sometimes for no apparent reason users face the following dmenu problem:
<br />
 
<!--T:5-->
A. When calling dmenu from a key binding in their environment dmenu comes up but when they continue to select anything in dmenu, it disappears from the screen and does not execute anything.
A. When calling dmenu from a key binding in their environment dmenu comes up but when they continue to select anything in dmenu, it disappears from the screen and does not execute anything.
<br />
B. Trying to start dmenu from the terminal, the error "warning: no locale support" appears.
B. Trying to start dmenu from the terminal, the error:
<pre>"warning: no locale support"</pre> appears.
<br />
 
=Solution=


<!--T:6-->
Assuming that you have correctly set up your system's LOCALE settings, here is a simple solution to this problem:
Assuming that you have correctly set up your system's LOCALE settings, here is a simple solution to this problem:
<br /><br />
Edit file /usr/bin/dmenu_run
<pre>sudo nano /usr/bin/dmenu_run</pre>


Add a line setting your LANG variable to your actual language locale before the line that calls dmenu:
<!--T:7-->
<pre>#!/bin/sh
Edit file '''/usr/bin/dmenu_run''' and add a line setting your LANG variable to your actual language locale before the line that calls dmenu:
LANG="en_GB.UTF-8"                                   <-- This is the line added. Change it according to your locale.
#!/bin/sh
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} &</pre>
LANG="en_GB.UTF-8"                                 <-- Change it according to your locale.
and save.
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"}
<br />
</translate>
<br />
Now dmenu works correctly.


[[Category:Contents Page]]
[[Category:Contents Page{{#translation:}}]]
[[Category:Applications{{#translation:}}]]

Latest revision as of 16:29, 7 September 2021

Other languages:
English • ‎Türkçe • ‎русский

Overview

dmenu is a dynamic menu for X, originally designed for dwm. It manages large numbers of user-defined menu items efficiently.


Tips & Tricks

warning: no locale support

Sometimes for no apparent reason users face the following dmenu problem:

A. When calling dmenu from a key binding in their environment dmenu comes up but when they continue to select anything in dmenu, it disappears from the screen and does not execute anything. B. Trying to start dmenu from the terminal, the error "warning: no locale support" appears.

Assuming that you have correctly set up your system's LOCALE settings, here is a simple solution to this problem:

Edit file /usr/bin/dmenu_run and add a line setting your LANG variable to your actual language locale before the line that calls dmenu:

#!/bin/sh
LANG="en_GB.UTF-8"                                 <-- Change it according to your locale.
dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"}