mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Hooks: expose to grab the screen name
This commit is contained in:
@@ -47,7 +47,7 @@ ScrollView {
|
||||
}
|
||||
onActionClicked: {
|
||||
if (wallpaperHookInput.text) {
|
||||
HooksService.executeWallpaperHook("test")
|
||||
HooksService.executeWallpaperHook("test", "test-screen")
|
||||
}
|
||||
}
|
||||
Layout.fillWidth: true
|
||||
@@ -88,6 +88,11 @@ ScrollView {
|
||||
label: "Hook Command Information"
|
||||
description: "• Commands are executed via shell (sh -c)\n• Commands run in background (detached)\n• Test buttons execute with current values"
|
||||
}
|
||||
|
||||
NLabel {
|
||||
label: "Available Parameters"
|
||||
description: "• Wallpaper Hook: $1 = wallpaper path, $2 = screen name\n• Theme Toggle Hook: $1 = true/false (dark mode state)"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user