1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-27 15:02:50 -05:00

dwl: hide empty tags by default

This commit is contained in:
bbedward
2025-10-29 23:07:15 -04:00
parent 7ed0b752a8
commit 1c323f54ee
6 changed files with 107 additions and 40 deletions

View File

@@ -576,10 +576,13 @@ Item {
return monitorWorkspaces.sort((a, b) => a.id - b.id)
} else if (CompositorService.isDwl) {
if (!DwlService.dwlAvailable || DwlService.tagCount === 0) {
return Array.from({length: 9}, (_, i) => i)
if (!DwlService.dwlAvailable) {
return [0]
}
return Array.from({length: DwlService.tagCount}, (_, i) => i)
if (SettingsData.dwlShowAllTags) {
return Array.from({length: DwlService.tagCount}, (_, i) => i)
}
return DwlService.getVisibleTags(barWindow.screenName)
} else if (CompositorService.isSway) {
const workspaces = I3.workspaces?.values || []
if (workspaces.length === 0) return [{"num": 1}]