mirror of
https://github.com/davatorium/rofi.git
synced 2024-11-18 13:54:36 -05:00
Fix alternate separator
This commit is contained in:
parent
2953e3cb1f
commit
563dc8dafd
5 changed files with 8 additions and 8 deletions
|
@ -191,7 +191,7 @@ Example: Have a mode 'Workspaces' using the `i3_switch_workspaces.sh` script:
|
||||||
rofi -modi "window,run,ssh,Workspaces:i3_switch_workspaces.sh" -show Workspaces
|
rofi -modi "window,run,ssh,Workspaces:i3_switch_workspaces.sh" -show Workspaces
|
||||||
|
|
||||||
Notes: The I3 Window manager does not like commas in the command when specifying an exec command.
|
Notes: The I3 Window manager does not like commas in the command when specifying an exec command.
|
||||||
For that case '/' can be used as an separator.
|
For that case '#' can be used as an separator.
|
||||||
|
|
||||||
`-case-sensitive`
|
`-case-sensitive`
|
||||||
|
|
||||||
|
@ -467,7 +467,7 @@ To get one merge view, of window,run,ssh:
|
||||||
rofi -show combi -combi-modi "window,run,ssh" -modi combi
|
rofi -show combi -combi-modi "window,run,ssh" -modi combi
|
||||||
|
|
||||||
Notes: The I3 Window manager does not like commas in the command when specifying an exec command.
|
Notes: The I3 Window manager does not like commas in the command when specifying an exec command.
|
||||||
For that case '/' can be used as an separator.
|
For that case '#' can be used as an separator.
|
||||||
|
|
||||||
### History and Sorting
|
### History and Sorting
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||||
.
|
.
|
||||||
.TH "ROFI\-THEME\-MANPAGE" "" "2017-03-20" "" ""
|
.TH "ROFI\-THEME\-MANPAGE" "" "March 2017" "" ""
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||||
.
|
.
|
||||||
.TH "ROFI\-MANPAGE" "" "2017-03-31" "" ""
|
.TH "ROFI\-MANPAGE" "" "March 2017" "" ""
|
||||||
.
|
.
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
\fBrofi\fR \- A window switcher, application launcher, ssh dialog and dmenu replacement
|
\fBrofi\fR \- A window switcher, application launcher, ssh dialog and dmenu replacement
|
||||||
|
@ -268,7 +268,7 @@ rofi \-modi "window,run,ssh,Workspaces:i3_switch_workspaces\.sh" \-show Workspac
|
||||||
.IP "" 0
|
.IP "" 0
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'/\' can be used as an separator\.
|
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'#\' can be used as an separator\.
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
\fB\-case\-sensitive\fR
|
\fB\-case\-sensitive\fR
|
||||||
|
@ -712,7 +712,7 @@ rofi \-show combi \-combi\-modi "window,run,ssh" \-modi combi
|
||||||
.IP "" 0
|
.IP "" 0
|
||||||
.
|
.
|
||||||
.P
|
.P
|
||||||
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'/\' can be used as an separator\.
|
Notes: The I3 Window manager does not like commas in the command when specifying an exec command\. For that case \'#\' can be used as an separator\.
|
||||||
.
|
.
|
||||||
.SS "History and Sorting"
|
.SS "History and Sorting"
|
||||||
\fB\-disable\-history\fR \fB\-no\-disable\-history\fR (re\-enable history)
|
\fB\-disable\-history\fR \fB\-no\-disable\-history\fR (re\-enable history)
|
||||||
|
|
|
@ -63,7 +63,7 @@ static void combi_mode_parse_switchers ( Mode *sw )
|
||||||
char *savept = NULL;
|
char *savept = NULL;
|
||||||
// Make a copy, as strtok will modify it.
|
// Make a copy, as strtok will modify it.
|
||||||
char *switcher_str = g_strdup ( config.combi_modi );
|
char *switcher_str = g_strdup ( config.combi_modi );
|
||||||
const char * const sep = ",/";
|
const char * const sep = ",#";
|
||||||
// Split token on ','. This modifies switcher_str.
|
// Split token on ','. This modifies switcher_str.
|
||||||
for ( char *token = strtok_r ( switcher_str, sep, &savept ); token != NULL;
|
for ( char *token = strtok_r ( switcher_str, sep, &savept ); token != NULL;
|
||||||
token = strtok_r ( NULL, sep, &savept ) ) {
|
token = strtok_r ( NULL, sep, &savept ) ) {
|
||||||
|
|
|
@ -611,7 +611,7 @@ static int add_mode ( const char * token )
|
||||||
}
|
}
|
||||||
static void setup_modi ( void )
|
static void setup_modi ( void )
|
||||||
{
|
{
|
||||||
const char *const sep = ",/";
|
const char *const sep = ",#";
|
||||||
char *savept = NULL;
|
char *savept = NULL;
|
||||||
// Make a copy, as strtok will modify it.
|
// Make a copy, as strtok will modify it.
|
||||||
char *switcher_str = g_strdup ( config.modi );
|
char *switcher_str = g_strdup ( config.modi );
|
||||||
|
|
Loading…
Reference in a new issue