some improvements, dmenu.conf is now theme.conf compatible
This commit is contained in:
parent
5f54e20a2b
commit
be13a65ff5
|
@ -518,7 +518,7 @@ togglehighlight(Arg *arg)
|
|||
void
|
||||
setprofile(Arg *arg)
|
||||
{
|
||||
if (!system("spmenu_profile --spmenu-set-profile"))
|
||||
if (!system("command -v spmenu_profile > /dev/null && spmenu_profile --spmenu-set-profile"))
|
||||
die("spmenu: failed to run profile menu\n");
|
||||
else
|
||||
exit(0);
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
/* spmenu dmenu theme
|
||||
*
|
||||
* This config should match vanilla dmenu as closely as possible. I am unable to tell the difference between the two. It should be noted though that SGR sequences are still displayed, so for this reason I've set them all to white.
|
||||
*
|
||||
* Also note that this config disables .Xresources, Pango and SGR sequence support, you can reenable it below if you want.
|
||||
* This config should match vanilla dmenu as closely as possible. I am unable to tell the difference between the two. Note that neither Pango markup or SGR sequences are interpreted and they will be displayed as-is. You can change this if you want.
|
||||
* For perfect dmenu compatibility, you may want to remap keybindings, making sure all of them work in "any mode".
|
||||
*
|
||||
* To use, simply copy to ~/.config/spmenu/theme.conf
|
||||
*/
|
||||
|
||||
spmenu = {
|
||||
theme = {
|
||||
// General window options
|
||||
window = ( { alpha = 0;
|
||||
} );
|
||||
|
@ -125,18 +125,6 @@ spmenu = {
|
|||
image = 1;
|
||||
} );
|
||||
|
||||
// Match options
|
||||
match = ( { sort = 1;
|
||||
casesensitive = 1;
|
||||
fuzzy = 0;
|
||||
} );
|
||||
|
||||
// Xrdb
|
||||
// .Xresources is disabled by default
|
||||
xrdb = ( { xresources = 0;
|
||||
global = 0;
|
||||
} );
|
||||
|
||||
// Pango
|
||||
pango = ( { item = 0;
|
||||
highlight = 0;
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
/* This is a sample theme.
|
||||
* It simply sets the font to Terminus.
|
||||
*
|
||||
* You can include this from your spmenu.conf using `@include "path/to/sample.theme`. Put it inside `text = ();`
|
||||
* Simply copy this to ~/.config/spmenu/theme.conf to apply.
|
||||
*/
|
||||
|
||||
font = "Terminus 8";
|
||||
theme = {
|
||||
text = ( { font = "Terminus 8";
|
||||
} );
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue