AvengeMedia / AvengeMedia/DankMaterialShell

trayAutoOverflow: false in settings.json ignored — overflow arrow still appears when right section runs out of space

Open
#2,931 4 comments 0 reactions 0 assignees View on GitHub
bug needs-more-info
Dominant language
QML
Stars
8.1k
Forks
515
Avg merge
1d 8h
Merged PRs (30d)
102

Description

## Description
Setting `trayAutoOverflow` to `false` in settings.json (both the top-level key and the per-bar `rightWidgets` → `systemTray` entry) has no effect. The tray overflow arrow (`>`) still appears whenever the right bar section doesn't have enough horizontal space for all widgets — it seems to trigger based on available width, not on this setting.

## Steps to reproduce
1. Set `trayAutoOverflow: false` at both locations in `~/.config/DankMaterialShell/settings.json`
2. `dms restart`
3. Open enough apps that the tray has ~8-9 icons, combined with other rightWidgets (clipboard, memUsage, dockerManager, battery, timer, controlCenterButton)
4. Overflow arrow appears, hiding some tray icons behind it — despite the setting being false
5. Closing apps (fewer tray icons) makes all icons render inline again without the arrow

## Expected behavior
With `trayAutoOverflow: false`, tray icons should either render inline without an arrow at all, or truncate the section without an overflow popup — not fall back to overflow behavior based on available space.

## Config (relevant excerpt)
"trayAutoOverflow": false, // top-level, line 217

"rightWidgets": [
{
"id": "systemTray",
"enabled": true,
"trayUseInlineExpansion": true,
"trayPopupSingleLine": true,
"trayAutoOverflow": false,
"trayMaxVisibleItems": 20
},
...
]

## Environment
- DMS CLI: v1.5.2
- Quickshell: 0.3.0
- Compositor: niri 26.04
- Distribution: CachyOS (Arch-based)
- Display server: Wayland

## dms doctor output
0 error(s), 5 warning(s), 34 ok (warnings unrelated to tray/bar: missing cups-pk-helper, cava, XDG_MENU_PREFIX, and two missing fonts)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with the settings.json trayAutoOverflow entries and the listed rightWidgets configuration, then trace the systemTray overflow behavior. Confirm the fix by checking that eight or nine tray icons do not show an overflow arrow when trayAutoOverflow is false, including when the right section is short on space.

Written by the indexing model from the issue text.

Assessment

Domain
desktop, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.