mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
Use --remove
consistently
This commit is contained in:
parent
1f59ceea92
commit
9a0f6ba8eb
3 changed files with 4 additions and 4 deletions
|
@ -805,7 +805,7 @@ rule \fIOPTIONS\fR
|
||||||
Create a new rule (<pattern> must match the class or instance name)\&.
|
Create a new rule (<pattern> must match the class or instance name)\&.
|
||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
\fB\-r\fR, \fB\-\-rm\fR <rule_uid>\&...
|
\fB\-r\fR, \fB\-\-remove\fR <rule_uid>\&...
|
||||||
.RS 4
|
.RS 4
|
||||||
Remove the rules with the given UIDs\&.
|
Remove the rules with the given UIDs\&.
|
||||||
.RE
|
.RE
|
||||||
|
|
|
@ -492,7 +492,7 @@ Options
|
||||||
*-a*, *--add* <pattern> [-d 'DESKTOP_SEL' [--follow]] [--floating] [--focus] [--unmanage] [--one-shot]::
|
*-a*, *--add* <pattern> [-d 'DESKTOP_SEL' [--follow]] [--floating] [--focus] [--unmanage] [--one-shot]::
|
||||||
Create a new rule (<pattern> must match the class or instance name).
|
Create a new rule (<pattern> must match the class or instance name).
|
||||||
|
|
||||||
*-r*, *--rm* <rule_uid>...::
|
*-r*, *--remove* <rule_uid>...::
|
||||||
Remove the rules with the given UIDs.
|
Remove the rules with the given UIDs.
|
||||||
|
|
||||||
*-l*, *--list* [<pattern>]::
|
*-l*, *--list* [<pattern>]::
|
||||||
|
|
|
@ -282,7 +282,7 @@ bool cmd_desktop(char **args, int num)
|
||||||
strncpy(trg.desktop->name, *args, sizeof(trg.desktop->name));
|
strncpy(trg.desktop->name, *args, sizeof(trg.desktop->name));
|
||||||
ewmh_update_desktop_names();
|
ewmh_update_desktop_names();
|
||||||
put_status();
|
put_status();
|
||||||
} else if (streq("-r", *args) || streq("--rm", *args)) {
|
} else if (streq("-r", *args) || streq("--remove", *args)) {
|
||||||
if (trg.desktop->root == NULL
|
if (trg.desktop->root == NULL
|
||||||
&& trg.monitor->desk_head != trg.monitor->desk_tail) {
|
&& trg.monitor->desk_head != trg.monitor->desk_tail) {
|
||||||
remove_desktop(trg.monitor, trg.desktop);
|
remove_desktop(trg.monitor, trg.desktop);
|
||||||
|
@ -511,7 +511,7 @@ bool cmd_rule(char **args, int num, char *rsp) {
|
||||||
num--, args++;
|
num--, args++;
|
||||||
}
|
}
|
||||||
add_rule(rule);
|
add_rule(rule);
|
||||||
} else if (streq("-r", *args) || streq("--rm", *args)) {
|
} else if (streq("-r", *args) || streq("--remove", *args)) {
|
||||||
num--, args++;
|
num--, args++;
|
||||||
if (num < 1)
|
if (num < 1)
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue