Files
gnome-jarvis/apps/gnome-extension/[email protected]/prefs.js
T
snxraven 7604cded2c
Rolling release / release (push) Successful in 3m14s
Updates
2026-09-11 19:12:28 -04:00

16 lines
956 B
JavaScript

import { ExtensionPreferences } from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js';
import Adw from 'gi://Adw';
export default class JarvisPreferences extends ExtensionPreferences {
fillPreferencesWindow(window) {
window.set_title('Jarvis QVAC');
const page = new Adw.PreferencesPage();
const group = new Adw.PreferencesGroup({ title: 'Using Jarvis' });
const settings = this.getSettings();
group.add(new Adw.ActionRow({ title: 'Open the assistant', subtitle: settings.get_strv('hotkey').join(', ') }));
group.add(new Adw.ActionRow({ title: 'Voice and text', subtitle: 'Click Jarvis in the top panel, then hold Talk to speak, or type a question and press Enter.' }));
group.add(new Adw.ActionRow({ title: 'Wake phrase setup', subtitle: 'Hey Jarvis requires a local wake detector configured with JARVIS_WAKE_COMMAND. Use Talk when no detector is installed.' }));
page.add(group); window.add(page);
}
}