diff options
author | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-18 01:38:25 +0200 |
---|---|---|
committer | Jari Vetoniemi <mailroxas@gmail.com> | 2015-01-18 01:38:25 +0200 |
commit | f2eaf599f6bb585d1a4921f37a073ed09c619de9 (patch) | |
tree | 38b825d2e23694856c5f8a8b38ee499b30fecd50 /client | |
parent | 9c541d0b4261acd656171a03e6bfd2719f91286d (diff) | |
download | bemenu-f2eaf599f6bb585d1a4921f37a073ed09c619de9.tar.gz bemenu-f2eaf599f6bb585d1a4921f37a073ed09c619de9.tar.bz2 bemenu-f2eaf599f6bb585d1a4921f37a073ed09c619de9.zip |
Change default scrollbar style and make colors configurable
Diffstat (limited to 'client')
-rw-r--r-- | client/common/common.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/client/common/common.c b/client/common/common.c index 72335e7..982f89a 100644 --- a/client/common/common.c +++ b/client/common/common.c @@ -95,7 +95,9 @@ usage(FILE *out, const char *name) " --hb defines the highlighted background color. (wx)\n" " --hf defines the highlighted foreground color. (wx)\n" " --sb defines the selected background color. (wx)\n" - " --sf defines the selected foreground color. (wx)\n", out); + " --sf defines the selected foreground color. (wx)\n" + " --scb defines the scrollbar background color. (wx)\n" + " --scf defines the scrollbar foreground color. (wx)\n", out); exit((out == stderr ? EXIT_FAILURE : EXIT_SUCCESS)); } @@ -132,6 +134,8 @@ parse_args(struct client *client, int *argc, char **argv[]) { "hf", required_argument, 0, 0x109 }, { "sb", required_argument, 0, 0x110 }, { "sf", required_argument, 0, 0x111 }, + { "scb", required_argument, 0, 0x114 }, + { "scf", required_argument, 0, 0x115 }, { "disco", no_argument, 0, 0x112 }, { 0, 0, 0, 0 } @@ -222,6 +226,12 @@ parse_args(struct client *client, int *argc, char **argv[]) case 0x111: client->colors[BM_COLOR_SELECTED_FG] = optarg; break; + case 0x114: + client->colors[BM_COLOR_SCROLLBAR_BG] = optarg; + break; + case 0x115: + client->colors[BM_COLOR_SCROLLBAR_FG] = optarg; + break; case 0x112: disco(); |