forked from Shinonome/dots-hyprland
gemini as default AI; better overview context menu
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
// - Active ws hook optimization: only update when moving to next group
|
// - Active ws hook optimization: only update when moving to next group
|
||||||
//
|
//
|
||||||
const { Gdk, Gtk } = imports.gi;
|
const { Gdk, Gtk } = imports.gi;
|
||||||
|
const { Gravity } = imports.gi.Gdk;
|
||||||
import { SCREEN_HEIGHT, SCREEN_WIDTH } from '../../imports.js';
|
import { SCREEN_HEIGHT, SCREEN_WIDTH } from '../../imports.js';
|
||||||
import App from 'resource:///com/github/Aylur/ags/app.js';
|
import App from 'resource:///com/github/Aylur/ags/app.js';
|
||||||
import Variable from 'resource:///com/github/Aylur/ags/variable.js';
|
import Variable from 'resource:///com/github/Aylur/ags/variable.js';
|
||||||
@@ -127,7 +128,9 @@ const Window = ({ address, at: [x, y], size: [w, h], workspace: { id, name }, cl
|
|||||||
menu.connect("selection-done", () => {
|
menu.connect("selection-done", () => {
|
||||||
button.toggleClassName('overview-tasks-window-selected', false);
|
button.toggleClassName('overview-tasks-window-selected', false);
|
||||||
})
|
})
|
||||||
menu.popup_at_pointer(null); // Show the menu at the pointer's position
|
// menu.popup_at_pointer(null); // Show the menu at the pointer's position
|
||||||
|
menu.popup_at_widget(button.get_parent(), Gravity.SOUTH, Gravity.NORTH, null); // Show menu below the button
|
||||||
|
button.connect("destroy", () => menu.destroy());
|
||||||
},
|
},
|
||||||
child: Widget.Box({
|
child: Widget.Box({
|
||||||
css: `
|
css: `
|
||||||
|
|||||||
@@ -18,14 +18,6 @@ const TextView = Widget.subclass(Gtk.TextView, "AgsTextView");
|
|||||||
|
|
||||||
const EXPAND_INPUT_THRESHOLD = 30;
|
const EXPAND_INPUT_THRESHOLD = 30;
|
||||||
const APIS = [
|
const APIS = [
|
||||||
{
|
|
||||||
name: 'Assistant (ChatGPT 3.5)',
|
|
||||||
sendCommand: chatGPTSendMessage,
|
|
||||||
contentWidget: chatGPTView,
|
|
||||||
commandBar: chatGPTCommands,
|
|
||||||
tabIcon: chatGPTTabIcon,
|
|
||||||
placeholderText: 'Message ChatGPT...',
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: 'Assistant (Gemini Pro)',
|
name: 'Assistant (Gemini Pro)',
|
||||||
sendCommand: geminiSendMessage,
|
sendCommand: geminiSendMessage,
|
||||||
@@ -34,6 +26,14 @@ const APIS = [
|
|||||||
tabIcon: geminiTabIcon,
|
tabIcon: geminiTabIcon,
|
||||||
placeholderText: 'Message Gemini...',
|
placeholderText: 'Message Gemini...',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'Assistant (ChatGPT 3.5)',
|
||||||
|
sendCommand: chatGPTSendMessage,
|
||||||
|
contentWidget: chatGPTView,
|
||||||
|
commandBar: chatGPTCommands,
|
||||||
|
tabIcon: chatGPTTabIcon,
|
||||||
|
placeholderText: 'Message ChatGPT...',
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'Waifus',
|
name: 'Waifus',
|
||||||
sendCommand: waifuSendMessage,
|
sendCommand: waifuSendMessage,
|
||||||
|
|||||||
Reference in New Issue
Block a user