-
Notifications
You must be signed in to change notification settings - Fork 0
/
apps.h
147 lines (138 loc) · 5.37 KB
/
apps.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
/*
* Wallpapersetter wrapper for common purposes.
*
* Copyright (c) 2004 - 2016 Han Boetes <[email protected]>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*
*/
#ifndef _apps_h
#define _apps_h
static char standardok[] =
"is a nice wallpapersetter. You won't have any problems.\n";
static char standardrant[] =
"sets the `wrong' wallpaper. Transparency for fluxbox\n"
"and apps like aterm and xchat won't work right with it.\n"
"Consider installing feh, wmsetbg (from windowmaker) or\n"
"Esetroot (from Eterm) and I'll use them instead.\n";
/*
* This struct contains all the settings for the wallpaper-setters.
*/
struct app
{
char *name;
char *full;
char *aspect;
char *tile;
char *center;
char *debug;
};
/*
* Wallpapersetters here should be ordered in order of preference, the most
* prefered on top. Terminate with { NULL }.
*/
static struct app apps[] =
{
{
/* name */ "Esetroot",
/* full */ "-scale",
/* tile */ "-fit",
/* aspect */ "",
/* center */ "-c",
/* debug */ standardok
},
{
/* name */ "feh",
/* full */ "--bg-scale",
/* tile */ "--bg-tile",
/* aspect */ "--bg-scale",
/* center */ "--bg-center",
/* debug */ standardok
},
{
/* name */ "xsri",
/* full */ "--center-x --center-y --scale-width 100 --scale-height 100",
/* tile */ "--tile",
/* center */ "--center-x --center-y --color black",
/* aspect */ "--center-x --center-y --scale-width 100 "
"--scale-height 100 --keep-aspect --color black",
/* debug */ standardok
},
{
/* name */ "wmsetbg",
/* full */ "-s -S",
/* tile */ "-t",
/* center */ "-b black -e",
/* aspect */ "-b black -a",
/* debug */ standardok
},
{
/* name */ "chbg",
/* full */ "-once -mode maximize",
/* tile */ "-once -mode tile",
/* center */ "-once -mode center",
/* aspect */ "-once -mode smart -max_grow 100 -max_size 100",
/* debug */ "chbg supports all features but it doesn't report errors. "
"I reported this bug to the chbg developers."
},
{
/* name */ "display",
/* full */ "`xwininfo -root 2> /dev/null|grep geom` -window root",
/* tile */ "-window root",
/* center */ "-backdrop -window root",
/* aspect */ "`xwininfo -root 2> /dev/null|grep geom` -window root",
/* debug */ standardrant
},
{
/* name */ "xsetbg",
/* full */ "-fullscreen -border black",
/* tile */ "-border black",
/* center */ "-center -border black",
/* aspect */ "-fullscreen -border black",
/* debug */ standardrant
},
{
/* name */ "xli",
/* full */ "-fullscreen -onroot -quiet -border black",
/* tile */ "-onroot -quiet -border black",
/* center */ "-center -onroot -quiet -border black",
/* aspect */ "-fullscreen -onroot -quiet -border black",
/* debug */ standardrant
},
{
/* name */ "qiv",
/* full */ "--root_s",
/* tile */ "--root_t",
/* center */ "--root",
/* aspect */ "-m --root",
/* debug */ standardrant
},
{
/* name */ "xv",
/* full */ "-max -smooth -root -quit",
/* tile */ "-root -quit",
/* center */ "-rmode 5 -root -quit",
/* aspect */ "-maxpect -smooth -root -quit",
/* debug */ standardrant
},
/* Terminate. NULL's will do, we only have to test .name for
* NULLness. */
{ NULL, NULL, NULL, NULL, NULL, NULL }
};
#endif /* _apps_h */