Add IPC for screenRecorder toggle

This commit is contained in:
Ly-sec 2025-08-26 15:48:41 +02:00
parent 7379bcb5b6
commit 9ee31e3a6a
4 changed files with 19 additions and 0 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 373 KiB

View file

@ -2,6 +2,7 @@ pragma Singleton
import QtQuick
import Quickshell
import qs.Services
Singleton {
id: icons
@ -41,4 +42,13 @@ Singleton {
return iconFromName(fallback, fallback)
}
}
// Distro logo helper (absolute path or empty string)
function distroLogoPath() {
try {
return (typeof OSInfo !== 'undefined' && OSInfo.distroIconPath) ? OSInfo.distroIconPath : ""
} catch (e) {
return ""
}
}
}

View file

@ -139,6 +139,8 @@ Singleton {
property bool dimDesktop: false
property bool showScreenCorners: false
property real radiusRatio: 1.0
// Replace sidepanel toggle with distro logo (shown in bar and/or side panel)
property bool useDistroLogoForSidepanel: false
}
// location

View file

@ -6,6 +6,13 @@ import qs.Services
Item {
id: root
IpcHandler {
target: "screenRecorder"
function toggle() {
ScreenRecorderService.toggleRecording()
}
}
IpcHandler {
target: "settings"
function toggle() {