-
Notifications
You must be signed in to change notification settings - Fork 0
/
dmenuaction.h
51 lines (51 loc) · 1.41 KB
/
dmenuaction.h
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
47
48
49
50
51
static const DmenuArg actionarg = {
.items = (DmenuItem[]){
{
.name = "toggle settings",
.arg = {
.v = &(DmenuArg){
.items = (DmenuItem[]){
{ .name = "gaps", .func = togglegaps },
{ .name = "borders", .func = toggleborders },
{ .name = "bar", .func = togglebar },
{ .name = "swallowing", .func = toggleswallow },
{ 0 }
},
.prompt = "Toggle:",
}
}
}, {
.name = "change layout",
.arg = {
.v = &(DmenuArg){
.items = (DmenuItem[]){
{ .name = "tiling", .arg = {.v = &layouts[0] } },
{ .name = "bottom stack", .arg = {.v = &layouts[1] } },
{ .name = "monocle", .arg = {.v = &layouts[2] } },
{ .name = "deck", .arg = {.v = &layouts[3] } },
{ .name = "centered master", .arg = {.v = &layouts[4] } },
{ .name = "centered floating master", .arg = {.v = &layouts[5] } },
{ .name = "floating", .arg = {.v = &layouts[6] } },
{ 0 }
},
.prompt = "Layout:",
.func = setlayout,
}
}
}, {
.name = "reload xresources", .func = xrdb
}, {
.name = "set master factor",
.arg = {
.v = &(DmenuArg){
.items = (DmenuItem[]){{0}},
.prompt = "Set master factor to:",
.func = strsetmfact,
.strarg = 1,
}
}
}, { 0 }
},
.prompt = "What to do?",
.func = dmenuaction,
};