Add IPC for screenRecorder toggle
This commit is contained in:
parent
7379bcb5b6
commit
9ee31e3a6a
4 changed files with 19 additions and 0 deletions
Binary file not shown.
|
Before Width: | Height: | Size: 373 KiB |
|
|
@ -2,6 +2,7 @@ pragma Singleton
|
||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
import Quickshell
|
import Quickshell
|
||||||
|
import qs.Services
|
||||||
|
|
||||||
Singleton {
|
Singleton {
|
||||||
id: icons
|
id: icons
|
||||||
|
|
@ -41,4 +42,13 @@ Singleton {
|
||||||
return iconFromName(fallback, fallback)
|
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 ""
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -139,6 +139,8 @@ Singleton {
|
||||||
property bool dimDesktop: false
|
property bool dimDesktop: false
|
||||||
property bool showScreenCorners: false
|
property bool showScreenCorners: false
|
||||||
property real radiusRatio: 1.0
|
property real radiusRatio: 1.0
|
||||||
|
// Replace sidepanel toggle with distro logo (shown in bar and/or side panel)
|
||||||
|
property bool useDistroLogoForSidepanel: false
|
||||||
}
|
}
|
||||||
|
|
||||||
// location
|
// location
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,13 @@ import qs.Services
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
|
IpcHandler {
|
||||||
|
target: "screenRecorder"
|
||||||
|
function toggle() {
|
||||||
|
ScreenRecorderService.toggleRecording()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
IpcHandler {
|
IpcHandler {
|
||||||
target: "settings"
|
target: "settings"
|
||||||
function toggle() {
|
function toggle() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue