Bug 439601

Summary: Automatically suspend itself if certain application is running
Product: [Applications] rsibreak Reporter: Jozef Říha <jose1711>
Component: generalAssignee: Albert Astals Cid <aacid>
Status: REPORTED ---    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 0.12.14   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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