Move shell scripts into plugin directories
This commit is contained in:
@@ -16,7 +16,7 @@ Item {
|
|||||||
property var history: []
|
property var history: []
|
||||||
|
|
||||||
property string historyPath: Quickshell.env("HOME") + "/.local/state/omarchy/clipboard-history.json"
|
property string historyPath: Quickshell.env("HOME") + "/.local/state/omarchy/clipboard-history.json"
|
||||||
property string captureScript: root.omarchyPath + "/shell/scripts/clipboard-capture.sh"
|
property string captureScript: root.omarchyPath + "/shell/plugins/clipboard/capture.sh"
|
||||||
property string watchCommand: "script=$1\ntrap 'kill $(jobs -p) 2>/dev/null' EXIT\nwl-paste --watch \"$script\" &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/png wl-paste --type image/png --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/jpeg wl-paste --type image/jpeg --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/webp wl-paste --type image/webp --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/gif wl-paste --type image/gif --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/bmp wl-paste --type image/bmp --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/tiff wl-paste --type image/tiff --watch \"$script\" 2>/dev/null &\nwait"
|
property string watchCommand: "script=$1\ntrap 'kill $(jobs -p) 2>/dev/null' EXIT\nwl-paste --watch \"$script\" &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/png wl-paste --type image/png --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/jpeg wl-paste --type image/jpeg --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/webp wl-paste --type image/webp --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/gif wl-paste --type image/gif --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/bmp wl-paste --type image/bmp --watch \"$script\" 2>/dev/null &\nOMARCHY_CLIPBOARD_WATCH_MIME=image/tiff wl-paste --type image/tiff --watch \"$script\" 2>/dev/null &\nwait"
|
||||||
// Shares the [menu] surface tokens — themes that style the menu also
|
// Shares the [menu] surface tokens — themes that style the menu also
|
||||||
// style the clipboard. Selected-row colors composed in the
|
// style the clipboard. Selected-row colors composed in the
|
||||||
|
|||||||
@@ -48,7 +48,7 @@ Item {
|
|||||||
onOpenedChanged: if (!opened) layoutSettled = false
|
onOpenedChanged: if (!opened) layoutSettled = false
|
||||||
|
|
||||||
function scriptPath(name) {
|
function scriptPath(name) {
|
||||||
return omarchyPath + "/shell/scripts/" + name
|
return omarchyPath + "/shell/plugins/image-picker/" + name
|
||||||
}
|
}
|
||||||
|
|
||||||
function focusPicker() {
|
function focusPicker() {
|
||||||
@@ -264,7 +264,7 @@ Item {
|
|||||||
loadImagesProc.activeSerial = serial
|
loadImagesProc.activeSerial = serial
|
||||||
loadImagesProc.queuedSerial = 0
|
loadImagesProc.queuedSerial = 0
|
||||||
loadImagesProc.queuedDirs = ""
|
loadImagesProc.queuedDirs = ""
|
||||||
loadImagesProc.command = [root.scriptPath("image-picker-list.sh"), dirs]
|
loadImagesProc.command = [root.scriptPath("list.sh"), dirs]
|
||||||
loadImagesProc.running = true
|
loadImagesProc.running = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -143,7 +143,7 @@ Item {
|
|||||||
|
|
||||||
function hiddenEntryScanCommand() {
|
function hiddenEntryScanCommand() {
|
||||||
var desktop = [Quickshell.env("XDG_CURRENT_DESKTOP"), Quickshell.env("XDG_SESSION_DESKTOP"), Quickshell.env("DESKTOP_SESSION")].filter(function(v) { return String(v || "").length > 0 }).join(":")
|
var desktop = [Quickshell.env("XDG_CURRENT_DESKTOP"), Quickshell.env("XDG_SESSION_DESKTOP"), Quickshell.env("DESKTOP_SESSION")].filter(function(v) { return String(v || "").length > 0 }).join(":")
|
||||||
var script = root.omarchyPath + "/shell/scripts/launcher-hidden-entries.sh"
|
var script = root.omarchyPath + "/shell/plugins/launcher/hidden-entries.sh"
|
||||||
return Util.shellQuote(script) + " " + Util.shellQuote(desktop)
|
return Util.shellQuote(script) + " " + Util.shellQuote(desktop)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -435,7 +435,7 @@ Panel {
|
|||||||
// Poll the weather pill text/class every minute. Local to this widget.
|
// Poll the weather pill text/class every minute. Local to this widget.
|
||||||
Process {
|
Process {
|
||||||
id: weatherProc
|
id: weatherProc
|
||||||
command: ["bash", "-lc", root.bar ? Util.shellQuote(root.bar.omarchyPath + "/shell/scripts/weather.sh") : ""]
|
command: ["bash", "-lc", root.bar ? Util.shellQuote(root.bar.omarchyPath + "/shell/plugins/panels/weather/status.sh") : ""]
|
||||||
stdout: StdioCollector {
|
stdout: StdioCollector {
|
||||||
waitForEnd: true
|
waitForEnd: true
|
||||||
onStreamFinished: root.updateWeather(text)
|
onStreamFinished: root.updateWeather(text)
|
||||||
|
|||||||
Reference in New Issue
Block a user