From 4f60256cd10cd606f893cdc040eb1efc8f24f6e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Luis=20Boya=20Garc=C3=ADa?= Date: Mon, 30 Mar 2015 15:38:04 +0200 Subject: [PATCH] Allow to add a vertical offset to the text --- README.pod | 6 +++++- lemonbar.c | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.pod b/README.pod index afbed83..a1eb7f8 100644 --- a/README.pod +++ b/README.pod @@ -6,7 +6,7 @@ lemonbar - Featherweight lemon-scented bar =head1 SYNOPSIS -I [-h | -g IBIB<+>IB<+>I | -b | -d | -f I | -p | -u I | -B I | -F I] +I [-h | -g IBIB<+>IB<+>I | -b | -d | -f I | -p | -u I | -B I | -F I | -o I] =head1 DESCRIPTION @@ -52,6 +52,10 @@ Set the background color of the bar. I might be either in hex format (#aa Set the foreground color of the bar. Accepts the same color formats as B<-B>. +=item B<-o> I + +Add a vertical offset to the text. I must be a number and can be negative. I<-o -3> will push the text 3 pixels up. + =back =head1 FORMATTING diff --git a/lemonbar.c b/lemonbar.c index 99afea9..87858df 100644 --- a/lemonbar.c +++ b/lemonbar.c @@ -1374,7 +1374,7 @@ main (int argc, char **argv) switch (ch) { case 'h': printf ("lemonbar version %s\n", VERSION); - printf ("usage: %s [-h | -g | -b | -d | -f | -a | -p | -u | -o | -B | -F]\n" + printf ("usage: %s [-h | -g | -b | -d | -f | -a | -p | -u | -B | -F | -o]\n" "\t-h Show this help\n" "\t-g Set the bar geometry {width}x{height}+{xoffset}+{yoffset}\n" "\t-b Put the bar at the bottom of the screen\n" @@ -1382,9 +1382,9 @@ main (int argc, char **argv) "\t-f Bar font list, comma separated\n" "\t-p Don't close after the data ends\n" "\t-u Set the underline/overline height in pixels\n" - "\t-o Add a vertical offset to the text, it can be negative.\n" "\t-B Set background color in #AARRGGBB\n" - "\t-F Set foreground color in #AARRGGBB\n", argv[0]); + "\t-F Set foreground color in #AARRGGBB\n" + "\t-o Add a vertical offset to the text, it can be negative\n", argv[0]); exit (EXIT_SUCCESS); case 'g': (void)parse_geometry_string(optarg, geom_v); break; case 'p': permanent = true; break;