Bug 439601 - Automatically suspend itself if certain application is running
Summary: Automatically suspend itself if certain application is running
Status: REPORTED
Alias: None
Product: rsibreak
Classification: Applications
Component: general (show other bugs)
Version: 0.12.14
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Albert Astals Cid
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-07 13:20 UTC by Jozef Říha
Modified: 2021-10-20 13:12 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jozef Říha 2021-07-07 13:20:14 UTC
SUMMARY
I think it would be great if RSIBreak can auto-suspend itself when a certain application is running - think gaming when RSIBreak can completely ruin user experience.
Comment 1 Jozef Říha 2021-10-20 13:12:26 UTC
For the time being I am happy with what the documentation (https://docs.kde.org/trunk5/en/rsibreak/rsibreak/general-use.html) suggests - using DBus. E. g. a simple script run every minute by cron:


if pgrep '^(supertuxkart|jumpnbump|torcs|foo|bar)$'
then
  qdbus org.kde.rsibreak /rsibreak org.rsibreak.rsiwidget.suspend
else
  qdbus org.kde.rsibreak /rsibreak org.rsibreak.rsiwidget.resume
fi