summaryrefslogtreecommitdiff
path: root/modules/launcher/services/Actions.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-23 16:12:53 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-23 16:12:53 +1000
commitfffc6b07a994c272965abe99bfcc811c3ae972ab (patch)
treeb522dc7d42ad33c9ced22d658ba040f5ffd9d5d8 /modules/launcher/services/Actions.qml
parentlauncher: exact calculation for wallpaper width (diff)
downloadcaelestia-shell-fffc6b07a994c272965abe99bfcc811c3ae972ab.tar.gz
caelestia-shell-fffc6b07a994c272965abe99bfcc811c3ae972ab.tar.bz2
caelestia-shell-fffc6b07a994c272965abe99bfcc811c3ae972ab.zip
launcher: add random wallpaper action
Diffstat (limited to 'modules/launcher/services/Actions.qml')
-rw-r--r--modules/launcher/services/Actions.qml10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/launcher/services/Actions.qml b/modules/launcher/services/Actions.qml
index be1fc72..8259437 100644
--- a/modules/launcher/services/Actions.qml
+++ b/modules/launcher/services/Actions.qml
@@ -58,6 +58,16 @@ Searcher {
}
},
Action {
+ name: qsTr("Random")
+ desc: qsTr("Switch to a random wallpaper")
+ icon: "casino"
+
+ function onClicked(list: AppList): void {
+ list.visibilities.launcher = false;
+ Quickshell.execDetached(["caelestia", "wallpaper", "-r"]);
+ }
+ },
+ Action {
name: qsTr("Light")
desc: qsTr("Change the scheme to light mode")
icon: "light_mode"