mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Throw a warning when using old commandline arguments.
* Give error on -now, -rnow, -snow, -key, -skey, -rkey * Update manpage.
This commit is contained in:
parent
e47ebf359f
commit
bda97e0849
4 changed files with 23 additions and 47 deletions
|
@ -59,27 +59,13 @@ MIT/X11
|
||||||
**rofi** can be used in two ways, single-shot; executes once and directly exits when done or as
|
**rofi** can be used in two ways, single-shot; executes once and directly exits when done or as
|
||||||
daemon listening to specific key-combinations.
|
daemon listening to specific key-combinations.
|
||||||
|
|
||||||
The default key combinations are:
|
|
||||||
|
|
||||||
* `F12`
|
|
||||||
|
|
||||||
Show all windows on all desktops.
|
|
||||||
|
|
||||||
* `mod1-F2`
|
|
||||||
|
|
||||||
Show run-dialog.
|
|
||||||
|
|
||||||
* `mod1-F3`
|
|
||||||
|
|
||||||
Show ssh-dialog.
|
|
||||||
|
|
||||||
|
|
||||||
## OPTIONS
|
## OPTIONS
|
||||||
|
|
||||||
|
|
||||||
`-key-**mode**` **KEY**
|
`-key-{mode}` **KEY**
|
||||||
|
|
||||||
Change the key combination to display a **mode**
|
Set the key combination to display a {mode} in daemon mode.
|
||||||
|
|
||||||
|
|
||||||
rofi -key-run F12
|
rofi -key-run F12
|
||||||
|
|
36
doc/rofi.1
36
doc/rofi.1
|
@ -53,31 +53,11 @@ MIT/X11
|
||||||
.PP
|
.PP
|
||||||
\fBrofi\fP can be used in two ways, single\-shot; executes once and directly exits when done or as
|
\fBrofi\fP can be used in two ways, single\-shot; executes once and directly exits when done or as
|
||||||
daemon listening to specific key\-combinations.
|
daemon listening to specific key\-combinations.
|
||||||
.PP
|
|
||||||
The default key combinations are:
|
|
||||||
.RS
|
|
||||||
.IP \(bu 2
|
|
||||||
\fB\fCF12\fR
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
Show all windows on all desktops.
|
|
||||||
.RS
|
|
||||||
.IP \(bu 2
|
|
||||||
\fB\fCmod1\-F2\fR
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
Show run\-dialog.
|
|
||||||
.RS
|
|
||||||
.IP \(bu 2
|
|
||||||
\fB\fCmod1\-F3\fR
|
|
||||||
.RE
|
|
||||||
.PP
|
|
||||||
Show ssh\-dialog.
|
|
||||||
.SH OPTIONS
|
.SH OPTIONS
|
||||||
.PP
|
.PP
|
||||||
\fB\fC\-key\-**mode**\fR \fBKEY\fP
|
\fB\fC\-key\-{mode}\fR \fBKEY\fP
|
||||||
.IP
|
.IP
|
||||||
Change the key combination to display a \fBmode\fP
|
Set the key combination to display a {mode} in daemon mode.
|
||||||
.PP
|
.PP
|
||||||
.RS
|
.RS
|
||||||
.nf
|
.nf
|
||||||
|
@ -605,18 +585,14 @@ Check quotes used on the commandline: e.g. used “ instead of ".
|
||||||
.SH WEBSITE
|
.SH WEBSITE
|
||||||
.PP
|
.PP
|
||||||
\fBrofi\fP website can be found at here
|
\fBrofi\fP website can be found at here
|
||||||
.UR https://davedavenport.github.io/rofi/
|
\[la]https://davedavenport.github.io/rofi/\[ra]
|
||||||
.UE
|
|
||||||
.PP
|
.PP
|
||||||
\fBrofi\fP bugtracker can be found here
|
\fBrofi\fP bugtracker can be found here
|
||||||
.UR https://github.com/DaveDavenport/rofi/issues
|
\[la]https://github.com/DaveDavenport/rofi/issues\[ra]
|
||||||
.UE
|
|
||||||
.SH AUTHOR
|
.SH AUTHOR
|
||||||
.PP
|
.PP
|
||||||
Qball Cow
|
Qball Cow
|
||||||
.MT qball@gmpclient.org
|
\[la]qball@gmpclient.org\[ra]
|
||||||
.ME
|
|
||||||
.PP
|
.PP
|
||||||
Original code based on work by: Sean Pringle
|
Original code based on work by: Sean Pringle
|
||||||
.MT sean.pringle@gmail.com
|
\[la]sean.pringle@gmail.com\[ra]
|
||||||
.ME
|
|
||||||
|
|
|
@ -407,6 +407,18 @@ void create_pid_file ( const char *pidfile )
|
||||||
|
|
||||||
void config_parse_cmd_options ( int argc, char ** argv )
|
void config_parse_cmd_options ( int argc, char ** argv )
|
||||||
{
|
{
|
||||||
|
if ( find_arg ( argc, argv, "-rnow") >= 0 ||
|
||||||
|
find_arg ( argc, argv, "-snow") >= 0 ||
|
||||||
|
find_arg ( argc, argv, "-now") >= 0 ||
|
||||||
|
find_arg ( argc, argv, "-key") >= 0 ||
|
||||||
|
find_arg ( argc, argv, "-skey") >= 0 ||
|
||||||
|
find_arg ( argc, argv, "-rkey") >= 0 ) {
|
||||||
|
fprintf(stderr, "The -snow, -now, -rnow, -key, -rkey, -skey are deprecated "
|
||||||
|
"and have been removed.\n"
|
||||||
|
"Please see the manpage: %s -help for the correct syntax.", argv[0]);
|
||||||
|
exit(EXIT_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
find_arg_str ( argc, argv, "-switchers", &( config.switchers ) );
|
find_arg_str ( argc, argv, "-switchers", &( config.switchers ) );
|
||||||
// Parse commandline arguments about the looks.
|
// Parse commandline arguments about the looks.
|
||||||
find_arg_uint ( argc, argv, "-opacity", &( config.window_opacity ) );
|
find_arg_uint ( argc, argv, "-opacity", &( config.window_opacity ) );
|
||||||
|
|
|
@ -547,7 +547,9 @@ inline static void menu_nav_down ( MenuState *state )
|
||||||
* @param key the Key to match
|
* @param key the Key to match
|
||||||
* @param modstate the modifier state to match
|
* @param modstate the modifier state to match
|
||||||
*
|
*
|
||||||
* Return the index of the switcher that matches the key combination
|
* Match key and modifier state against switchers.
|
||||||
|
*
|
||||||
|
* @return the index of the switcher that matches the key combination
|
||||||
* specified by key and modstate. Returns -1 if none was found
|
* specified by key and modstate. Returns -1 if none was found
|
||||||
*/
|
*/
|
||||||
extern unsigned int NumlockMask;
|
extern unsigned int NumlockMask;
|
||||||
|
|
Loading…
Reference in a new issue