You are not logged in.
Pages: 1
Quick question. Is there a way to change the size of dmenu? Padding? Margin?
Thanks.
Last edited by Roline (2010-02-07 22:26:36)
Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch
Offline
"man dmenu" shows that you can change the font size and fore/background colours of dmenu, but that is it. Otherwise margins and paddings might be controlled by whatever window manager you use - which is what??
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
There's a heavily patched version of dmenu in the AUR. It's awesome, try it.
Offline
"man dmenu" shows that you can change the font size and fore/background colours of dmenu, but that is it. Otherwise margins and paddings might be controlled by whatever window manager you use - which is what??
Openbox - with margin (~/.config/openbox/rc.xml)
<margins>
<top>15</top>
<bottom>26</bottom>
<left>10</left>
<right>10</right>
</margins>
But dmenu doesnt get initially placed (placed top or bottom), so it overrides the margins?
PS: I open dmenu with a script (for the keybinding)
~/.scripts/OBDmenu.sh:
#!/bin/sh
exec $(dmenu_path | dmenu -nb '#303030' -nf '#8f8f8f' -sb '#303030' -sf '#e0e0e0' && eval "exec $exe")
Is it possible to change the script so it fits the margins I want? (see above).
Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch
Offline
Roline,
Put the fonts, colors, margins, etc... from the man page into your script, then dmenu will run with those new settings whenever the script is called.
So, if you want your 15 pixel margin at the top recognized, or your 26 pixel margin at the bottom you will need to put the -y offset option into your script with the appropriate nbr of pixels to make it do what you want. Same with the 10 pixels on either side, that would be the -x offset option.
HTH,
Knute
Offline
Roline,
Put the fonts, colors, margins, etc... from the man page into your script, then dmenu will run with those new settings whenever the script is called.
So, if you want your 15 pixel margin at the top recognized, or your 26 pixel margin at the bottom you will need to put the -y offset option into your script with the appropriate nbr of pixels to make it do what you want. Same with the 10 pixels on either side, that would be the -x offset option.
HTH,
Thanks for the quick replay!
I tried the xoffset and yoffset(with and without the -b option) but I coudn't get it to work properly. Also, man dmenu doesn't show offset variable, thus no offset options. But I found a way to fix it! This patch by fresch added the options. So now the script shows:
#!/bin/sh
exec $(dmenu_path | dmenu -nb '#303030' -nf '#8f8f8f' -sb '#303030' -sf '#e0e0e0' -x 10 -w 1260 && eval "exec $exe")
-x 10 for left 10 pix and my screen is 1280 so the -w needs to be 1260 for the left "margin".
Last edited by Roline (2010-02-07 23:38:50)
Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch
Offline
Pages: 1