mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
Wallpaper: add ipc call to set new random wallpaper
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import QtQuick
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import qs.Commons
|
||||
import qs.Services
|
||||
|
||||
Item {
|
||||
@@ -130,4 +131,14 @@ Item {
|
||||
sidePanel.toggle(Quickshell.screens[0])
|
||||
}
|
||||
}
|
||||
|
||||
// Wallpaper IPC: trigger a new random wallpaper
|
||||
IpcHandler {
|
||||
target: "wallpaper"
|
||||
function random() {
|
||||
if (Settings.data.wallpaper.enabled) {
|
||||
WallpaperService.setRandomWallpaper()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,6 +213,7 @@ The following commands apply to the Nix flake installation.
|
||||
| Toggle Settings Window | `noctalia-shell ipc call settings toggle` |
|
||||
| Toggle Lock Screen | `noctalia-shell ipc call lockScreen toggle` |
|
||||
| Toggle Notification History | `noctalia-shell ipc call notifications toggleHistory` |
|
||||
| Select new random wallpaper | `noctalia-shell ipc call wallpaper random` |
|
||||
|
||||
</details>
|
||||
|
||||
@@ -240,6 +241,7 @@ The following commands apply to both AUR package and manual installation.
|
||||
| Toggle Settings Window | `qs -c noctalia-shell ipc call settings toggle` |
|
||||
| Toggle Lock Screen | `qs -c noctalia-shell ipc call lockScreen toggle` |
|
||||
| Toggle Notification History | `qs -c noctalia-shell ipc call notifications toggleHistory` |
|
||||
| Select new random wallpaper | `qs -c noctalia-shell ipc call wallpaper random` |
|
||||
|
||||
</details>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user