Add notch opacity and colour; open plugin panels from the notch strip
- Settings → Notch → Look: opacity (0% glass to 100% solid) and colour for the notch, the open notch and the notch-mode launcher. - Bar popouts and plugin panels add the open notch's screen offset, so tooltips and panels from the strip land under their module. - Opening a plugin panel keeps the notch open; the notch hands keyboard focus to the panel and takes it back when it closes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
73de4b06a8
commit
e4ca1f5d9c
12 files changed
+98
-14
No files matched your search
@@ -19,21 +19,26 @@ Singleton {
|
||||
error = "This desktop entry is no longer installed.";
|
||||
return false;
|
||||
}
|
||||
let command = action ? action.command : entry.command;
|
||||
if (entry.runInTerminal) {
|
||||
const terminal = ConfigService.data.dock.terminalCommand;
|
||||
if (!terminal.length) {
|
||||
error = "Set dock.terminalCommand to a terminal command argument array before launching terminal applications.";
|
||||
return false;
|
||||
}
|
||||
Quickshell.execDetached({
|
||||
command: terminal.concat(action ? action.command : entry.command),
|
||||
workingDirectory: entry.workingDirectory
|
||||
});
|
||||
} else if (action)
|
||||
action.execute();
|
||||
else
|
||||
entry.execute();
|
||||
command = terminal.concat(command);
|
||||
}
|
||||
Quickshell.execDetached({
|
||||
command: scoped(command),
|
||||
workingDirectory: entry.workingDirectory
|
||||
});
|
||||
error = "";
|
||||
return true;
|
||||
}
|
||||
// Run the app in its own transient systemd scope. Launched directly, it would
|
||||
// join the shell's cgroup and be killed whenever the shell service restarts.
|
||||
// Falls back to a plain launch where systemd-run is unavailable.
|
||||
function scoped(command) {
|
||||
return ["sh", "-c", 'if command -v systemd-run >/dev/null 2>&1; then exec systemd-run --user --scope --collect --quiet -- "$@"; fi; exec "$@"', "sh"].concat(command);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user