feat: add clipboard text writing functionality and update config

This commit is contained in:
litruv
2026-02-22 03:41:10 +11:00
parent 6115b7fe6f
commit b27669f98f
4 changed files with 15 additions and 3 deletions

View File

@@ -567,6 +567,16 @@ ipcMain.handle('read-clipboard-image', async () => {
}
});
// Write text to clipboard
ipcMain.handle('write-clipboard-text', async (event, text) => {
try {
clipboard.writeText(text);
return { success: true };
} catch (error) {
return { success: false, error: error.message };
}
});
// Get YouTube stream using yt-dlp
ipcMain.handle('get-youtube-stream', async (event, url) => {
try {