mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-06-08 04:09:15 -04:00
feat(keybinds): new mango overview workspace pill & keybind updates
This commit is contained in:
@@ -33,6 +33,7 @@ Singleton {
|
||||
// tags: [{ tag, state, clients, focused, urgent, layout }] }
|
||||
property var outputs: ({})
|
||||
property string activeOutput: ""
|
||||
readonly property bool inOverview: isOutputInOverview(activeOutput)
|
||||
property int tagCount: 9
|
||||
property var displayScales: ({})
|
||||
property string currentKeyboardLayout: ""
|
||||
@@ -173,6 +174,15 @@ Singleton {
|
||||
return output.tags.filter(tag => tag.state === 1).map(tag => tag.tag);
|
||||
}
|
||||
|
||||
// mango reports active_tags=[0] (no real tag selected) while the overview is open.
|
||||
function isOutputInOverview(outputName) {
|
||||
const output = getOutputState(outputName);
|
||||
if (!output)
|
||||
return false;
|
||||
const at = output.activeTags || [];
|
||||
return at.length === 0 || at.every(t => t === 0);
|
||||
}
|
||||
|
||||
function getTagsWithClients(outputName) {
|
||||
const output = getOutputState(outputName);
|
||||
if (!output || !output.tags)
|
||||
|
||||
Reference in New Issue
Block a user