blob: c8e7bda4d08fe9bcb89fc680d310fd870dfc0578 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# Dmenu with the following patches:
- xresources
- center
- border
- xyz
- fuzzymatch
- fuzzyhighlight
The center patch
adds the -c parameter for centering dmenu
The border patch
adds the -bw parameter followed by an integer (width in pixels)
dmenu -bw 4 -c -l 4 -p "Power: "
I've added border color to the xressources patch.
The xyz patch:
The '-x' and '-y' options set the window position on the target monitor (0 if one is not supplied with '-m')
If option '-b' is used, the y offset is computed from the bottom
The '-x' and '-y' accept negative values
The '-z' option sets the window width
I've also modified the width calculation to accept a minimum width that is set in config.def.h
lines 835 and 835, and works with -c
The xresources patch
makes dmenu read the .Xresources file enabling<br>
on the fly color matching with Pywal16
### .Xressources or Pywal template
! dmenu
dmenu.background: {color1}
dmenu.foreground: {color15}
dmenu.selbackground: {color0}
dmenu.selforeground: {color15}
dmenu.border: {color4}
dmenu.selhighlightforeground: {color12}
dmenu.selhighlightbackground: {color0}
dmenu.normhighlightforeground: {color7}
dmenu.normhighlightbackground: {color1}
The fuzzymatch and fuzzyhighlight patches
I've adapted fuzzyhighlight to the xressources patch
|