Problem:
You want to use kde “night color” feature
and
when launching video or photo application you want to disable automatically “night color”
and
when quitting the application you want to enable automatically “night color”.
Solution:
In kde settings with kde shortcut manager in kwin define a shortcut for “toggle night color”, for example “Alt_n”.
With Yast software manager install xdotool, a virtual keyboard and mouse
then
for example for VLC
in ~/bin/ create vlcn.sh
set “executable” this file
put in this file these contents
#!/bin/bash
#
xdotool key Alt+n
/usr/bin/vlc
xdotool key Alt+n
With kde menu editor change the call of vlc by ~/bin/vlcn.sh
for Digikam
in ~/bin/ create digikamn.sh
set “executable” this file
put in this file these contents
#!/bin/bash
#
xdotool key Alt+n
/usr/bin/digikam
xdotool key Alt+n
With kde menu editor change the call of digikam by ~/bin/digikamn.sh
note:
“xdotool key Alt+n” send “Alt_n” to kwin