summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2015-01-20 18:42:29 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2015-01-20 18:42:29 +0200
commiteb46ba7bdce0d7a4efbb0a3359e8d6a99c14a3bc (patch)
tree0d7834c6ebe6addafded2e40d669e2750c6c5f4b /client
parent7d019e767b8dc3e69d6f17ad4f4d69e3948257e1 (diff)
downloadbemenu-eb46ba7bdce0d7a4efbb0a3359e8d6a99c14a3bc.tar.gz
bemenu-eb46ba7bdce0d7a4efbb0a3359e8d6a99c14a3bc.tar.bz2
bemenu-eb46ba7bdce0d7a4efbb0a3359e8d6a99c14a3bc.zip
Remove bg color option as you never see the real bg anyways.
Diffstat (limited to 'client')
-rw-r--r--client/common/common.c25
1 files changed, 10 insertions, 15 deletions
diff --git a/client/common/common.c b/client/common/common.c
index 14837cb..fab2a58 100644
--- a/client/common/common.c
+++ b/client/common/common.c
@@ -85,7 +85,6 @@ usage(FILE *out, const char *name)
" -f, --grab grabs the keyboard before reading stdin. (x)\n"
" -m, --monitor index of monitor where menu will appear. (x)\n"
" --fn defines the font to be used ('name [size]'). (wx)\n"
- " --bg defines the background color. (wx)\n"
" --tb defines the title background color. (wx)\n"
" --tf defines the title foreground color. (wx)\n"
" --fb defines the filter background color. (wx)\n"
@@ -117,13 +116,12 @@ parse_args(struct client *client, int *argc, char **argv[])
{ "prompt", required_argument, 0, 'p' },
{ "index", required_argument, 0, 'I' },
{ "prefix", required_argument, 0, 'P' },
- { "scrollbar", required_argument, 0, 0x113 },
+ { "scrollbar", required_argument, 0, 0x100 },
{ "bottom", no_argument, 0, 'b' },
{ "grab", no_argument, 0, 'f' },
{ "monitor", required_argument, 0, 'm' },
- { "fn", required_argument, 0, 0x100 },
- { "bg", required_argument, 0, 0x101 },
+ { "fn", required_argument, 0, 0x101 },
{ "tb", required_argument, 0, 0x102 },
{ "tf", required_argument, 0, 0x103 },
{ "fb", required_argument, 0, 0x104 },
@@ -134,10 +132,10 @@ 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 },
+ { "scb", required_argument, 0, 0x112 },
+ { "scf", required_argument, 0, 0x113 },
- { "disco", no_argument, 0, 0x112 },
+ { "disco", no_argument, 0, 0x114 },
{ 0, 0, 0, 0 }
};
@@ -176,7 +174,7 @@ parse_args(struct client *client, int *argc, char **argv[])
case 'I':
client->selected = strtol(optarg, NULL, 10);
break;
- case 0x113:
+ case 0x100:
client->scrollbar = (!strcmp(optarg, "always") ? BM_SCROLLBAR_ALWAYS : (!strcmp(optarg, "autohide") ? BM_SCROLLBAR_AUTOHIDE : BM_SCROLLBAR_NONE));
break;
@@ -190,11 +188,8 @@ parse_args(struct client *client, int *argc, char **argv[])
client->monitor = strtol(optarg, NULL, 10);
break;
- case 0x100:
- client->font = optarg;
- break;
case 0x101:
- client->colors[BM_COLOR_BG] = optarg;
+ client->font = optarg;
break;
case 0x102:
client->colors[BM_COLOR_TITLE_BG] = optarg;
@@ -226,14 +221,14 @@ parse_args(struct client *client, int *argc, char **argv[])
case 0x111:
client->colors[BM_COLOR_SELECTED_FG] = optarg;
break;
- case 0x114:
+ case 0x112:
client->colors[BM_COLOR_SCROLLBAR_BG] = optarg;
break;
- case 0x115:
+ case 0x113:
client->colors[BM_COLOR_SCROLLBAR_FG] = optarg;
break;
- case 0x112:
+ case 0x114:
disco();
break;