Skip to content

feat: get title by 'xprop' directly, add support for webstorm, wechat, etc. 使用xprop直接获取窗口class,添加应用支持#42

Merged
ttimochan merged 1 commit intottimochan:masterfrom
grtsinry43:master
Dec 27, 2024
Merged

feat: get title by 'xprop' directly, add support for webstorm, wechat, etc. 使用xprop直接获取窗口class,添加应用支持#42
ttimochan merged 1 commit intottimochan:masterfrom
grtsinry43:master

Conversation

@grtsinry43
Copy link
Copy Markdown
Contributor

Description

  • Updated get_active_window_process_and_title function to use xprop for fetching the active window ID and class name.
  • Add support for webstorm, wechat, etc.
  • 更新了get_active_window_process_and_title函数,使用xprop获取活动窗口的ID和类名。
  • 增加了对WebStorm、WeChat等应用程序窗口标题的支持。

Additional context

Tested on Archlinux (6.12.6-arch1-1) + KDE (6.2.4) with Wayland. Successfully retrieved window titles for applications like Code, WebStorm, WeChat, QQ, Chrome, YesPlayMusic, and Typora. However, there are no solutions for Konsole, Telegram, and KMail. The PR includes support for both English and Chinese titles.
在Archlinux(6.12.6-arch1-1)+KDE(6.2.4)且Wayland下测试通过,可以获取相关标题,但是终端(Konsole)没有解决方案,telegram和kmail也无法获取,已经测试成功的有code,webstorm,wechat,qq,chrome
,yesplaymusic,typora

@ttimochan ttimochan merged commit 91a183c into ttimochan:master Dec 27, 2024
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.

2 participants