Skip to content

Commit 352e63f

Browse files
committed
Rename --tray-focus-only -> --indicator-focus-only
1 parent af811a4 commit 352e63f

File tree

5 files changed

+21
-21
lines changed

5 files changed

+21
-21
lines changed

README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ All environments use the unified daemon (`src/daemon/`). Backends are event-driv
5757

5858
If systemd-logind is unavailable (no system bus, permissions, etc.), the daemon keeps running but native terminal switching is disabled; a warning is logged on startup.
5959

60-
For non-GNOME desktops, the SNI tray menu's "Show app layer only" setting is persisted via the GNOME extension's GSettings schema when available. Use `--tray-focus-only true|false` to override it at startup.
60+
For non-GNOME desktops, the SNI tray menu's "Show app layer only" setting is persisted via the GNOME extension's GSettings schema when available. Use `--indicator-focus-only true|false` to override it at startup.
6161

6262
### Config Format
6363

@@ -393,21 +393,21 @@ passed on the command line. To update the entry, rerun the install command with
393393
### Daemon Options
394394

395395
```
396-
-p, --port PORT Kanata TCP port (default: 10000)
397-
-H, --host HOST Kanata host (default: 127.0.0.1)
398-
-c, --config PATH Config file path
399-
-q, --quiet Suppress focus/layer-switch messages
400-
--quiet-focus Suppress focus messages only
401-
--install-autostart Install autostart desktop entry and exit
402-
--uninstall-autostart Uninstall autostart desktop entry and exit
403-
--install-gnome-extension Auto-install GNOME extension if missing (default)
404-
--no-install-gnome-extension Do not auto-install GNOME extension
405-
--no-indicator Disable the StatusNotifier (SNI) indicator on non-GNOME desktops
406-
--tray-focus-only true|false Override SNI focus-only mode and skip GSettings read
407-
--restart Send Restart request to an existing daemon and exit
408-
--pause Send Pause request to an existing daemon and exit
409-
--unpause Send Unpause request to an existing daemon and exit
410-
-h, --help Show help
396+
-p, --port PORT Kanata TCP port (default: 10000)
397+
-H, --host HOST Kanata host (default: 127.0.0.1)
398+
-c, --config PATH Config file path
399+
-q, --quiet Suppress focus/layer-switch messages
400+
--quiet-focus Suppress focus messages only
401+
--install-autostart Install autostart desktop entry and exit
402+
--uninstall-autostart Uninstall autostart desktop entry and exit
403+
--install-gnome-extension Auto-install GNOME extension if missing (default)
404+
--no-install-gnome-extension Do not auto-install GNOME extension
405+
--no-indicator Disable the StatusNotifier (SNI) indicator on non-GNOME desktops
406+
--indicator-focus-only true|false Override StatusNotifier (SNI) indicator focus-only mode
407+
--restart Send Restart request to an existing daemon and exit
408+
--pause Send Pause request to an existing daemon and exit
409+
--unpause Send Unpause request to an existing daemon and exit
410+
-h, --help Show help
411411
```
412412

413413
Systemd units use `--quiet-focus` by default to reduce log noise.

llm-docs/implementation-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ SNI indicator (non-GNOME):
163163
- Optional StatusNotifier item for KDE/wlroots/COSMIC/X11; menu includes Pause/Restart and “Show app layer only”
164164
- Uses the same layer + virtual key formatting as GNOME; pause toggles through local handlers on non-DBus backends
165165
- Tooltip: shows current layer; if any VKs are held, also lists the VK names (comma-separated)
166-
- Persists "Show app layer only" via GSettings key `show-focus-layer-only` in schema `org.gnome.shell.extensions.kanata-switcher` when available; `--tray-focus-only true|false` skips the GSettings read
166+
- Persists "Show app layer only" via GSettings key `show-focus-layer-only` in schema `org.gnome.shell.extensions.kanata-switcher` when available; `--indicator-focus-only true|false` skips the GSettings read
167167

168168
## Virtual Key Support
169169

qa/sni-indicator-checklist.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Environment: (DE/compositor, panel/bar, session type)
2121

2222
## Persistence
2323
- [ ] "Show app layer only" persists across daemon restarts when GSettings is available
24-
- [ ] `--tray-focus-only true|false` overrides startup value without locking the toggle
24+
- [ ] `--indicator-focus-only true|false` overrides startup value without locking the toggle
2525

2626
## Failure behavior
2727
- [ ] If SNI cannot be started, daemon keeps running and logs error

src/daemon/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ fn autostart_passthrough_args(matches: &ArgMatches, args: &Args) -> Vec<String>
369369
let value = args
370370
.tray_focus_only
371371
.expect("tray_focus_only missing after command-line input");
372-
exec_args.push("--tray-focus-only".to_string());
372+
exec_args.push("--indicator-focus-only".to_string());
373373
exec_args.push(value.as_arg().to_string());
374374
}
375375
_ => {

src/daemon/tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,14 +285,14 @@ fn test_autostart_passthrough_args_tray_focus_only() {
285285
let matches = Args::command().get_matches_from([
286286
"kanata-switcher",
287287
"--install-autostart",
288-
"--tray-focus-only",
288+
"--indicator-focus-only",
289289
"false",
290290
]);
291291
let args = Args::from_arg_matches(&matches).unwrap();
292292
let exec_args = autostart_passthrough_args(&matches, &args);
293293
assert_eq!(
294294
exec_args,
295-
vec!["--tray-focus-only".to_string(), "false".to_string()]
295+
vec!["--indicator-focus-only".to_string(), "false".to_string()]
296296
);
297297
}
298298

0 commit comments

Comments
 (0)