Hyprland: custom "Run Command" keybind shows as Niri "Compositor" action after reopening
Compositor
Hyprland
Distribution
CachyOS
If Other, please specify
No response
Select your Installation Method
Distro Packaging
Was this your original Installation method?
Yes
If no, specify
No response
dms doctor -vC
Click to expand
DMS Doctor Report
System
- [ok] Operating System: CachyOS
- ID: cachyos, Version: rolling, Arch: amd64
- [ok] Architecture: amd64
- [ok] Display Server: Wayland
- WAYLAND_DISPLAY=wayland-1
Versions
- [ok] DMS CLI: dms v1.5.2
- /usr/bin/dms
- [ok] Quickshell: Quickshell 0.3.0 (revision , distributed by Arch Linux)
- /usr/bin/qs
- [ok] DMS Shell: v1.5.2
- /usr/share/quickshell/dms
Installation
- [ok] DMS Configuration: Found
- /usr/share/quickshell/dms
- [ok] shell.qml: Present
- /usr/share/quickshell/dms/shell.qml
- [info] Install Type: System package
- /usr/share/quickshell/dms
Compositor
- [ok] Hyprland: 0.56.1
- /usr/bin/hyprland
- [info] Active: Hyprland
- [ok] Background Blur: Supported
- Compositor supports ext-background-effect-v1
Quickshell Features
- [ok] Polkit: Available
- Authentication prompts
- [ok] IdleMonitor: Available
- Idle detection
- [ok] IdleInhibitor: Available
- Prevent idle/sleep
- [ok] ShortcutInhibitor: Available
- Allow shortcut management (niri)
- [ok] BackgroundBlur: Available
- Background blur API support in Quickshell
Optional Features
- [ok] accountsservice: Available
- User accounts
- [ok] power-profiles-daemon: Available
- Power profile management
- [ok] logind: Available
- Session management
- [warn] cups-pk-helper: Not available (install cups-pk-helper)
- Printer management
- [ok] I2C/DDC: 1 monitor(s) detected
- External monitor brightness control
- [ok] qt6-imageformats: Installed (5 formats)
- Formats: WebP, TIFF, GIF, JP2, ICNS (/usr/lib/qt6/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
- [ok] kimageformats: Installed (4 formats)
- Formats: AVIF, HEIF, JXL, EXR (/usr/lib/qt6/plugins/imageformats:/usr/lib64/qt6/plugins/imageformats)
- [ok] Terminal: kitty, alacritty
- [ok] Network: NetworkManager
- NetworkManager present. Using NM API.
- [ok] matugen: Installed
- Dynamic theming
- [ok] dgop: Installed
- System monitoring
- [warn] cava: Missing
- Audio visualizer
- [info] khal: Not installed
- Calendar events
- [info] danksearch: Not installed
- File search
- [info] dankcalendar: Not installed
- Calendar app
- [info] fprintd: Not installed
- Fingerprint auth
Config Files
- [ok] settings.json: Present
- /home/marlon/.config/DankMaterialShell/settings.json
- [ok] clsettings.json: Present
- /home/marlon/.config/DankMaterialShell/clsettings.json
- [ok] plugin_settings.json: Present
- /home/marlon/.config/DankMaterialShell/plugin_settings.json
- [ok] session.json: Present
- /home/marlon/.local/state/DankMaterialShell/session.json
- [ok] dms-colors.json: Present
- /home/marlon/.cache/DankMaterialShell/dms-colors.json
Services
- [ok] dms.service: enabled, active
- [ok] greetd: enabled
Environment
- [info] QT_QPA_PLATFORMTHEME: gtk3
- [info] QS_ICON_THEME: Not set
- [warn] XDG_MENU_PREFIX: hyprland- (menu file not found)
- Dolphin 'Open with…' dialog may be empty. Ensure /etc/xdg/menus/hyprland-applications.menu exists.
Fonts
- [ok] Normal Font: Inter Variable
- Available
- [warn] Monospace Font: 'Fira Code' not found
- Font is not registered. Try running 'fc-cache -fv' or install the font.
Summary: 0 error(s), 4 warning(s), 33 ok
Description
When editing a custom "Run Command" keybind for Hyprland in DMS Settings > Keyboard Shortcuts, saving and reopening it shows the wrong type. I bound SUPER + Z to open zeditor using the "Run Command" type. After saving and reopening the shortcut editor for that bind, the Type dropdown now shows "Compositor" with a custom-exec field containing zeditor, instead of staying on "Run Command". Clicking "Run Command" shows an empty field. Clicking back to "Compositor" shows the dropdown reset to "Close Window" — which is a Niri action, not a Hyprland one.
The underlying bind in ~/.config/hypr/dms/binds-user.lua is saved correctly as hl.bind("SUPER + Z", hl.dsp.exec_cmd("zeditor"), { description = "Zed" }) and works fine at runtime — this only affects how the Settings UI re-displays/re-parses the bind afterward.
Digging into /usr/share/quickshell/dms/Common/KeybindActions.js, getActionType() only classifies an action as dms/shell/spawn (Run Command) if it matches a spawn -prefixed string (Niri's action grammar). Anything that doesn't match falls through to return "compositor" as a catch-all default. Whatever gets reconstructed from the Hyprland Lua exec_cmd(...) call on read-back apparently isn't produced in that spawn <cmd> shape, so it lands in the "compositor" catch-all, fails to match any real compositor action, and falls back to a raw custom-exec text field. Also worth noting: the "Compositor" type's own tooltip in KeybindItem.qml is hardcoded as "Niri compositor actions (focus, move, etc.)" even on a Hyprland install, and its dropdown defaults to the first entry in NIRI_ACTIONS ("Close Window") when nothing matches — which is why that specific action shows up.
This may be related to #2953 (same subsystem: Hyprland custom actions getting mangled by the keybind editor's save/reparse round trip), though the specific symptom there is different (plugin calls rewritten to hyprctl dispatch exec_cmd wrappers).
Expected Behavior
Reopening a saved "Run Command" keybind should show Type = "Run Command" with the original command (zeditor) still in the command field, not switch to "Compositor".
Steps to Reproduce
- On a Hyprland install, open DMS Settings > Keyboard Shortcuts.
- Add a new keybind, set Type to "Run Command", enter a command (e.g.
zeditor), assign a key combo, save. - Close and reopen the Settings > Keyboard Shortcuts editor for that same keybind.
- Observe Type now shows "Compositor" with a custom-exec field containing the command instead of "Run Command".
- Click "Run Command" in the type dropdown — the command field is now empty.
- Click back to "Compositor" — the action dropdown has reset to "Close Window" (a Niri-only action).
Error Messages/Logs
No response
Screenshots/Recordings
No response