Repository navigation
feat(bar): add focused window details popout - #3139
Conversation
|
/claude review |
Claude reviewSolid feature and it follows the existing popout/
Checked: DankPopout wiring and |
|
/claude review |
|
|
||
| readonly property string appId: currentWindow?.appId || "" | ||
| readonly property string windowTitle: currentWindow?.title || "" | ||
| readonly property string appName: appId ? Paths.getAppName(appId, DesktopEntries.heuristicLookup(appId)) : I18n.tr("Unknown") |
There was a problem hiding this comment.
The lookup skips Paths.moddedAppId(), so the popout can show a different app name than the bar widget it opens from.
FocusedApp.updateDesktopEntry() (FocusedApp.qml:160) does heuristicLookup(Paths.moddedAppId(appId)), and moddedAppId applies the user's SettingsData.appIdSubstitutions. With a substitution configured, the bar resolves the entry for the replacement id while this resolves it for the raw id — so the header falls back to the raw app id (or a different entry) right next to the substituted name in the bar. (The icon is unaffected: getAppIcon calls moddedAppId internally.)
| readonly property string appName: appId ? Paths.getAppName(appId, DesktopEntries.heuristicLookup(appId)) : I18n.tr("Unknown") | |
| readonly property string appName: appId ? Paths.getAppName(appId, DesktopEntries.heuristicLookup(Paths.moddedAppId(appId))) : I18n.tr("Unknown") |
| model: [ | ||
| { label: I18n.tr("App ID"), value: root.appId, copyable: !!root.appId }, | ||
| { label: I18n.tr("Title"), value: root.windowTitle || I18n.tr("Untitled"), copyable: !!root.windowTitle }, | ||
| { label: I18n.tr("PID"), value: root.pid > 0 ? root.pid.toString() : I18n.tr("Unavailable"), copyable: root.pid > 0 } |
There was a problem hiding this comment.
"PID" is the only genuinely new term this PR adds — App ID, Title, Unavailable, Untitled, Unknown, Add Window Rule, Kill Process and Copied to clipboard all already exist in quickshell/translations/en.json, but PID does not (only Copy PID does). CONTRIBUTING asks for a translator context on new strings, otherwise the term reaches POEditor bare and a three-letter acronym is not translatable on its own.
| { label: I18n.tr("PID"), value: root.pid > 0 ? root.pid.toString() : I18n.tr("Unavailable"), copyable: root.pid > 0 } | |
| { label: I18n.tr("PID", "Label for the process ID row in the focused window popout"), value: root.pid > 0 ? root.pid.toString() : I18n.tr("Unavailable"), copyable: root.pid > 0 } |
Claude reviewPrevious round is addressed — PID now resolves from
Checked: re-verified the multi-monitor PID path ( |
|
/claude review |
Claude reviewNo issues found. Both previous-round findings are fixed: the popout header now resolves the desktop entry through Checked: |
|
This is a super cool idea, nice work! |
* feat(bar): add focused window details popout * fix(bar): address focused window review * fix(bar): resolve focused window pid by identity * fix(bar): refine focused window translations
Description
Adds a standard DMS popout when clicking the focused window widget. The popout shows the app ID, title, and PID, with actions to copy values, add a window rule, or kill the process.
PID resolution only runs when the widget is clicked to avoid adding continuous work to the bar.
Review follow-ups resolve PID from the displayed window identity on multi-monitor and multi-instance setups, hide window rules on unsupported compositors, reuse existing
Unknown/Untitledtranslation terms, and preserve app ID substitutions in the popout header.Type of change
Related issues
Closes #2747
Screenshots / video
recording_20260822_004648.mp4