diff options
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c index acc6398..48e9179 100644 --- a/src/actions.c +++ b/src/actions.c @@ -97,6 +97,7 @@ static user_command user_commands[] = {"defwingravity", cmd_defwingravity, arg_STRING}, {"deffgcolor", cmd_deffgcolor, arg_STRING}, {"defbgcolor", cmd_defbgcolor, arg_STRING}, + {"defbarpadding", cmd_defbarpadding, arg_STRING}, /* Commands to help debug ratpoison. */ #ifdef DEBUG @@ -2040,3 +2041,26 @@ cmd_link (int interactive, void *data) return NULL; } + +char * +cmd_defbarpadding (int interactive, void *data) +{ + int x, y; + + if (data == NULL || sscanf (data, "%d %d", &x, &y) < 2) + { + message (" defbarpadding: Two arguments required "); + return NULL; + } + + if (x >= 0 && y >= 0) + { + defaults.bar_x_padding = x; + defaults.bar_y_padding = y; + } + else + { + message (" defbarpadding: Bad argument "); + } + return NULL; +} |