Skip to content

added launcher dmenu mode - #3639

Merged
bbedward merged 8 commits into
duxlabs-dev:masterfrom
njfletcher215:feature/launcher-dmenu-mode
Oct 5, 2026
Merged

bbedward merged 8 commits into
duxlabs-dev:masterfrom
njfletcher215:feature/launcher-dmenu-mode

Conversation

@njfletcher215

Copy link
Copy Markdown
Contributor

Description

Adds a dmenu command that uses the launcher to act as a picker (dms dmenu). Accepts the same flags as dmenu (except -i, since the launcher's matching is always case-insensitive), plus extended functionality inspired by the rofi -dmenu features. See the corresponding docs PR for details.

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that changes existing behavior)
  • Refactor / internal cleanup
  • Documentation
  • Other

Related issues

Closes #1176

Screenshots / video

image

Checklist

@purian23

purian23 commented Oct 1, 2026

Copy link
Copy Markdown
Member

/claude review

Comment thread core/cmd/dms/commands_dmenu.go Resolved
Comment thread core/cmd/dms/commands_dmenu.go Resolved
@claude

claude Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Claude review

Solid feature overall; one privacy issue to fix before merge, plus a resource leak and a doc fix.

  • dmenu input, including --password text, is persisted to launcher history / last query, quickshell/Modals/DankLauncherV2/Controller.qml:180
  • os.Exit skips defer sess.Close(), leaking a socket file per invocation, core/cmd/dms/commands_dmenu.go:567
  • Help text says matching is case-sensitive; it is case-insensitive, core/cmd/dms/commands_dmenu.go:58
    Checked: Go CLI, dmenuipc socket/queue, matugen change, Controller/ModalHost/LauncherContent/Spotlight/ResultsList/Row/Tile QML for dmenu session lifecycle, cancel paths and mode reset. Model: claude-opus-5-5.

@purian23

purian23 commented Oct 2, 2026

Copy link
Copy Markdown
Member

/claude review

@claude

claude Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Claude review

The earlier findings are addressed: the socket file is now cleaned up on exit, and the help text is fixed. One privacy gap remains in the history opt-out.

  • --password input is still saved to launcher history unless --disable-history is also passed, quickshell/Modals/DankLauncherV2/Controller.qml:823
    Checked: changes since 6a36ad0 (exit-code refactor in commands_dmenu.go, -i/-a/-u flags, rofi single-dash argv normalization, disable-history wiring in Go header and Controller.qml), the matugen stdout workaround, and the dmenuipc queue/socket. Model: claude-opus-5-5.

@njfletcher215

Copy link
Copy Markdown
Contributor Author

--password not disabling history is a purposeful choice and explicitly called out in the docs. This has parity with rofi's -password/-disable-history flags, users are expected to pass both when handling sensitive data.

@bbedward
bbedward merged commit 30dc112 into duxlabs-dev:master Oct 5, 2026
4 checks passed
ignacypekala pushed a commit to ignacypekala/dux-shell that referenced this pull request Oct 5, 2026
* added launcher dmenu mode

* fixed prechecker issues

* added unit tests for dms dmenu command

* added workaround for matugen printing error message to stdout

* correct help message: matching is case-*in*sensitive

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>

* no longer save dmenu selections to history; now properly close dmenu sockets

* increased parity with rofi -dmenu flags; added -i as an ignored flag to match dmenu

* go mod tidied

---------

Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>
@njfletcher215
njfletcher215 deleted the feature/launcher-dmenu-mode branch October 11, 2026 02:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dmenu ipc for spotlight

3 participants