| 58 |
-r, --remove-theme THEME Remove the THEME\n\ |
-r, --remove-theme THEME Remove the THEME\n\ |
| 59 |
--info Display some information\n\ |
--info Display some information\n\ |
| 60 |
-c, --create-theme [args...] Create a theme in an interactive mode if no arguments\n\ |
-c, --create-theme [args...] Create a theme in an interactive mode if no arguments\n\ |
| 61 |
Inline mode arguments (this mode must be used with caution)\n\ |
Inline mode arguments, the following arguments are obligatory\n\ |
| 62 |
|
see the man page for a complete list\n\ |
| 63 |
--name NAME Set the NAME of the new Splashy theme\n\ |
--name NAME Set the NAME of the new Splashy theme\n\ |
|
--version VERSION Set the VERSION of the new Splashy theme\n\ |
|
|
--description DESC Set the DESC of the new Splashy theme\n\ |
|
|
--urls URLs Set the related URLs for this theme\n\ |
|
|
--author AUTHOR Set the AUTHOR(s) of the new Splashy theme\n\ |
|
| 64 |
--boot-image PATH Upload the boot image located at the specified PATH\n\ |
--boot-image PATH Upload the boot image located at the specified PATH\n\ |
| 65 |
--shutdown-image PATH Upload the shutdown image located at the specified PATH\n\ |
--shutdown-image PATH Upload the shutdown image located at the specified PATH\n\ |
| 66 |
--error-image PATH Upload the error image located at the specified PATH\n\ |
--error-image PATH Upload the error image located at the specified PATH\n") |
|
--background-width WIDTH Set the WIDTH of the background\n\ |
|
|
--background-height HEIGHT Set the HEIGHT of the background\n\ |
|
|
--progressbar-x X-POSITION Set the X-POSITION of the progress bar (percentage if the background height and width are set, else pixel units)\n\ |
|
|
--progressbar-y Y-POSITION Set the Y-POSITION of the progress bar (percentage if the background height and width are set, else pixel units)\n\ |
|
|
--progressbar-width WIDTH Set the WIDTH of the progress bar (percentage if the background height and width are set, else pixel units)\n\ |
|
|
--progressbar-height HEIGHT Set the HEIGHT of the progress bar (percentage if the background height and width are set, else pixel units)\n\ |
|
|
--progressbar-red RED Set the RED channel of the progress bar (0->255)\n\ |
|
|
--progressbar-green GREEN Set the GREEN channel of the progress bar (0->255)\n\ |
|
|
--progressbar-blue BLUE Set the BLUE channel of the progress bar (0->255)\n\ |
|
|
--progressbar-alpha ALPHA Set the ALPHA channel of the progress bar (0->255)\n\ |
|
|
--progressbar-border-show yes|no Set a border around the progressbar\n\ |
|
|
--progressbar-border-red RED Set the RED channel of the border around the progressbar\n\ |
|
|
--progressbar-border-green GREEN Set the GREEN channel of the border around the progressbar\n\ |
|
|
--progressbar-border-blue BLUE Set the BLUE channel of the border around the progressbar\n\ |
|
|
--progressbar-border-alpha ALPHA Set the ALPHA channel of the border around the progressbar\n\ |
|
|
--textbox-show yes|no Set a text box\n\ |
|
|
--textbox-x X-POS Set the X-POS of the text box (percentage if the background height and width are set, else pixel units)\n\ |
|
|
--textbox-y Y-POS Set the Y-POS of the text box (percentage if the background height and width are set, else pixel units)\n\ |
|
|
--textbox-width WIDTH Set the WIDTH of the text box (percentage if the background height and width are set, else pixel units)\n\ |
|
|
--textbox-height HEIGHT Set the HEIGHT of the text area (percentage if the background height and width are set, else pixel units)\n\ |
|
|
--textbox-red RED Set the RED channel of the text area (0->255)\n\ |
|
|
--textbox-green GREEN Set the GREEN channel of the text area (0->255)\n\ |
|
|
--textbox-blue BLUE Set the BLUE channel of the text area (0->255)\n\ |
|
|
--textbox-alpha ALPHA Set the ALPHA channel of the text area (0->255)\n\ |
|
|
--textbox-border-show yes|no Set a border around the text area\n\ |
|
|
--textbox-border-red RED Set the RED channel of the border of the text area (0->255)\n\ |
|
|
--textbox-border-green GREEN Set the GREEN channel of the border of the text area (0->255)\n\ |
|
|
--textbox-border-blue BLUE Set the BLUE channel of the border of the text area (0->255)\n\ |
|
|
--textbox-border-alpha ALPHA Set the ALPHA channel of the border of the text area (0->255)\n\ |
|
|
--text-font-file FILE Upload the FONT file\n\ |
|
|
--text-font-height HEIGHT Set the HEIGHT of the text area font\n\ |
|
|
--text-font-red RED Set the RED channel of the text area font (0->255)\n\ |
|
|
--text-font-green GREEN Set the GREEN channel of the text area font (0->255)\n\ |
|
|
--text-font-blue BLUE Set the BLUE channel of the text area font (0->255)\n\ |
|
|
--text-font-alpha ALPHA Set the ALPHA channel of the text area font (0->255)\n\ |
|
|
--autoverbose yes|no Set if Splashy turn into verbose mode when an error appears at boot\n\ |
|
|
--progressbaronboot yes|no Set if Splashy shows a progress bar on boot \n\ |
|
|
--progressbaronshutdown yes|no Set if Splashy shows a progress bar on shutdown \n\ |
|
|
--fadein yes|no Set if Splashy appears smoothly\n\ |
|
|
--fadeout yes|no Set if Splashy disappears smoothly\n") |
|
| 67 |
#define USAGE \ |
#define USAGE \ |
| 68 |
_("usage: %s [option] arg \n\ |
_("usage: %s [option] arg \n\ |
| 69 |
[-h, --help][-s, --set-theme THEME][-i, --install-theme THEME.tar.gz]\n\ |
[-h, --help][-s, --set-theme THEME][-i, --install-theme THEME.tar.gz]\n\ |
| 70 |
[-r, --remove-theme THEME][--info][-c, --create-theme [args...]][-g, --get-key XPATH]\n\ |
[-r, --remove-theme THEME][--info][-c, --create-theme [args...]]\n\ |
| 71 |
|
[-g, --get-key XPATH]\n\ |
| 72 |
See --help for more information\n") |
See --help for more information\n") |
| 73 |
|
|
| 74 |
static struct option long_options[] = { |
static struct option long_options[] = { |
| 131 |
{"progressbaronshutdown", required_argument, 0, 'T'}, |
{"progressbaronshutdown", required_argument, 0, 'T'}, |
| 132 |
{"fadein", required_argument, 0, 'U'}, |
{"fadein", required_argument, 0, 'U'}, |
| 133 |
{"fadeout", required_argument, 0, 'V'}, |
{"fadeout", required_argument, 0, 'V'}, |
| 134 |
|
{"progressbar-background-red", required_argument, 0, 'W'}, |
| 135 |
|
{"progressbar-background-green", required_argument, 0, 'X'}, |
| 136 |
|
{"progressbar-background-blue", required_argument, 0, 'Y'}, |
| 137 |
|
{"progressbar-background-alpha", required_argument, 0, 'Z'}, |
| 138 |
{0, 0, 0, 0} |
{0, 0, 0, 0} |
| 139 |
}; |
}; |
| 140 |
|
|
| 202 |
break; |
break; |
| 203 |
case 'b': |
case 'b': |
| 204 |
inline_theme->version = |
inline_theme->version = |
| 205 |
g_strtod (optarg, 0); |
g_strdup (optarg); |
| 206 |
break; |
break; |
| 207 |
case 'c': |
case 'c': |
| 208 |
inline_theme->description = |
inline_theme->description = |
| 388 |
inline_theme->fadeout = |
inline_theme->fadeout = |
| 389 |
g_strdup (optarg); |
g_strdup (optarg); |
| 390 |
break; |
break; |
| 391 |
|
case 'W': |
| 392 |
|
inline_theme->pb_bg_red = |
| 393 |
|
g_strtod (optarg, 0); |
| 394 |
|
break; |
| 395 |
|
case 'X': |
| 396 |
|
inline_theme->pb_bg_green = |
| 397 |
|
g_strtod (optarg, 0); |
| 398 |
|
break; |
| 399 |
|
case 'Y': |
| 400 |
|
inline_theme->pb_bg_blue = |
| 401 |
|
g_strtod (optarg, 0); |
| 402 |
|
break; |
| 403 |
|
case 'Z': |
| 404 |
|
inline_theme->pb_bg_alpha = |
| 405 |
|
g_strtod (optarg, 0); |
| 406 |
|
break; |
| 407 |
} |
} |
| 408 |
} |
} |
| 409 |
create_theme (inline_theme); |
create_theme (inline_theme); |
| 414 |
|
|
| 415 |
if (inline_theme->name) |
if (inline_theme->name) |
| 416 |
g_free (inline_theme->name); |
g_free (inline_theme->name); |
| 417 |
|
if (inline_theme->version) |
| 418 |
|
g_free (inline_theme->version); |
| 419 |
if (inline_theme->description) |
if (inline_theme->description) |
| 420 |
g_free (inline_theme->description); |
g_free (inline_theme->description); |
| 421 |
if (inline_theme->urls) |
if (inline_theme->urls) |